Help with WLA DX for 65C816
Posted: Thu Jul 08, 2021 1:23 pm
Hello world, long-time listener, first-time caller. I have learned a lot reading through this forum over the past few months, so first of all, thank you!
After exciting success using the 65C02 for a while, I have decided to enter the world of the 65C816 and I am very excited about it. However, I can't for the life of me figure out how to get my code ROM-ready.
I'm trying to use WLA DX and come from the world of vasm, which I adore. I'm trying to emulate vasm functionality - point it at a file written in assembly and it spits out a perfect binary file ready to burn to ROM.
The simplest way I have found to get SOMETHING out of WLA DX is by using this code:
I don't quite understand how to use the memory map and ROM bank map functionality just yet, but I'm sure in time I can figure that out. However, when I send this through the wla-65816 assembler, it spits out a 92-byte file with "garbage" (file name, etc.) preceding the two bytes I actually want to have output.
I'm calling the assembler in terminal on Mac like this: ./wla-65816 -o outputfile 65816-notepad.asm
The documentation for the software is extraordinarily verbose and doesn't seem to cover the simple use-case I am constructing. I am not trying to emulate any cartridges or run this on a known entity, I'm just trying to write code like I would for vasm and then stick it on a ROM for my own bespoke 65C816 creation.
If anybody can help point me in the right direction, I would be eternally grateful. I absolutely love(d) working on my 65C02 projects, but am getting discouraged as to how this transition experience has been thus far. Thank you kindly for your consideration
After exciting success using the 65C02 for a while, I have decided to enter the world of the 65C816 and I am very excited about it. However, I can't for the life of me figure out how to get my code ROM-ready.
I'm trying to use WLA DX and come from the world of vasm, which I adore. I'm trying to emulate vasm functionality - point it at a file written in assembly and it spits out a perfect binary file ready to burn to ROM.
The simplest way I have found to get SOMETHING out of WLA DX is by using this code:
Code: Select all
.MEMORYMAP
SLOTSIZE $8000
SLOT 0 $8000
DEFAULTSLOT 0
.ENDME
.ROMBANKMAP
BANKSTOTAL 1
BANKSIZE $8000
BANKS 1
.ENDRO
lda #$06
I'm calling the assembler in terminal on Mac like this: ./wla-65816 -o outputfile 65816-notepad.asm
The documentation for the software is extraordinarily verbose and doesn't seem to cover the simple use-case I am constructing. I am not trying to emulate any cartridges or run this on a known entity, I'm just trying to write code like I would for vasm and then stick it on a ROM for my own bespoke 65C816 creation.
If anybody can help point me in the right direction, I would be eternally grateful. I absolutely love(d) working on my 65C02 projects, but am getting discouraged as to how this transition experience has been thus far. Thank you kindly for your consideration