Thank you so much for your suggestions, guys!!
ZP_RESERVED was a workaround I came-up with for having extern variables on the zeropage, until I finally decided to pay more attention to the CC65 documentation. I don't need it anymore and I use it only for debug purposes. I'll be getting rid of it soon.
What you see on the project shared on GitHub is just a fraction (maybe 3%), of what I'm currently developing...
I think I calculated the RAM size by subtracting the other sections, but I will have another look. Thanks for pointing it out!
Well, if it wasn't for C and the 8bitworkshop IDE I'd probably haven't gotten into NES development. Being a Python developer is what pays the bills, but on my free time I love messing with C and sometimes C++. My programming path, which started in the 90's when like this:DRW wrote: ↑Fri Jul 10, 2020 8:51 pmIf you want my suggestion: Ditch neslib and that crt0 file.
But that neslib, as far as I know, simply encapsulates the basic NES functions, like controller reading, waiting for NMI etc. And I think those are things that every NES programmer should know about and understand in its entirety and he should be able to write it himself.
TurboBASIC --> Visual Basic --> C (in school) --> [10 years without programming at all] --> QBASIC --> Basic4Android --> JNI (Java Interfaced C for Android) --> Python 3 --> C (x86/mainframes) --> C++ --> C (NES) --> ASM (NES)
So while I replace some of the neslib functions with my own ASM every now and then, I don't see myself yet replacing the entire thing (yet).
Nevertheless, I always look at the listings and try to understand how everything works and how I can make improvements.
On the low-level part of my NES project I have someone collaborating with me every now and then, so we might join forces again to improve on the assembly side.
Yes, I agree. I was thinking about writing some kind of MMC3 wrapper/header for the famitone lib, which would be completely independent from the other modules.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I admit that I need to improve my low-level knowledge of the NES and it's really embarrassing when I get stuck just because something is not working on the assembly side. Thank you so much for your patience to teach n00bs like me!!!