2012-06-13 07:17:41 +00:00
|
|
|
This directory holds files likely to be of use to you in developing your own
|
|
|
|
programs. The contents of each file is summarized below.
|
|
|
|
|
|
|
|
|
|
|
|
c64_0.oph: A Commodore 64 equivalent to a modern compiler's "crt0.s" - it
|
|
|
|
contains a .PRG file header, a short BASIC program that launches
|
|
|
|
the machine language program, and a prologue and epilogue that
|
|
|
|
prepare memory for your use and then clean it up again when you
|
2014-05-14 14:03:46 +00:00
|
|
|
are done. Memory locations $02 through $8F on the zero page are
|
2012-06-13 07:17:41 +00:00
|
|
|
available for your use, and the program lives at the beginning
|
2014-05-14 14:03:46 +00:00
|
|
|
a contiguous block of RAM from $0800 through $CFFF. The BASIC
|
2012-06-13 07:17:41 +00:00
|
|
|
ROM is swapped out of memory (leaving $A000-$BFFF as RAM) for
|
2014-05-14 14:03:46 +00:00
|
|
|
the duration of your program. BASIC's working storage on the
|
|
|
|
zero page is backed up in the RAM underneath the KERNAL ROM
|
|
|
|
while your program runs.
|
2012-06-13 07:17:41 +00:00
|
|
|
|
|
|
|
c64kernal.oph: A collection of standard aliases for the KERNAL routines on the
|
|
|
|
Commodore 64. Names for these routines have been chosen to match
|
|
|
|
the Commodore 64 Programmer's Reference Guide. Additional useful
|
|
|
|
constants are defined for the character codes for color changes
|
|
|
|
and case-changing.
|
|
|
|
|
2014-05-24 14:21:37 +00:00
|
|
|
libbasic64.oph:A still-experimental set of macros and routines for exploiting
|
|
|
|
the software floating point routines in the Commodore 64
|
|
|
|
BASIC ROM.
|
|
|
|
|
|
|
|
c64header.oph: A much simpler Commodore 64 header that does nothing but jump
|
|
|
|
directly to your code. Useful for small programs or those that
|
|
|
|
intend to interface with BASIC.
|
|
|
|
|
|
|
|
vic20.oph: A simple header for the unexpanded VIC-20. Equivalent in
|
|
|
|
behavior to c64header.oph.
|
|
|
|
|
|
|
|
vic20x.oph: A simple header like the two above, but for expanded VIC-20.
|
|
|
|
|
2012-06-13 07:17:41 +00:00
|
|
|
nes.oph: A somewhat skeletal collection of aliases for the PPU registers
|
|
|
|
on the Nintendo Entertainment System. These names were chosen
|
|
|
|
to match the constant names given on the NESdev Wiki.
|
|
|
|
|
|
|
|
stella.oph: A collection of aliases for the registers of the Atari 2600.
|
|
|
|
These names were taken from the "Stella Programmer's Guide" and
|
|
|
|
are in wide use amongst developers and code analysts alike.
|