hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
715 stars 56 forks source link

stop the leading blank fill of a Bank (with the Intel Hex output) #206

Closed cjmonica closed 4 months ago

cjmonica commented 4 months ago

Customasm seems to always prefill leading blanks (zero data) for Banks (with the Intel Hex output).

Ex Definition:

Customasm is defined as:

bankdef data

{

addr 0x8000

#size 0x8000
#outp 8 * 0x8000

}

bank data

d "cm"

The Intel Hex output is as below: (many records of prefill zeros) . . :207FC0000000000000000000000000000000000000000000000000000000000000000000A1 :207FE000000000000000000000000000000000000000000000000000000000000000000081 :02800000636DAE :00000001FF

The Hex files should only have the last two records (all the proceeding records are blank fill), where the data begins at 0x8000.

:02800000636DAE :00000001FF

My RAM begins at address 0x8000 and that is where the bank data/code should begin/get loaded. Programs loading an Intel Hex file do not need the prefill blank/zero data. There should be a way to suppress the blank prefill and just start the load at 0x8000 in this example.

Thanks for your great work on this tool!

cjmonica commented 4 months ago

Thanks Lorenzi that looks great so far! Thanks again for this awesome tool!