1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-18 22:07:07 +00:00

6502: Fix byte shifting

This commit is contained in:
Karol Stasiak 2019-08-03 20:31:27 +02:00
parent 10c76dcc9c
commit 9d78385cba

View File

@ -260,6 +260,7 @@ object BuiltIns {
val labelSkip = ctx.nextLabel("ss") val labelSkip = ctx.nextLabel("ss")
val labelRepeat = ctx.nextLabel("sr") val labelRepeat = ctx.nextLabel("sr")
val loop = List( val loop = List(
AssemblyLine.immediate(CPX, 0),
AssemblyLine.relative(BEQ, labelSkip), AssemblyLine.relative(BEQ, labelSkip),
AssemblyLine.label(labelRepeat), AssemblyLine.label(labelRepeat),
AssemblyLine.implied(opcode), AssemblyLine.implied(opcode),