Skip to content

Commit

Permalink
Update 12_calculator.asm
Browse files Browse the repository at this point in the history
fixed modulus regression
  • Loading branch information
aowendev committed Apr 8, 2024
1 parent fc502c6 commit 80b030b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions basic/modules/12_calculator.asm
Expand Up @@ -1034,6 +1034,7 @@ fp_n_mod_m:
fst 0; // store div in mem0
fmul; // n, m * int (n / m)
fsub; // n - m * int (n / m)
fgt 0; // n - m * int (n / m), int (n / m)
fce; // exit calculator
ret; // end of subroutine

Expand Down

0 comments on commit 80b030b

Please sign in to comment.