Skip to content

Commit

Permalink
fixed mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 committed Jan 17, 2025
1 parent 3fc7bdd commit c3c5eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/printer/AssemblerWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class AssemblerWriter {
// ~% -> false 1 true 2 1 0 DIV -> integer reduction by modulo (round) -> MODR
// ^% -> false 1 true 2 2 0 DIV -> integer reduction by modulo (ceil) -> MODC
// /% -> false 1 true 3 0 0 DIV -> quotient and the remainder -> DIVMOD
// ~/% -> false 1 true 3 0 0 DIV -> quotient and the remainder (round) -> DIVMODR
// ^/% -> false 1 true 3 0 0 DIV -> quotient and the remainder (ceil) -> DIVMODC
// ~/% -> false 1 true 3 1 0 DIV -> quotient and the remainder (round) -> DIVMODR
// ^/% -> false 1 true 3 2 0 DIV -> quotient and the remainder (ceil) -> DIVMODC
if (node.opcode === 'DIV') {
const fourthArg = (node.arguments[3] as ScalarNode)?.value
if (fourthArg === undefined) {
Expand Down

0 comments on commit c3c5eb6

Please sign in to comment.