From 5ddf4a402322b61f18745ddda879e439a17c3a18 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 2 Oct 2018 14:28:10 -0700 Subject: 4653 --- subx/apps/factorial.subx | 6 +++--- 1 file 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 -- cgit 1.4.1-2-gfad0