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

6809: Fix LBRA

This commit is contained in:
Karol Stasiak 2019-12-15 23:47:01 +01:00
parent 086e474f4e
commit 6cd639a23a

View File

@ -204,6 +204,10 @@ class M6809Assembler(program: Program,
writeByte(bank, index, M6809Assembler.branches(op))
writeByte(bank, index + 1, param - (index + 2))
index + 2
case MLine0(BRA, LongRelative, param) =>
writeByte(bank, index, 0x16)
writeWord(bank, index + 1, param - (index + 3))
index + 3
case MLine0(op, LongRelative, param) if M6809Assembler.branches.contains(op) =>
writeByte(bank, index, 0x10)
writeByte(bank, index + 1, M6809Assembler.branches(op))