A82: help
[Prev][Next][Index][Thread]
A82: help
I'm almost done with my program. When I compiled it, it goes okay for a
bit, then it has about 3 straight lines (no pixels I think, just lines)
and they chase each other down the screen. It then locks up. I think the
problem must be here somewhere:
NewCityorKeep
ROM_CALL(CLEARLCD)
call set
ld hl,0
ld (CURSOR_ROW),hl
ld hl,ANewCity
ROM_CALL(D_ZT_STR)
call reset
ld a,(menu)
or a
call z,set
ld hl,Yes
ld a,1
ld (CURSOR_ROW),a
ld a,0
ld (CURSOR_COL),a
ROM_CALL(D_ZT_STR)
call reset
ld a,(menu)
cp 1
call z,set
ld hl,No
ld a,2
ld (CURSOR_ROW),a
ROM_CALL(D_ZT_STR)
ROM_CALL(KEY_HAND)
res 4,(IY+09)
cp K_UP
call z,newcityyes
cp K_DOWN
call z,newcityno
cp K_MODE
jr z,Nextpart
cp K_CLEAR
ret z
jr NewCityorKeep
Nextpart
ROM_CALL(CLEARLCD)
ld a,(menu)
or a
call z,GetANewCity
The other routines it uses are:
set:
set 3,(IY+05)
ret
reset
res 3,(IY+05)
ret
newcityyes
ld a,0
ld (menu),a
ret
newcityno
ld a,1
ld (menu),a
ret
It does what it is supposed to do, a Little Dude type screen, except for
that little bug. What is wrong?