about summary refs log tree commit diff stats
path: root/apps/factorial2.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-16 18:31:12 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-16 18:31:12 -0800
commit6070c23e5e1c60d3bb169e43bddfa59b1d322427 (patch)
tree9a70e378c33c15e4779cf94abda8f37c35a5d1da /apps/factorial2.subx
parent5a6601aba973ba1d1ef30b7b64438c25623b89c5 (diff)
downloadmu-6070c23e5e1c60d3bb169e43bddfa59b1d322427.tar.gz
5897 - rename comparison instructions
Signed and unsigned don't quite capture the essence of what the different
combinations of x86 flags are doing for SubX. The crucial distinction is
that one set of comparison operators is for integers and the second is
for addresses.
Diffstat (limited to 'apps/factorial2.subx')
-rw-r--r--apps/factorial2.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/factorial2.subx b/apps/factorial2.subx
index f6578f1b..7e0a737d 100644
--- a/apps/factorial2.subx
+++ b/apps/factorial2.subx
@@ -35,7 +35,7 @@ Entry:  # run tests if necessary, compute `factorial(5)` if not
     # - if argc > 1 and argv[1] == "test", then return run_tests()
     # if (argc <= 1) goto run-main
     81 7/subop/compare *ebp 1/imm32
-    7e/jump-if-lesser-or-equal $run-main/disp8
+    7e/jump-if-<= $run-main/disp8
     # if (!kernel-string-equal?(argv[1], "test")) goto run-main
     # . eax = kernel-string-equal?(argv[1], "test")
     # . . push args
@@ -47,7 +47,7 @@ Entry:  # run tests if necessary, compute `factorial(5)` if not
     81 0/subop/add %esp 8/imm32
     # . if (eax == false) goto run-main
     3d/compare-eax-and 0/imm32/false
-    74/jump-if-equal $run-main/disp8
+    74/jump-if-= $run-main/disp8
     # run-tests()
     e8/call run-tests/disp32
     # syscall(exit, *Num-test-failures)