This commit is contained in:
Kartik Agaram 2018-09-24 23:01:38 -07:00
parent c5d9a32fe6
commit 5347cf8bf4
3 changed files with 17 additions and 17 deletions

View File

@ -339,10 +339,10 @@ write_stderr: # s : (address array byte) -> <void>
b8/copy . . . . . . . 4/imm32/write # copy 1 to EAX
cd/syscall 0x80/imm8
# restore registers
5b/pop-EBX
5a/pop-EDX
59/pop-ECX
58/pop-EAX
5b/pop-to-EBX
5a/pop-to-EDX
59/pop-to-ECX
58/pop-to-EAX
# end
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
5d/pop-to-EBP
@ -370,10 +370,10 @@ write_stdout: # s : (address array byte) -> <void>
b8/copy . . . . . . . 4/imm32/write # copy 1 to EAX
cd/syscall 0x80/imm8
# restore registers
5b/pop-EBX
5a/pop-EDX
59/pop-ECX
58/pop-EAX
5b/pop-to-EBX
5a/pop-to-EDX
59/pop-to-ECX
58/pop-to-EAX
# end
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
5d/pop-to-EBP

View File

@ -77,7 +77,7 @@ factorial:
# TODO: check for overflow
$factorial:exit:
# epilog
5b/pop-EBX
5b/pop-to-EBX
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
5d/pop-to-EBP
c3/return
@ -367,10 +367,10 @@ write_stderr: # s : (address array byte) -> <void>
b8/copy . . . . . . . 4/imm32/write # copy 1 to EAX
cd/syscall 0x80/imm8
# restore registers
5b/pop-EBX
5a/pop-EDX
59/pop-ECX
58/pop-EAX
5b/pop-to-EBX
5a/pop-to-EDX
59/pop-to-ECX
58/pop-to-EAX
# end
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
5d/pop-to-EBP

View File

@ -291,10 +291,10 @@ write_stderr: # s : (address array byte) -> <void>
b8/copy . . . . . . . 4/imm32/write # copy 1 to EAX
cd/syscall 0x80/imm8
# restore registers
5b/pop-EBX
5a/pop-EDX
59/pop-ECX
58/pop-EAX
5b/pop-to-EBX
5a/pop-to-EDX
59/pop-to-ECX
58/pop-to-EAX
# end
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
5d/pop-to-EBP