fix a regression from 3 commits and 12 days ago :/

Thanks Antonio D'Souza for reporting issue #51, which this fixes.
This commit is contained in:
Kartik K. Agaram 2021-12-24 13:12:59 -08:00
parent 5bbc33d823
commit 7ab55b3494
2 changed files with 7 additions and 7 deletions

View File

@ -9,3 +9,10 @@ fn next-random prev: int -> _/edi: int {
next <- remainder next, m
return next
}
fn remainder a: int, b: int -> _/eax: int {
var q/eax: int <- copy 0
var r/edx: int <- copy 0
q, r <- integer-divide a, b
return r
}

View File

@ -308,10 +308,3 @@ fn render-tile-without-margin screen: (addr screen), _tile: (addr tile), start-x
loop
}
}
fn remainder a: int, b: int -> _/eax: int {
var q/eax: int <- copy 0
var r/edx: int <- copy 0
q, r <- integer-divide a, b
return r
}