Next: , Previous: , Up: Module formats   [Contents][Index]


9.2.2.17 VIC20 memory module

The VIC20 memory module actually consists of two modules. The "VIC20MEM" module is mandatory and contains the RAM dump. The "VIC20ROM" module is optional and contains a dump of the ROM images.

The size of the VIC20 memory modules differs with each different memory configuration. The RAM configuration is saved in the snapshot, and restored when the snapshot is loaded. The attached cartridges are also restored upon load if they have been saved in the snapshot.

The VIC20MEM module

Version numbers: Major 1, Minor 0

TypeNameDescription
BYTECONFIGConfiguration register. Bits 0,1,2,3,5 reflect if the corresponding memory block is RAM (bit=1) or not (bit=0).
ARRAYRAM01KiB RAM dump $0000-$03ff
ARRAYRAM14KiB RAM dump $1000-$1fff
ARRAYCOLORRAM2KiB Color RAM, $9400-$9bff
ARRAYBLK0if CONFIG & 1 then: 3KiB RAM dump $0400-$0fff
ARRAYBLK1if CONFIG & 2 then: 8KiB RAM dump $2000-$3fff
ARRAYBLK2if CONFIG & 4 then: 8KiB RAM dump $4000-$5fff
ARRAYBLK3if CONFIG & 8 then: 8KiB RAM dump $6000-$7fff
ARRAYBLK5if CONFIG & 32 then: 8KiB RAM dump $a000-$bfff

The VIC20ROM module

Version numbers: Major 1, Minor 1

TypeNameDescription
BYTECONFIGBit 0: 1= ROM block $2*** enabled. Bit 1: 1= ROM block $3*** enabled. Bit 2: 1= ROM block $4*** enabled. Bit 3: 1= ROM block $5*** enabled. Bit 4: 1= ROM block $6*** enabled. Bit 5: 1= ROM block $7*** enabled. Bit 6: 1= ROM block $A*** enabled. Bit 7: 1= ROM block $B*** enabled.
ARRAYKERNAL8KiB KERNAL ROM image $e000-$ffff
ARRAYBASIC16KiB BASIC ROM image $c000-$dfff
ARRAYCHARGEN4KiB CHARGEN ROM image
ARRAYBLK1A4KiB ROM image $2*** (if CONFIG & 1)
ARRAYBLK1B4KiB ROM image $3*** (if CONFIG & 2)
ARRAYBLK3A4KiB ROM image $6*** (if CONFIG & 16)
ARRAYBLK3B4KiB ROM image $7*** (if CONFIG & 32)
ARRAYBLK5A4KiB ROM image $A*** (if CONFIG & 64)
ARRAYBLK5B4KiB ROM image $B*** (if CONFIG & 128)
ARRAYBLK2A4KiB ROM image $4*** (if CONFIG & 4; added in V1.1)
ARRAYBLK2B4KiB ROM image $5*** (if CONFIG & 8; added in V1.1)

Next: PET memory module, Previous: C128 memory module, Up: Module formats   [Contents][Index]