mirror of
https://github.com/marketideas/qasm.git
synced 2024-06-11 06:29:29 +00:00
merlin linker truncates opcodes to 3-characters.
This allows for things like `TYPe` and `LINk`
This commit is contained in:
parent
300a0b7bcd
commit
5ba4d043e5
|
@ -496,12 +496,15 @@ getopcode
|
||||||
blt ]lup
|
blt ]lup
|
||||||
beq ]lup
|
beq ]lup
|
||||||
dex
|
dex
|
||||||
:done lda #$2020
|
:done lda #$2020 ;truncate to 3 bytes max
|
||||||
sta opcode+$1,Y
|
sta opcode+$1,Y
|
||||||
|
sta opcode+4
|
||||||
tya
|
tya
|
||||||
and #$1F
|
|
||||||
sep $20
|
sep $20
|
||||||
sta opcode
|
cmp #4
|
||||||
|
bcc :3
|
||||||
|
lda #3
|
||||||
|
:3 sta opcode
|
||||||
]flush lda linebuff,x
|
]flush lda linebuff,x
|
||||||
cmp #' '
|
cmp #' '
|
||||||
bne :tya
|
bne :tya
|
||||||
|
|
Loading…
Reference in New Issue
Block a user