Better sleep values
This commit is contained in:
@@ -21,6 +21,7 @@ numApples: .long 0
|
|||||||
score: .long 0
|
score: .long 0
|
||||||
# Utility strings
|
# Utility strings
|
||||||
snibbles: .ascii "NIBBLES"
|
snibbles: .ascii "NIBBLES"
|
||||||
|
snibbles_end:
|
||||||
sgameover: .string " Game over! Score: %i "
|
sgameover: .string " Game over! Score: %i "
|
||||||
sgameover_end:
|
sgameover_end:
|
||||||
string1: .string "Started with snake length %i and %i apples!\n"
|
string1: .string "Started with snake length %i and %i apples!\n"
|
||||||
@@ -87,10 +88,12 @@ start_game:
|
|||||||
|
|
||||||
# Loop forever
|
# Loop forever
|
||||||
loop:
|
loop:
|
||||||
# Sleep for 150 ms
|
# Sleep for a while
|
||||||
pushl $500*1000
|
pushl $250*1000
|
||||||
|
pushl %ecx
|
||||||
call usleep
|
call usleep
|
||||||
addl $4, %esp
|
addl $4, %esp
|
||||||
|
|
||||||
jmp tick
|
jmp tick
|
||||||
|
|
||||||
popl %edi
|
popl %edi
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user