diff options
-rwxr-xr-x | subx/apps/factorial | bin | 157 -> 167 bytes | |||
-rw-r--r-- | subx/apps/factorial.subx | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/subx/apps/factorial b/subx/apps/factorial index d9501e23..e60e7d21 100755 --- a/subx/apps/factorial +++ b/subx/apps/factorial Binary files differdiff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx index 76594623..31821dce 100644 --- a/subx/apps/factorial.subx +++ b/subx/apps/factorial.subx @@ -20,7 +20,7 @@ 68/push . . . . . . . 5/imm32 # push 5 e8/call . . . . . . factorial/disp32 # discard arg - 5a/pop . . . . . . . . # pop into EDX + 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add 4 to ESP # clean up after call 89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP 5d/pop . . . . . . . . # pop to EBP @@ -47,7 +47,7 @@ factorial: 53/push . . . . . . . . # push EBX e8/call . . . . . . factorial/disp32 # discard arg - 5e/pop . . . . . . . . # pop into ESI + 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add 4 to ESP # clean up after call 89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP 5d/pop . . . . . . . . # pop to EBP |