How to force ca65 to reserve memory at page boundary?
Moderator: Moderators
Re: How to force ca65 to reserve memory at page boundary?
You can shrink the segment of your RAM so it doesn't overlap.
nesdoug.com -- blog/tutorial on programming for the NES
Re: How to force ca65 to reserve memory at page boundary?
Then make another memory area at $690-$6FF or something.
- rainwarrior
- Posts: 8732
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: How to force ca65 to reserve memory at page boundary?
If the segment has the align attribute on it you can use the .align directive to make it pad to a power-of-two boundary:yaros wrote:And in this project I should not use too much RAM to overlap with this address, but can I actually make ca65 to reserve space at certain address without creating separate segment in the middle of the RAM?
Code: Select all
; CFG has "align=256" on the current segment
.align 256
thing: .res 55 ; this will be aligned to 256 bytes