diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-12 14:35:34 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-12 14:35:34 -0700 |
commit | 03c7ae3eca6bc136c6ecefeb81477a36ee4ac097 (patch) | |
tree | 0175d9ceb42812e2a8ac6756ae5a9825d452d3fe | |
parent | 420cb686819f3651ba66d795e8f8bb7398c4a2bc (diff) | |
download | mu-03c7ae3eca6bc136c6ecefeb81477a36ee4ac097.tar.gz |
4508
-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 |