diff options
Diffstat (limited to 'subx')
-rw-r--r-- | subx/ex7.subx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/ex7.subx b/subx/ex7.subx index 78b362db..07b2e016 100644 --- a/subx/ex7.subx +++ b/subx/ex7.subx @@ -38,7 +38,7 @@ factorial: b8/copy . . . . . . . 1/imm32 # copy 1 to EAX # if (n <= 1) jump exit 81 7/subop/compare 3/mod/direct 2/rm32/EDX . . . . . 1/imm32 # compare EDX with 1 - 7e/jump-if . . . . . . factorial:exit/disp8 # jump if <= to exit + 7e/jump-if-<= . . . . . . factorial:exit/disp8 # jump if <= to exit # EBX: n-1 89/copy 3/mod/direct 3/rm32/EBX . . . 2/r32/EDX . . # copy EDX to EBX 81 5/subop/subtract 3/mod/direct 3/rm32/EBX . . . . . 1/imm32 # subtract 1 from EBX |