Does anyone have example source code for the SNASM658? I'd love to use the assembler for SNES development, but don't have a clue about setting up stuff like the execution addresses, banks, etc. (Under SNASM658, that is).
Hey there, I think what you are looking for is just "SNASM", which uses 65816 ASSEMBLY. You can find that here: http://beatmag.tripod.com/prog.htm What exactly are you trying to do, and maybe I could help :icon_bigg.
I'm actually looking for sample code for snasm658 by SN Systems. I want to use a tool that was used 'in the day' to create games for the SNES. (Kinda like SNASM68k for the Genesis). It been awhile since I programmed for the SNES, but I understand most of it. I just don't know the directives to set up parameters under SNASM658. I currently use: CartridgeHeader: ds $FFB4-CartridgeHeader db "00" db "SNES" CartridgeTitle: ds $FFC0-CartridgeTitle db "Game Name " CartridgeInfo: ds $FFD6-CartridgeInfo db $00 db $08 db $00 db $00 db $00 dw $0000 dw $0000 NativeVectors: ds $FFE4-NativeVectors dw Unused ; Native COP dw Unused ; Native break dw Unused ; Native abort dw Unused ; Native NMI dw Unused ; Unused dw VBlank ; VBlank EmulatedVectors: ds $FFF4-EmulatedVectors dw Unused ; Native COP dw Unused ; Native break dw Unused ; Native abort dw Unused ; Native NMI dw Start ; Reset dw VBlank ; VBlank There's gotta be a better way. I also need to know how banks are setup. If there's no other choice, I might have to use wla-65816.
you really should consider changeing assmembler... I mean if you even have to setup things like the header manually ^^ I would recommend x816 or wla-dx (wla-65816). I personaly use wla-dx.. thought I'm not 100% happy with it. I feel it's lacking some features and got some "features" that shouldn't be there..
I switched the wla-dx. It's pretty nice. But, I found some code for SNASM658 (or asm658). http://www.rastersoft.net/psybiose.zip I knew I was collecting all that stuff for a reason..
Hi there, I don't know if this helps, but I have some sample code using the psyq snes assembler which uses similar - if not the same - directives as snasm658: http://rpgd.emulationworld.com/fh/pages/rs1vwf.htm If you are downloading the snes (or any) CPE to SN/PsyQ hardware, I know you have to define the Program Counter with the REGS directive; ie: 'REGS pc=$008000' (the other 65816 registers could also be set with that). As for building a Cartridge Header, I use the EQUS directive to string equate a Title, and then have conditional IFDEFs in the cartridge header Section to see if the Title and the reset vectors need to be added or defaulted. -- FH