mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-12 03:30:09 +00:00
6502: zero-extend the division result
This commit is contained in:
parent
4654698891
commit
4dd470141a
@ -1388,6 +1388,7 @@ object MosExpressionCompiler extends AbstractExpressionCompiler[AssemblyLine] {
|
||||
val (l, r, size) = assertArithmeticBinary(ctx, params)
|
||||
size match {
|
||||
case 1 =>
|
||||
zeroExtend = true
|
||||
BuiltIns.compileUnsignedByteDivision(ctx, l, r, f.functionName == "%%")
|
||||
case 2 =>
|
||||
BuiltIns.compileUnsignedWordByByteDivision(ctx, l, r, f.functionName == "%%")
|
||||
|
Loading…
x
Reference in New Issue
Block a user