i know i have asked how to move sprites before but i still have a problem. can some one tell me what is wrong with the code.
Code:
.nolist
#include "ion.inc"
.list
#ifdef ti83p
.org progstart-2
.db $BB,6D
#else
.org progstart
#endif
ret
jr nc,begin
.db "Ion Sprite Move",0
begin:
bcall(_clrlcdfull)
bcall(_indicatoroff)
ld hl,5
push hl
ld a,5
ld l,a
ld b,8
ld ix,sprite
call ionputsprite
call ionfastcopy
bcall(_getkey)
cp kDown
jr z,down
down:
call ionputsprite
pop hl
ld a,l
add a,5
ld l,a
ld h,0
push hl
ld a,l
ld l,a
pop hl
ld b,8
ld ix,sprite
call ionputsprite
call ionfastcopy
bcall(_getkey)
ret
sprite:
.db %00011100
.db %00011100
.db %00101010
.db %00011100
.db %00001000
.db %00001000
.db %00010100
.db %00100010
.end
END
when i try to compile it it wont compile for some reason. it cant find the kdown in ion.inc. and i do not know any other alternative except to use
Code:
bcall(_getk)
bcall(_op2toop1)
bcall(_convop1)