[A83] Displaying a value


[Prev][Next][Index][Thread]

[A83] Displaying a value



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