vhelin / wla-dx

WLA DX - Yet Another GB-Z80/Z80/Z80N/6502/65C02/65CE02/65816/68000/6800/6801/6809/8008/8080/HUC6280/SPC-700/SuperFX Multi Platform Cross Assembler Package
Other
549 stars 98 forks source link

Suggestion: Add `.ADDR` as direct alias to `.WORD` #222

Closed Kroc closed 5 years ago

Kroc commented 5 years ago

Other assemblers (such as CA65) have .ADDR as an alias to .WORD purely for readability within code making it easier to see when, in tables of data, values are arbitrary vs. ROM/RAM locations.

I can't say whether 65816 code should use 2-bytes for .ADDR or 3, but an .LADDR directive could handle the long-address form accordingly.

vhelin commented 5 years ago

I just checked CA65's documentation and it seems that .ADDR is 16-bit while .FARADDR is 24-bit. But sure, I can add these to WLA.