Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Newbie question
2015-06-30 08:47
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)
2015-06-30 09:02
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)
2015-06-30 09:21
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..
2015-06-30 09:31
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.
2015-06-30 09:49
Rudi
Account closed

Registered: May 2010
Posts: 125
ok, thanks. it actually works now.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
t0m3000/hf^boom!^ibx
Mike
MWR/Visdom
LightSide
Trap/Bonzai
4gentE/ΤRIΛD
Perplex/Offence
Walt/Bonzai
REBEL 1/HF
Mibri/ATL^MSL^PRX
Inge/HVSC
Stratford/Xenon
lA-sTYLe/Quantum
sln.pixelrat
iAN CooG/HVSC
zscs
Guests online: 124
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.043 sec.