| |
Rudi Account closed
Registered: May 2010 Posts: 125 |
Newbie question
Im not very used to all the shit the c64 has to offer.
I want to put a 49 byte long table in zeropage, but the darn program just halts when I do. Even just putting a (two byte) word somewhere in zp makes it halt. something is very wrong.
Can I switch off the stuff in zeropage and use all the space there (except $00 and $01) ?
(I want to do indirect-indexed addressing there) |
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
of course you can use the entire zp as you want - but then you must make sure nothing else uses it. the system interupt for example (for a start eg point irq to $febc, or disable it completely) |
| |
Rudi Account closed
Registered: May 2010 Posts: 125 |
aha ok. i was storing a table into zeropage directly. since the assembler makes it so. *=0004 : .word values,etc.. sounds like i would have to do that afterwards, that is store the table in "runtime". sta $0004 etc.. ?
strange the PRG doesnt say much about the kernal $febc, if any. ill google that and see what i find.. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
yes, you'll have to allocate/use the zeropage at runtime... else it will crash when trying to load your program (using kernal load)
$febc is just the very end of the kernal interrupt routine. |
| |
Rudi Account closed
Registered: May 2010 Posts: 125 |
ok, thanks. it actually works now. |