ASM6 symbol file output.
Moderator: Moderators
Re: ASM6 symbol file output.
Oh, I never use those. That could be a problem.
Re: ASM6 symbol file output.
Ha. Give them a try. You might learn why I prefer asm6...Movax12 wrote:Oh, I never use those. That could be a problem.
sonder
Re: ASM6 symbol file output.
Heh, I, on the other hand, am probably abusing them... For example, I do this for placing code/data at the very end of a bank (the "Game.FixedBank = $" is so I can include this multiple times):Movax12 wrote:Oh, I never use those. That could be a problem.
Code: Select all
.org $10000 - (+FixedBankEnd - +FixedBankStart)
Game.FixedBank = $
+FixedBankStart:
.include "interrupts\System.NMI.asm"
.include "interrupts\System.IRQ.asm"
.include "interrupts\System.Reset.asm"
.include "tables\System.BankIndexes.asm"
.include "tables\System.InterruptVectors.asm"
+FixedBankEnd:Re: ASM6 symbol file output.
OK. I cleaned up the source's formatting (Loopy apparently hated whitespace) and got it compiling and assembling my project.
Now to add the symbol file output. Can anyone help me with the format? I tried looking at an output file from a cc65 project thinking I could figure it out... and I can't.
Now to add the symbol file output. Can anyone help me with the format? I tried looking at an output file from a cc65 project thinking I could figure it out... and I can't.
sonder
Re: ASM6 symbol file output.
I agree that asm6 does a better job here, but I have other means. https://www.assembla.com/spaces/ca65hl/wikisonder wrote:Ha. Give them a try. You might learn why I prefer asm6...Movax12 wrote:Oh, I never use those. That could be a problem.
Regarding debug output format, maybe try to talk to thefox or qbradq on these forums.
Re: ASM6 symbol file output.
There's a file called "dbginfo.c" (and the corresponding header) in the CC65 sources, NintendulatorDX and NESICIDE use it to parse debug info files generated by CC65. The source can be helpful in figuring out the format, and you can also use it to fairly easily test if the debug files you have generated parse correctly.sonder wrote:Now to add the symbol file output. Can anyone help me with the format? I tried looking at an output file from a cc65 project thinking I could figure it out... and I can't.
It's probably not straightforward to generate them from other assemblers though because of how closely the format is tied to CC65. Especially if you want to support everything like source line infos.
I also seem to remember there is a small command line utility in the CC65 package that could be used to browse debug files.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
Re: ASM6 symbol file output.
Don't forget that ASM6 can already make listing files, which are useful in their own way.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Re: ASM6 symbol file output.
yeah that's what i've been relying on to do my debugging. manually tabbing back and forth and noting addresses. it's not much fun.Dwedit wrote:Don't forget that ASM6 can already make listing files, which are useful in their own way.
sonder
Re: ASM6 symbol file output.
I just added FCEUX label file export to asm6 since it had clear documentation and a straightforward format.sonder wrote:OK. I cleaned up the source's formatting (Loopy apparently hated whitespace) and got it compiling and assembling my project.
Now to add the symbol file output. Can anyone help me with the format? I tried looking at an output file from a cc65 project thinking I could figure it out... and I can't.
Here's the modded version + source. There's no commandline option, it just always outputs the nl files. I'll let someone else take care of that.
- Attachments
-
- asm6.zip
- (28.74 KiB) Downloaded 100 times
sonder
Re: ASM6 symbol file output.
It's 64 bit? Can you make win32?sonder wrote:sonder wrote: Here's the modded version + source. There's no commandline option, it just always outputs the nl files. I'll let someone else take care of that.
Re: ASM6 symbol file output.
Grab Tiny C compiler and compile it, the source is included. I'm sure people would appreciate it if you posted a 32bit version, I just don't wanna mess with that.Ti_ wrote:It's 64 bit? Can you make win32?sonder wrote:sonder wrote: Here's the modded version + source. There's no commandline option, it just always outputs the nl files. I'll let someone else take care of that.
sonder
Re: ASM6 symbol file output.
Well, ok. It's works, thank you.
Symbols files for labels and ram created. The only thing not working is equ's (like objects_X_low equ $300).
Symbols files for labels and ram created. The only thing not working is equ's (like objects_X_low equ $300).
Re: ASM6 symbol file output.
Ah, yeah. Nice catch. I meant to add those, should be fairly easy. Will post an update.Ti_ wrote:Well, ok. It's works, thank you.
Symbols files for labels and ram created. The only thing not working is equ's (like objects_X_low equ $300).
sonder
Re: ASM6 symbol file output.
Here. Note that I made it ignore all equates and values that are 1 character, so that indexes and such aren't included.sonder wrote:Ah, yeah. Nice catch. I meant to add those, should be fairly easy. Will post an update.Ti_ wrote:Well, ok. It's works, thank you.
Symbols files for labels and ram created. The only thing not working is equ's (like objects_X_low equ $300).
- Attachments
-
- asm6.zip
- (30.08 KiB) Downloaded 110 times
sonder
Re: ASM6 symbol file output.
Great work sonder!!! Thanks.