diff --git a/nibbles.S b/nibbles.S index 9213b40..b8857d7 100644 --- a/nibbles.S +++ b/nibbles.S @@ -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 diff --git a/nibbles_asm b/nibbles_asm index 683b409..4475c38 100755 Binary files a/nibbles_asm and b/nibbles_asm differ diff --git a/nibbles_asm_start b/nibbles_asm_start index 5d003ac..79d8182 100755 Binary files a/nibbles_asm_start and b/nibbles_asm_start differ diff --git a/nibbles_c b/nibbles_c new file mode 100755 index 0000000..d2a5398 Binary files /dev/null and b/nibbles_c differ