From cea97b7b22e91cced90f11f1df42cdd09337e8df Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 9 Dec 2019 16:54:34 -0800 Subject: 5810 --- html/apps/factorial2.subx.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/apps/factorial2.subx.html') diff --git a/html/apps/factorial2.subx.html b/html/apps/factorial2.subx.html index 343d7d68..44870ee1 100644 --- a/html/apps/factorial2.subx.html +++ b/html/apps/factorial2.subx.html @@ -105,8 +105,8 @@ if ('onhashchange' in window) { 45 e8/call kernel-string-equal?/disp32 46 # . . discard args 47 81 0/subop/add %esp 8/imm32 - 48 # . if (eax == 0) goto run-main - 49 3d/compare-eax-and 0/imm32 + 48 # . if (eax == false) goto run-main + 49 3d/compare-eax-and 0/imm32/false 50 74/jump-if-equal $run-main/disp8 51 # run-tests() 52 e8/call run-tests/disp32 @@ -137,10 +137,10 @@ if ('onhashchange' in window) { 77 b8/copy-to-eax 1/imm32 78 81 7/subop/compare *(ebp+8) 1/imm32 79 7e/jump-if-<= $factorial:end/disp8 - 80 # ebx = n-1 + 80 # var ebx : int = n-1 81 8b/-> *(ebp+8) 3/r32/ebx 82 4b/decrement-ebx - 83 # eax = factorial(n-1) + 83 # var eax : int = factorial(n-1) 84 # . . push args 85 53/push-ebx 86 # . . call -- cgit 1.4.1-2-gfad0