A86: Displaying Strings


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

A86: Displaying Strings




I was trying to put together a little routine that would display numbers
in a string.  I thought that this is an important series of commands
espically for creating games with levels that are drawn by strings of
numbers.  I can't get it going.  If someone could tell me what I am doing
wrong it would make my day.  Thanks.  - Mike

#include "asm86.h"
#include "ti86asm.inc"

.org _asm_exec_ram

     call BUSY_OFF
     call _clrLCD
     ld hl, $0303
     ld (_curRow), hl
 
     ld hl, string
     add hl, de
     call D_HL_DECI
     jp gklp1
      
gklp1:
     call GET_KEY
     cp $37
     jp z, QUIT
     jr gklp1
 
QUIT:
   call _clrLCD
   ret

string:
 .db 255,255

.end    
END

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


Follow-Ups: References: