1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-21 09:16:34 +00:00

6809: Allow explicit absolute addressing mode

This commit is contained in:
Karol Stasiak
2020-07-31 13:26:08 +02:00
parent 33d67ec932
commit ed55e2f081
2 changed files with 4 additions and 0 deletions
@@ -100,6 +100,7 @@ case class M6809Parser(filename: String,
pos <- position()
(a, e) <-
("#" ~/ HWS ~/ asmExpression).map(Immediate -> _) |
(">" ~/ HWS ~/ asmExpression).map(Absolute(false) -> _) |
("<" ~/ HWS ~/ asmExpression).map(DirectPage -> _) |
("[" ~/ AWS ~/ asmParameterNoIndirectOrImmediate ~/ AWS ~/ "]").map { case (a, e) => a.makeIndirect(pos) -> e } |
asmParameterNoIndirectOrImmediate