LZ: HELP


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

LZ: HELP



 Can someone please tell me what is wrong with this piece of code. I am
new
 to programming in ASM so please don't be too critical. My problem is that
 whenever I run the program it doesn't do what it is supposed to do
instead
 in a very light text a bunch of characters run along the bottem of the
 screen and when I press the [ON] key it displays the characters darker
for
 a second and then goes lighter again. Anyway here it is.
 
 #include "TI-85.H"
 
.org 0
.db "Text test"
 
INIT:
 	ROM_CALL(CLEARLCD)
 	JUMP_(CallKey)
CallKey:
 	ROM_CALL(CLEARLCD)
 	call GET_KEY
 
 	cp $1
 	JUMP_Z(Haha)
 	cp $9
 	ret z
 	cp $37
 	ret z
Haha:
	ld hl, (PROGRAM_ADDR)
	ld de,HaStr
	add hl,de
 	ROM_CALL(D_ZT_STR)
HaStr:
 	.db "HaHa"
 	JUMP_(CallKey)
.end