Search found 1238 matches

by calima
Fri Feb 05, 2016 8:37 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

https://github.com/cc65/cc65/issues/263

It happens to both pointers and 16-bit variables, but nobody's made a minimal example yet. A workaround is to disable optimizations.
by calima
Fri Feb 05, 2016 8:32 am
Forum: General Stuff
Topic: Getting into 8-bit NESdev with only 64-bit free software
Replies: 73
Views: 60898

Re: Getting into 8-bit NESdev with only 64-bit free software

If you refuse all non-free software, how do you connect to the Internet? The firmware of your machine's Wi-Fi radio is probably not free software. I connect via wired Ethernet, which incidentally needs no firmware. There is burned-in microcode in the chip, which I'd like to be free, but in the abse...
by calima
Fri Feb 05, 2016 8:14 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Funny, it actually loads that data set into the HW stack at the start of the game, but never uses it. Then, when you press 'SELECT'... when it crashes, it IS accessing it, to load to the PPU. (sometimes it doesn't crash) when it doesn't crash, it ISN'T using it at all. The cc65 bug causes garbage t...
by calima
Fri Feb 05, 2016 7:55 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

No, screw you. Have fun posting a ROM every time you hit a bug so others can find the cause for you. That sure sounds like a productive workflow. Yes, that is exactly what I have done, and intend to do. /s Telling a Linux user to install Windows is awfully unhelpful. "just install VirtualBox and a ...
by calima
Fri Feb 05, 2016 7:23 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Doesn't look like the C stack is bonkers either. SP does not become bad at any point.
by calima
Fri Feb 05, 2016 7:12 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

dougeff wrote:The hardware stack will wrap back on itself...102, 101, 100, 1ff. Overwriting itself. But, noone ever uses that much HW stack, so this generally means an infinite loop has occurred, and the program is crashing.
Thanks for the correction.
by calima
Fri Feb 05, 2016 6:44 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

It is not a hw stack overflow. 0x100 is never accessed.
by calima
Fri Feb 05, 2016 4:02 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

ROM link:
https://u.pomf.is/vstins.gz

Wait a second or two and press select.
by calima
Fri Feb 05, 2016 2:32 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Is it necessarily more pathetic than wanting to adhere to some standard of 64-bit purity? And waste several gigs? I have better use for that space. To the people telling me to pirate or pay for Windows, screw you. That is never the solution, it's a problem. (in particular, some global state (either...
by calima
Fri Feb 05, 2016 2:16 am
Forum: NES Graphics
Topic: Is it possible to add new colors to the palette?
Replies: 24
Views: 13067

Re: Is it possible to add new colors to the palette?

The only way you'd be able to change video characteristics that depend on more than external memory access is if you put a custom video chip inside the cartridge and connect a cable from that to the TV, instead of using the console's video jack. Most would consider this cheating though, since you c...
by calima
Thu Feb 04, 2016 2:07 pm
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Unless you're using Linux on a non-x86 platform, you can do what I did: sudo apt-get install wine and then use the Windows version. Pure 64-bit, so Wine is not a possibility. Is there any other code that would also happen at level change, that writes to the PPU? Is it perhaps doing it while renderi...
by calima
Thu Feb 04, 2016 10:53 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

AFAIK no emulator for Linux supports any debugging, though I've only tried the most popular ones. That's making this quite hard.
by calima
Thu Feb 04, 2016 10:27 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Well, I don't have any nmi/vblank code. It's all Shiru's, which is well tested, and I've used it myself in several games successfully.
by calima
Thu Feb 04, 2016 10:10 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Dwedit wrote:From just the picture alone, it looks like it is repeatedly running the code to update graphics that would usually be in NMI.
That's not possible. Well unless something corrupted the state it keeps for that in the ZP. Which I have no way of testing :(
by calima
Thu Feb 04, 2016 10:06 am
Forum: NESdev
Topic: How to debug a nes crash?
Replies: 51
Views: 13060

Re: How to debug a nes crash?

Thanks for the suggestions. I don't think some of them apply though, they're asm-specific, which I'm not using. The bankswitch is not responsible. When I move it to the start of main, things crash here the same. The PPU is off in this function, and every cpu-heavy function has been tested under valg...