| |
Perplex
Registered: Feb 2009 Posts: 254 |
Header files with labels for ROM routines and VIC/SID/CIA registers
Hi,
I'm getting back into C64 demo coding after about 17 years of
absence from the scene, and I'm working on optimising my
development environment. Since I'm planning to share some
code with friends (and maybe later make it public), I'd like
to make it as readable as possible, and would like to use
symbolic names for VIC/SID/CIA registers and called BASIC
and Kernal ROM routines. I am however waaay to lazy to type
this all in by myself, so wondered if there are any good
header files readily available online that I can download
and use. It wouldn't hurt if the labels/names were somewhat
"official", ie. used by several existing books/manuals
/papers etc. Any pointers would be greatly appreciated.
|
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11116 |
never seen such "official" headers .... i would consult the vic/sid/cia datasheets and use the names in there. (and for basic/kernal... there actually exist a few "legit" sources - like the programmers reference guide - but their naming doesnt always match =P)
and imho, writing BGCOLOR instead of $D021 makes it _less_ readable. its not like there are terribly much registers, and its not like we all wouldnt know them by heart already =)
|
| |
Perplex
Registered: Feb 2009 Posts: 254 |
I found this one for the BASIC and most of the Kernal
routines:
http://www.zimmers.net/anonftp/pub/cbm/maps/C64rom.lib
That leaves the VIC/SID/CIA chips and the zero-page
stuff. Anyone got some good label files for those?
|
| |
Perplex
Registered: Feb 2009 Posts: 254 |
True, I still remember most of this stuff by heart after
all these years. So I guess using the hexadesimal addresses
makes sense for the $Dxxx stuff. In which case I'm as good
as done -- doubt I'll be using the zero page for much else
than overwriting with my own stuff. :-)
|
| |
Martin Piper
Registered: Nov 2007 Posts: 634 |
Except the "standard" kernal labels I have my own descriptive labels in the stdlib directory from this project: http://codebase64.org/doku.php?id=projects:resurrection
Like others here I also remember the hex number by heart but I'm not writing code only for myself and have to remember that other programmers may not always remember this stuff. That is why I prefer to use descriptive (or the standard) label names where possible. |
| |
Perplex
Registered: Feb 2009 Posts: 254 |
Lots of nice stuff in there, Martin. Thanks!
|