[A83] Wrong Code?
[Prev][Next][Index][Thread]
[A83] Wrong Code?
Hi,
Can someone help me?!
Why does the following code doesn't work?
Normally the calc had to put the cursor down, if he is up and up, if he is
down. But it don't work!
put_cur:
ld c,1
ld b,5
ld l,(cury)
ld a,(curx)
ld ix,pijl
call ionLargeSprite
call ionFastCopy
keypress:
call _getkey
cp KUp
call z,mUp
cp kDown
call z,mDown
jp keypress
mdown:
ld a,31
cp cury
jp z, keypress
ld a,31
ld (cury),a
jp put_cur
mup:
ld a,25
cp cury
jp z,keypress
ld a,25
ld (cury),a
jp put_cur
Vincent J.
References: