[A83] Re: Displaying a value
[Prev][Next][Index][Thread]
[A83] Re: Displaying a value
_setxxop1 only works with numbers 0-99, instead:
ld h,0
ld l,a
bcall(_disphl)
>From: Sk8a4good@aol.com
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Displaying a value
>Date: Wed, 14 Mar 2001 17:02:20 EST
>
>If I have a variable in counter ( counter = saferam3 ), how would I display
>it on the screen after text saying score? I have tried using disphl, but I
>cant get it to work, and I tried setting it to Op1 and then displaying.
>Here's some code:
>ION HEADER
>CODE.........
>
> ld a,4
> ld (CURROW),a ; current row
> ld a,3
> ld (CURCOL),a ; current column
> ld hl,txtscore
> bcall(_puts)
> ;ld a,(score) <-wont work
> ;bcall(_setxxop1)<-wont work
> ;ld a,2<-wont work
> ;bcall(_dispop1a)<-wont work
> call waitkey
> cp gClear
> ret z
> jp (MY LABEL)
> ret
>
>
>
>txtscore:
> .db "Score:",0
>
>Thanks,
>Cole
>
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com