fachat / xa65

6502/65816 cross assembler
http://www.floodgap.com/retrotech/xa/
55 stars 8 forks source link

Negative offset on undef'd variable (defined with -L in reloc mode) results in 65816 mode required #5

Closed fachat closed 4 years ago

fachat commented 4 years ago

If a variable is defined as undefined for late binding using -L, and a negative offset is used, this results in an underflow and thus a parameter length > 2. So 6502 addressing gives an overflow.