fixed code gen issue for uword >= comparison

This commit is contained in:
Irmen de Jong 2022-01-09 13:23:29 +01:00
parent a9b45630d7
commit b092d1a5d3
2 changed files with 1 additions and 1 deletions

View File

@ -2822,6 +2822,7 @@ $label nop""")
if(rightConstVal.number.toInt()!=0) {
assignExpressionToRegister(left, RegisterOrPair.AY)
code("#>${rightConstVal.number.toInt()}", "#<${rightConstVal.number.toInt()}")
return
}
}
}

View File

@ -3,7 +3,6 @@ TODO
For next compiler release (7.7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- perhaps also optimize testNonzeroComparisonAndJump() ?
- copying floats around: do it with a subroutine rather than 5 lda/sta pairs .
is slower but floats are very slow already anyway and this should take a lot less program size.
-> assignVariableFloat() + assignConstantFloat()