blahblahblah wrote: ↑Wed May 11, 2022 1:55 pmOkay, new problem. I tested it with all the ROMs I had planned -- eight at 256kb -- and Action53 compiled correctly (I think), but
no emulator will play it and when I try to examine the banks with the NES Space Checker, I get the error "Floating point division by zero." What's going on there? How do I fix it?
Have you tried playing it with Mesen?
Action53 compiled correctly, you think? Well, to be sure about what happened, I would attempt to compile it again, but use gdb to compile it. Gdb is a c debugger… and you can step through the entire compiling process, slowly or jump to certain sections, to see if it compiled correctly.
I believe gdb comes with MingW.
Here is the site where I learned how to use gdb:
https://www.cs.cmu.edu/~gilpin/tutorial/
That site will teach you the basics… like how to start the compilation with gdb, and some basic super helpful useful commands. If you ever need to learn more about a command than gdb’s help tells you, just search that command with duckduckgo.com and look for an explanation listed at
https://stackoverflow.com/.
At least, that’s how it was possible for me to use gdb, but I guess others could help too.
Ooh, gdb is a command line debugger… but, it’s very powerful and super extremely helpful once you learn how to use it.
EDIT: Don’t worry about the very top of that gdb learning site… start reading at the
Debug section.
I guess you could type
gdb yourAction53programName and then type
run and see how/or-if your Action53 crashes.
Actually, for debugging my asm6_.exe, I typed
gdb asm6_ and-the-rest-of-the-assembly-command-line-used-to-assemble-my-nes-game to start the debugging process. Normally, that assembly command line starts with
asm6_.