stardot / beebasm

A portable 6502 assembler with BBC Micro style syntax
http://www.retrosoftware.co.uk/wiki/index.php/BeebAsm
GNU General Public License v3.0
84 stars 26 forks source link

Improve verbose output for INCBIN #58

Closed mungre closed 1 month ago

mungre commented 3 years ago

INCBIN should at least write the start address as verbose output, and maybe the file name.

lovebug's original query:

heres a small bit of code and the listing it generates

org page8000
.swramStart
    skip 16
.chrTable
    incbin "img-font.bin"
.chrTableEnd
.swramStart
     8000
.chrTable
.chrTableEnd

you can see that swramStart address label is generated but chrTable chrTableEnd address labels are missing, i have a lot of incbins one after the other and im not getting any address lables

however i can work around this problem by adding skip 0

org page8000
.swramStart
    skip 16
.chrTable
    skip 0
    incbin "img-font.bin"           ; load font table into memory
.chrTableEnd
    skip 0
.swramStart
     8000
.chrTable
     8010
.chrTableEnd
     810F