about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-16 00:10:15 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-16 00:10:15 -0700
commitf613a8bed58fa81c47982c60824f0d91677c5125 (patch)
treee3342487b8bf20f529b84a647e81c8eb8fff7a0e /subx
parent6528a08992b3518c86628260c2318a792abaa6bd (diff)
downloadmu-f613a8bed58fa81c47982c60824f0d91677c5125.tar.gz
4700
Diffstat (limited to 'subx')
-rw-r--r--subx/apps/factorial.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx
index 578aeb70..1ed438e6 100644
--- a/subx/apps/factorial.subx
+++ b/subx/apps/factorial.subx
@@ -39,7 +39,7 @@
   # then return run-tests()
   e8/call  run-tests/disp32
   8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           0/r32/EAX   Num-test-failures/disp32          # copy *Num-test-failures to EAX
-  eb/jump  $main-exit/disp8  # where EAX will get copied to EBX
+  eb/jump  $main:exit/disp8  # where EAX will get copied to EBX
   # else EAX = factorial(5)
 $run-main:
     # push arg
@@ -48,7 +48,7 @@ $run-main:
   e8/call  factorial/disp32
     # discard arg
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-$main-exit:
+$main:exit:
   # exit(EAX)
   89/copy                         3/mod/direct    3/rm32/EBX    .           .             .           0/r32/EAX   .               .                 # copy EAX to EBX
   b8/copy-to-EAX  1/imm32