Closed Kroc closed 1 year ago
WLA DX targets mostly platforms where everything is put into ROM banks. Like multiples of 16KBs etc. But you can use -b with WLALINK to output "programs". Programs, in this context, are pieces of occupied ROM banks. So define the .MEMORYMAP etc. like usual, covering the whole system's memory. Then give -b for WLALINK to get out only the piece of "ROM BANK" where code/data is put.
If the program file requires headers etc., what -t CBMPRG for WLALINK would do, then we'll need to add support for such header/platform.
Ah, thank you for the reminder! I'm wondering if some auto-detection could be done for output file names ending in ".com" for CP/M binaries and ".prg" (with header) /".seq" (without header) for CBM files?
I have to admit that I don't know that much about different target platforms that I could say that such autodetection would be possible. Maybe multiple platforms share a .prg file postfix? Anyway, if you want support for new headers for new platforms, please submit a specific issue!
I'm not sure how to output only the bytes assembled, rather than the entire "ROM".
This is a minimal Z80 CP/M program. Code always starts at $0100. The amount of space available varies from system to system but it is not likely to be more than 60K.
When I assemble this I'm getting a 63KB ".com" binary. How to output only the bytes assembled?