Better sleep values

This commit is contained in:
2014-12-04 17:49:58 +01:00
parent 76942560fc
commit f4bc62dd89
4 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -21,6 +21,7 @@ numApples: .long 0
score: .long 0
# Utility strings
snibbles: .ascii "NIBBLES"
snibbles_end:
sgameover: .string " Game over! Score: %i "
sgameover_end:
string1: .string "Started with snake length %i and %i apples!\n"
@@ -87,10 +88,12 @@ start_game:
# Loop forever
loop:
# Sleep for 150 ms
pushl $500*1000
# Sleep for a while
pushl $250*1000
pushl %ecx
call usleep
addl $4, %esp
jmp tick
popl %edi
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Executable
BIN
View File
Binary file not shown.