How wide is zero?
- smokku
MADS used to complain about loading a zero straight after switching the
65816 accumulator to 16 bits. zbyti fixed that one.
This was enough to get a “Bad register size” error with width checking on.
.a16
lda #0
Zero fits in a byte. The CPU still expects two bytes after .a16, and
MADS now assembles it that way.
You can drop the .w workaround.