diff options
-rw-r--r-- | subx/apps/factorial.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx index 49d71dd7..5ff819ff 100644 --- a/subx/apps/factorial.subx +++ b/subx/apps/factorial.subx @@ -39,11 +39,11 @@ # then e8/call run_tests/disp32 eb/jump $main_exit/disp8 - # else EAX <- factorial(5) + # else EAX = factorial(5) $run_main: # push arg 68/push 5/imm32 - # EAX <- call + # call e8/call factorial/disp32 # discard arg 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP @@ -67,7 +67,7 @@ factorial: # EBX: n-1 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 3/r32/EBX 8/disp8 . # copy *(EBP+8) to EBX 81 5/subop/subtract 3/mod/direct 3/rm32/EBX . . . . . 1/imm32 # subtract from EBX - # EAX: factorial(n-1) + # EAX = factorial(n-1) # push args 53/push-EBX # call |