about summary refs log tree commit diff stats
path: root/subx/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-28 08:56:21 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-28 08:56:21 -0800
commit5a9795bb661314d658afffd84059cc32e3b3b709 (patch)
tree24ac00e68334f1dddf6a16e55468536650b94913 /subx/apps
parente0610e396f0218f5927be8bbcba9ec05be4b1479 (diff)
downloadmu-5a9795bb661314d658afffd84059cc32e3b3b709.tar.gz
4881
Diffstat (limited to 'subx/apps')
-rw-r--r--subx/apps/factorial.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx
index bd73d72b..adc772db 100644
--- a/subx/apps/factorial.subx
+++ b/subx/apps/factorial.subx
@@ -52,7 +52,7 @@ $run-main:
 $main:end:
     # syscall(exit, EAX)
     89/copy                         3/mod/direct    3/rm32/EBX    .           .             .           0/r32/EAX   .               .                 # copy EAX to EBX
-    b8/copy-to-EAX  1/imm32
+    b8/copy-to-EAX  1/imm32/exit
     cd/syscall  0x80/imm8
 
 factorial:  # n : int -> int/EAX