Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Jedfox ! (Registered 2024-05-28) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Important vectors values across different C64 versions
2019-10-28 16:24
AlexC

Registered: Jan 2008
Posts: 293
Important vectors values across different C64 versions

Can anyone tell me if MAIN, NMI, CBINV, RESET, ILOAD and ISAVE vectors are the same across all C64 verions or are they different? Plain hardware after power-on case (so no cartridges involved) only.
2019-10-28 22:00
tlr

Registered: Sep 2003
Posts: 1727
Quote: Can anyone tell me if MAIN, NMI, CBINV, RESET, ILOAD and ISAVE vectors are the same across all C64 verions or are they different? Plain hardware after power-on case (so no cartridges involved) only.

Might depend on how wide you definition of C64 versions is but AFAIK they are the same.
2019-10-28 23:15
Krill

Registered: Apr 2002
Posts: 2855
Disclaimer: I sense a probable XY problem here.

The vectors exist precisely for the reason that they may point to arbitrary addresses but are located at a fixed memory location themselves, putting indirect jumps to good use. So you shouldn't expect them to have specific fixed values.

Why are you asking, though? :)
2019-10-28 23:42
AlexC

Registered: Jan 2008
Posts: 293
I'd assume that those vectors are always the same on stock C64 without cartridge (as stock C64 I define one with Commodore ROMs, not Jiffy DOS installed for example). If the assumption is true than those vectors can be used to detect certain system state assuming vectors has been altered before my code starts. I have an very rouge idea for some code but it is too early to discuss it yet.

Thank you for your help - I do appreciate it :)
2019-10-29 01:41
Krill

Registered: Apr 2002
Posts: 2855
Depending on what exactly you want to achieve by checking the vectors, you can infer some things even without checking for specific values.

Cartridges or things like software speeders typically let the LOAD and SAVE vectors point to code outside the ROM areas.

Utility cartridges like Action Replay have the pointers point to IO space ($dexx or $dfxx), and software speeders or IEEE-488 interface cartridges would let the pointers point to RAM, such as $8xxx or $cxxx or anything below $0400.

This is likely very similar for the other vectors in RAM.
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
Mike
Matt
Icecube/Light
Scrap/Genesis Project
teloni0
Andy/AEG
Medicus
xahmol
Zephyr/Elysium
Erol
Guests online: 107
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Aliens in Wonderland  (9.6)
7 No Bounds  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.8)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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