Standard Memory Expansions
The standard memory expansions are often credited to Dk'tronics and Dobbertin (not sure which company initially developed it though). There's also an extended standard which may be credited to Yarek or RAM7 (not sure who came first here, too).
- 1 Technical
- 2 Capacity
- 3 Standard Expansions
- 4 Extended-Standard Expansions
- 5 Semi-Standard Expansions
- 6 Non-Standard Expansions
- 7 Expansions that are unknown how they work, and if they are standard or not
The standard expansions are based on the RAM banking logic from the CPC6128, ie. equivalent to the fourth Gate Array register in the CPC6128 (or more precisely, the PAL that assists its Gate Array chip).
Simple 64K Expansion (CPC6128-style)
- Accessing a 64K expansion (or the first 64K of a bigger expansion) is compatible to the 128K in the CPC6128
- For full CPC6128 compatibility one may need some patches (eg. CP/M Plus will still refuse to work; because it "detects" the 128K by checking the BASIC ROMs version number)
Standard 128K-512K Expansions (dk'tronics/dobbertin-style)
Expansions bigger than 64K combine the CPC6128-style mapping with some formerly unused chips in the fourth Gate Array register:
Gate Array, Port 7Fxxh:
7-6 Must be both set to 1 (aka Gate Array Register 3) 5-3 Bank number in 64K units (for expansions bigger than 64K) (max = 512K) 2 Special feature bit. For this kind of RAM banking it must be set to 1. "0" Enables special features. 1-0 Bank mapping in 16K fragments (as on normal CPC 6128 Gate Array)
The 16K fragments are consisting of 8 banks. Banks 0-3 are the internal RAM, banks 4-7 are external RAM (taken from the currently selected 64K block).
Caution - The 64K bank numbers don't always start at bank 0 (In the Dk'tronics 256K Silicon Disc, the 64K banks are numbered 4..7).
Extended 1M-4M Expansions (RAM7/Yarek-style)
Expansions bigger than 512K extend that above standard. The LSBs of the 64K bank number is kept in D5-D3 data bits (as above), the MSBs of the 64K bank number are in A10-A8 address bits. Typically in inverted form (so the first 512K block is accessed via Port 7Fxxh, the next via 7Exxh, etc.
OUT [01111aaaxxxxxxxx],11bbbscc aaa = upper bits of 64K bank selection (512K-step) (A8,A9,A10 bits) bbb = lower bits of 64K bank selection (64K-step) (D3,D4,D5 bits) s = Special function bit (1 = normal function) (D2 bit) cc = mapping of 16K fragments (as in CPC6128) (D0,D1 bits) xxxxxxxx = should be set so that it doesn't conflict with other ports (*)
(*) For example 7B01h or 7B7Fh would be no good, because the FDC command register at FB7Fh is mirrored to these locations. Using 7B80h..7BFFh would fix that problem, but might conflict with other connected expansion hardware.
- Compatibility - The first 512K (Port 7Fxxh) are fully compatible with dk'tronics. Using the next 1.5MB (Port 7Exxh,7Dxxh,7Cxxh) should work without conflicting with the other hardware expansions.
- Compatibility Problems - The last 2MB (Port 7Bxxh,7Axxh,79xxh,78xxh) can conflict with other hardware. As workaround: Either leave them unused, or use values for "xx" that do not conflict with your hardware (which values are good for "xx" and which aren't good depends on what other hardware you have connected) (and obviously, different "xx" may be needed in 7Bxxh as in 7Axxh, for example).
Standard expansions can contain between 64K and 512K memory.
- A nnK expansion adds nn Kbytes to the internal 64 Kbytes in the CPC. So the resulting total size is nn+64 Kbytes.
- That nn+64 Kbytes formula does in most (or all) cases also apply on the CPC 6128:
- only 64 Kbytes of it's internal memory are used
- the 2nd half of internal memory is disabled and replaced by the expansion RAM
- so, the resulting size is only nn+64 Kbytes, not nn+128 Kbytes
- Dk'tronics Memory Expansion and Silicon Disc - 64K and 256K expansions
- Dobbertin Memory Expansion
- RAM BOX
- SYMBiFACE II - includes (among others) 512K RAM expansion
- CPC4MB (Yarek) (DIY) - compatible with standard 512 Kbyte expansion (plus extra extended-standard 3.5 MBbyte)
- RAM7 2MB memory expansion (RAM7) - compatible with standard 512 Kbyte expansion (plus extra extended-standard 1.5 MBbyte)
- Aleste 520EX - a CPC clone that allows to access 256K (of its total 512K memory) in Inicron-style fashion (ie. as on a 64K computer with 192K expansion which can be mapped to 4000h..7FFFh).
- Inicron RAM-Box - not fully compatible with standard expansions (can map expansion RAM only to 4000h..7FFFh).
- c't 512 KB internal RAM expansion - works similar to dk'tronics expansions, but, alltogether, there isn't much compatibility between c't and dk'tronics.
- Otten & Fecht 1 MB RAM-Disc - Accessed through I/O ports (RAM is not mapped to memory)
- Vortex Expansions RAM card - an older expansion, uses 32K-banks, not compatible with the later standard