This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

ca65 Memory Management using nes.cfg?

ca65 Memory Management using nes.cfg?
by on (#243236)
I am somewhat new to NES Development. I worked my way through the Nerdy nights and I am currently starting to work on my own game. First thing I did was switch over to the ca65 assembler. I am currently working on compression for my MetaTiles. I need lookup tables that start with a lowbyte $00. To achieve this I have been creating segments in my nes.cfg file.

Is this the best way to do this?

Is there a way to reserve a set of address in memory at specified location? .org caused me some issues

Does anyone know of some documentation/tutorial that takes a comprehensive look at the .cfg file in ca65?

any help would be awesome, thanks!
Re: ca65 Memory Management using nes.cfg?
by on (#243238)
Segments and the .align directive both work.
Re: ca65 Memory Management using nes.cfg?
by on (#243239)
The answer the first half -- you can use the .align command to align data/code to arbitrary alignments, which is perfect for the sort of thing you're talking about.

Also, the docs for the linker config are here. I don't know of any more tutorial-like descriptions of the config format. It's definitely a bit of a learning curve, but it's a great flexible system once you understand how it works.
Re: ca65 Memory Management using nes.cfg?
by on (#243240)
Thanks for the help! I got me some docs to read