From 6070c23e5e1c60d3bb169e43bddfa59b1d322427 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 16 Jan 2020 18:31:12 -0800 Subject: 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. --- html/apps/factorial3.subx.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/apps/factorial3.subx.html') diff --git a/html/apps/factorial3.subx.html b/html/apps/factorial3.subx.html index 04ebfe81..7b7cefe3 100644 --- a/html/apps/factorial3.subx.html +++ b/html/apps/factorial3.subx.html @@ -88,12 +88,12 @@ if ('onhashchange' in window) { 29 # - if argc > 1 and argv[1] == "test", then return run_tests() 30 # if (argc <= 1) goto run-main 31 81 7/subop/compare *ebp 1/imm32 -32 7e/jump-if-lesser-or-equal $run-main/disp8 +32 7e/jump-if-<= $run-main/disp8 33 # if (!kernel-string-equal?(argv[1], "test")) goto run-main 34 (kernel-string-equal? *(ebp+8) "test") # => eax 35 # . if (eax == false) goto run-main 36 3d/compare-eax-and 0/imm32/false -37 74/jump-if-equal $run-main/disp8 +37 74/jump-if-= $run-main/disp8 38 # 39 (run-tests) 40 # syscall(exit, *Num-test-failures) -- cgit 1.4.1-2-gfad0