我正在用组装形式编写游戏。我想模仿我的角色的玩家。有人可以告诉我代码是什么问题吗?
proc arrows
PushAll
keletArrow:
call KeletTav
cmp al,4Dh;---------->
je right
cmp al,4Bh;<----------
je left ;
cmp al,50h;-----------\/
je down;
cmp al,48h ;----------^
je up
jne keletArrow
left:
cmp [xLocIcon],2d
je keletArrow
call deletePanda
sub [xLocIcon],22d
call printPanda
PopAll
ret
up:
cmp [yLocIcon],30d
je keletArrow
call deletePanda
sub [yLocIcon],12d
call printPanda
PopAll
ret
right:
cmp [xLocIcon],296d
je keletArrow
call deletePanda
add [xLocIcon],22d
call printPanda
PopAll
ret
down:
cmp [yLocIcon],186d
je keletArrow
call deletePanda
add [yLocIcon],12d
call printPanda
PopAll
ret
endp arrows