Debian Codegraph @

ACME_Lib/cbm/c64/georam.a

raw
1 ;ACME 0.95
2
3 !ifdef lib_cbm_c64_georam_a !eof
4 lib_cbm_c64_georam_a = 1
5
6 ; This file contains definitions for accessing the "GeoRAM" RAM expansion and
7 ; its clones (BBG, BBU, NeoRAM, ...)
8 ; These units allow access to a single page of memory (256 bytes) visible at
9 ; address $de00 in i/o space. Writing to registers allows to change which
10 ; memory page is visible at that location.
11
12 !address {
13 ; memory page
14 georam_page = $de00
15 ; control registers (write-only, these registers can not be read)
16 georam_track = $dffe ; 0..63, i.e. the lower six bits are significant
17 georam_sector = $dfff ; 0..31, i.e. the lower five bits are significant
18 }
19 ; these are the official addresses - actually the registers are accessible
20 ; *everywhere* at $dfxx, but using these locations does not clash with the
21 ; registers of a Commodore REU.
22
23 ; Upgraded units and clones may have more memory, in those cases the registers
24 ; will have more significant bits.
25
26 ; I could have called the registers "row" and "column" instead of track and
27 ; sector, but the fact that this device was designed with one six-bit register
28 ; and one five-bit register (instead of one eight-bit register and one
29 ; three-bit register) tells me that this was meant as an easily programmable
30 ; RAM disk: A 1541 disk has 35 tracks with (at most) 21 sectors. Numbers in
31 ; these ranges can be written to the GeoRAM registers without the need to
32 ; shift bits around.
33 ; Knowing this is a handy way of remembering the number of significant bits of
34 ; GeoRAM registers.