High RAM question
Posted: Tue Apr 25, 2023 4:13 am
I'm using the cc65 compiler to compile some C code. A little project that I'm working on.
I understand that I can change the byte at memory address 0x0000 to change the High RAM bank. I understand that bank 0 is reserved for the Kernal. So, banks 1 to 63 are fair game and I can assume that there will be memory there. However, does the C run time use any of High RAM? Can I change that register willy-nilly (for fun and for profit, of course) while my program is running and expect nothing to have a heart attack? (Though, given that I'm using C and that the RAM bank register is at NULL, heart attacks are to be expected.)
This really isn't an X16 question so much as an X16 + programming environment question, but it does seem more appropriate than the cc65 discussion board. If you think I should just try it and see, give me a little while. I'm a ways away from having the program at that level. I've been doing bottom-up programming, and I haven't gotten to the thing that uses ALL the memory, yet.
Thanks
I understand that I can change the byte at memory address 0x0000 to change the High RAM bank. I understand that bank 0 is reserved for the Kernal. So, banks 1 to 63 are fair game and I can assume that there will be memory there. However, does the C run time use any of High RAM? Can I change that register willy-nilly (for fun and for profit, of course) while my program is running and expect nothing to have a heart attack? (Though, given that I'm using C and that the RAM bank register is at NULL, heart attacks are to be expected.)
This really isn't an X16 question so much as an X16 + programming environment question, but it does seem more appropriate than the cc65 discussion board. If you think I should just try it and see, give me a little while. I'm a ways away from having the program at that level. I've been doing bottom-up programming, and I haven't gotten to the thing that uses ALL the memory, yet.
Thanks