0

I need help. I do not know what to do. I need the snake speed up every time it eats an item but every time I try to manipulate dl the snake goes so fast that it is impossible to see it.

Note: the code prints the snake fine but does not increase the speed gradually what do you recommend me to do?

play:
int 16h 
mov key,al
delaying:
mov ah,2ch
int 21h
cmp dl,seconds
je delaying 
mov seconds,dl
MoveSnake key
mov ah,01h 
int 16h
jz delaying
jnz play
Peter Cordes
  • 286,368
  • 41
  • 520
  • 731
username
  • 1
  • 1
  • Very related: https://stackoverflow.com/questions/67469136/assembly-x86-16bit-more-accurate-time-measurement – chtz Dec 16 '21 at 15:37

0 Answers0