Fixed errors and documented everything
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user