Difference between revisions of "Standard Memory Expansions"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
(Technical)
Line 10: Line 10:
 
Gate Array, Port 7Fxxh:
 
Gate Array, Port 7Fxxh:
 
   7-6  Must be 3 (aka Gate Array Register 3)
 
   7-6  Must be 3 (aka Gate Array Register 3)
   5-3  Bank number in 64K units (for expansions bigger than 64K)
+
   5-3  Bank number in 64K units (for expansions bigger than 64K) (max = 512K)
 
   2-0  Bank mapping in 16K fragments (as on normal CPC 6128 Gate Array)
 
   2-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).
 
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).

Revision as of 17:34, 5 February 2010

Technical

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).

  • Accessing a 64K expansion (or the first 64K of a bigger expansion) is compatible to the 128K in the CPC6128
  • Although, for real CPC6128 compatibility one may need some patches (eg. CP/M Plus refuses to work without the 6128s BASIC version) (it "detects" the 128K by checking the BASIC version)

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 3 (aka Gate Array Register 3)
 5-3  Bank number in 64K units (for expansions bigger than 64K) (max = 512K)
 2-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).

Capacity

  • A nnK expansion adds nn Kbytes to the internal 64 Kbytes in the CPC. So the resulting size is nn+64 Kbytes.
  • This 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, the resulting size is nn+64, not nn+128 Kbytes)

Standard Expansions

Non-Standard Expansions

Expansions that are unknown how they work, and if they are standard or not