multiple origins (* = ) in a flat binary file
ATasm is a 6502 command-line cross-assembler.
Brought to you by:
schmelze
Hello,
Testing making a ROM C000 - FFFF, I assemble this code;
atasm106.exe -r test.asm -oROM
* = $c000
main
brk
* = $fffa ; nmi vector
.word $1234
* = $fffc ; run vector
.word main
* = $fffe ; irq vector
.word $5678
I've got a binary file of size $4000, as expected. The first byte is a brk as expected. The 4k ROM is stuffed with $ff as expected... But the 6 last bytes (which should be the 3 vector) are also stuffed with $ff. I miss perhaps something, but I thank It could be a bug.
This is working in version 1.8