Assembly question


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

Assembly question



ok i'm trying to learn zshell and when i try to assemble this sample
program from a tutorial:

 #include "ti-85.h"

 .org 0
 .db "My first program!",0

   ROM_CALL(CLEARLCD)
   ld hl,0
   ld ($800C),hl
   ld hl,Text
   ld de,(PROGRAM_ADDR)
   add hl,de
   ROM_CALL(D_ZT_STR)
WaitKey:
   call GET_KEY
   cp K_EXIT
   jr nz,WaitKey
   ret

Text:
 .db "Hello World!",0

 .end

it says this:

TASM Z80 Assembler.       Version 3.0.1  June, 1994.
 Copyright (C) 1985-1994 by Speech Technology Incorporated
tasm: pass 1 complete.
C:\C85\ZSROUT\NEW.ASM line 0015: Label not found: (K_EXIT)
C:\C85\ZSROUT\NEW.ASM line 0015: Unused data in MS byte of argument.
(200)
tasm: pass 2 complete.
tasm: Number of errors = 2

I've tried to fix it and i just can't get it any hints? Please e-mail me
at abbbkblb@bright.net or post it
thanks