I'm attempting to write a program in ca65 that has 70-ish bytes reserved within the zero page. This is basically what it looks like:
Whenever I attempt to assemble it, I get a memory area overflow error for the zero page unless I cut it down to only 26 bytes.
I think I'm misunderstanding, but I'd assume I could reserve a maximum of 256 bytes of the zero page since that's how big the zero page is (i.e. $0000 to $00ff), so why can I only reserve 26?
Do I have any real options if I want to store this data in the RAM?
Code:
.segment "HEADER"
.byte "NES", $1a
.byte 2
.byte 1
.byte $01, $00
.segment "STARTUP"
.segment "ZEROPAGE"
name_of_variable_here: .res 1 ; this times approx. 70
.segment "CODE"
; rest of code here
.byte "NES", $1a
.byte 2
.byte 1
.byte $01, $00
.segment "STARTUP"
.segment "ZEROPAGE"
name_of_variable_here: .res 1 ; this times approx. 70
.segment "CODE"
; rest of code here
Whenever I attempt to assemble it, I get a memory area overflow error for the zero page unless I cut it down to only 26 bytes.
I think I'm misunderstanding, but I'd assume I could reserve a maximum of 256 bytes of the zero page since that's how big the zero page is (i.e. $0000 to $00ff), so why can I only reserve 26?
Do I have any real options if I want to store this data in the RAM?