Fixed errors and documented everything

This commit is contained in:
2014-12-05 03:04:46 +01:00
parent 340aa29d4a
commit a659c072da
22 changed files with 3958 additions and 153 deletions
+10 -5
View File
@@ -1,12 +1,17 @@
.text
// _start
// ======
// The `_start` symbol. Calls `start_game` with "reasonable parameters".
.global _start
_start:
# n_apples
// `n_apples`
pushl $10
# len
// `len`
pushl $3
// `start_game(int len, int n_apples)`
call start_game
addl $4*2, %esp
movl $0, %eax
ret
// Exit cleanly with an exit code of 0
pushl $0
call _exit