about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-02 14:28:10 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-02 14:28:10 -0700
commit5ddf4a402322b61f18745ddda879e439a17c3a18 (patch)
treeaab5492b261357034447e0dd7702eadf13bd5beb
parent871d2227c4a07b3be580d80894db40646fc59ca9 (diff)
downloadmu-5ddf4a402322b61f18745ddda879e439a17c3a18.tar.gz
4653
-rw-r--r--subx/apps/factorial.subx6
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