Code: Select all
long = $123456
word = $007890
BF 56 34 12 LDA long, X ; good
AD 90 78 LDA word ; wanting long addressing mode
BF 90 78 00 LDA \word, X ; got long mode
Daryl
Code: Select all
long = $123456
word = $007890
BF 56 34 12 LDA long, X ; good
AD 90 78 LDA word ; wanting long addressing mode
BF 90 78 00 LDA \word, X ; got long mode
Code: Select all
long = $123456
word = $007890
byte = $89
BF 56 34 12 LDA long, X ; good
BF 90 78 00 LDA \3word, X ; force long mode
BF 89 00 00 LDA \3byte, X ; force long mode
BD 89 00 LDA \2byte, X ; force absolute mode vs direct.
BF FF FF 00 LDA \3$FFFF, X ; can be used with numeric constants also.
Code: Select all
.XWORD $123456 ; 24 bit constant declaration
.DX $123456
.DWORD $12345678 ; 32 bit constant declaration
.DDW $12345678
.DATE ; inserts ASCII date in the format YYYY-MM-DD into the output file. It is not null-terminated.
.TIME ; inserts ASCII time in the format (24 hour time) HH:MM:SS. It is not null-terminated.
COP #$00 ; you can insert an immediate value after COP - $02 $00
COP ; or you can have just the opcode - $02
Code: Select all
...
COP #$00 ; you can insert an immediate value after COP - $02 $00
COP ; or you can have just the opcode - $02