Cross-Architecture Visual Memory Mapper & 16-Bit Address Decoder (C64, VIC-20, ZX Spectrum, BBC Micro & Atari)

Interactive 64KB ($0000–$FFFF) memory map explorer, live PLA/ROM bank-switching toggles, 16-bit hex/decimal address decoder, and video RAM coordinate calculator

Cross-Architecture Visual Memory Mapper & 16-Bit Address Decoder

Interactive 64 KB ($0000–$FFFF) address space explorer, live hardware bank-switching simulator, 16-bit hex/decimal address decoder, and video RAM matrix calculator across five classic 8-bit architectures: Commodore 64 (MOS 6510/8500), Commodore VIC-20 (MOS 6502), ZX Spectrum 48K/128K (Zilog Z80), BBC Micro Model B (2 MHz 6502A), and Atari 800 / XL / XE (6502C SALLY + ANTIC/GTIA/POKEY).

Active System & CPU Commodore 64 (MOS 6510)
Banking Control State $0001 = $37 (LORAM/HIRAM/CHAREN)
Video Matrix / Display RAM $0400–$07E7 (40×25 + $D800 Color)
Visible User RAM 38,911 B BASIC ($0801–$9FFF) + 4 KB
Hardware Vectors $FFFA NMI · $FFFC RST · $FFFE IRQ
1. Real-Time Memory Banking & Hardware I/O Control Toggles PLA / $0001 = $37 (%00110111)
Toggle hardware banking bits below to switch ROMs, underlying RAM, Character Generators, and I/O chips in real time:
2. Dynamic 64KB Address Space Map ($0000–$FFFF)
Zero Page CPU Stack OS / System Video / Color RAM User / Banked RAM Hardware I/O ROM Bank Vectors Open Bus / Cart
4. Visual Buffer & Video RAM Screen Coordinate Mapper Col 0, Row 0 → $0400 (1024)

Click or hover over any screen cell on the visual CRT matrix below (or adjust Col X / Row Y) to compute the exact Screen Matrix address, Colour/Attribute RAM address, character row offset, and assembly screen-poke code:

40×25 Matrix (1,000 B)
Screen Matrix / Bitmap Address $0400 (1024) · Offset +$0000 (+0)
Colour / Attribute RAM Address $D800 (55296) · 4-Bit Nybble

                        
3. 16-Bit Address Decoder & Hex / Byte Split Utility

Enter any 16-bit hexadecimal ($0400, 0xD020, FFFC) or decimal (1024, 53280, 64738) address to decode its hardware chip, register offset, Little-Endian Low/High byte split, and address bus lines:

Hex / Decimal / Binary $0400 · 1024 · %00000100_00000000
Low Byte / High Byte (Little-Endian) Low: $00 (0) | High: $04 (4)
Target Region & Active Bank Default Video Matrix (Screen RAM)
Associated Hardware Chip / Register VIC-II 6567/6569 Screen Matrix
Byte Offset from Region Start +$0000 (0 bytes from $0400)
256-Byte Page & Page Offset Page $04 (Page 4) · Byte +$00 (0)
16-Bit Address Bus Lines (A15..A0 — highlighted bits = Logic HIGH 1 for address decoder probing):

                        
Hardware Region & Chip Inspector: $D000–$DFFF Hardware I/O

Address Register / Sub-Block Hardware Chip & Function
5. Custom Memory Map Editor & ASM Symbol Exporter

Define custom labels or routine allocations (e.g. MUSIC_INIT = $1000, SPRITE_BUF = $2000) to overlay on the architecture map and export ready-to-assemble 6502/Z80 symbol tables:

8-Bit Address Decoding, PLA Bank Switching & Video RAM Architecture

  • Commodore 64 (MOS 6510 $0001 & 82S100 PLA Banking): On the Commodore 64, the MOS 6510 / 8500 CPU contains a 6-bit on-chip I/O port at $0001 (direction register at $0000). Bits 0–2 drive the LORAM, HIRAM, and CHAREN lines into the 82S100 PLA alongside cartridge lines /EXROM and /GAME. In the default power-on state ($0001 = $37), $A000–$BFFF maps the 8 KB BASIC V2 ROM, $D000–$DFFF maps the 4 KB Hardware I/O window (VIC-II at $D000–$D3FF, SID 6581/8580 at $D400–$D7FF, 2114 Color SRAM at $D800–$DBFF, and 6526 CIA #1 & #2 at $DC00–$DDFF), and $E000–$FFFF maps the 8 KB KERNAL ROM. Writes to ROM ranges always fall through to the underlying 64 KB DRAM (4164 / 4464).
  • Commodore VIC-20 (MOS 6502 & Moving Video Matrix): The VIC-20 divides its address space into 8 KB expansion blocks (BLK1 at $2000, BLK2 at $4000, BLK3 at $6000, and autostart cartridge BLK5 at $A000), plus a 3 KB BLK0 gap at $0400–$0FFF. Because the MOS 6560/6561 VIC chip can only address internal bus memory, adding 8 KB or more of expansion RAM relocates the 22×23 Screen Matrix from $1E00–$1FF9 down to $1000–$11F9 and shifts the 2114 Color RAM from $9600 to $9400.
  • ZX Spectrum 48K & 128K (Zilog Z80 Contended ULA RAM & Port $7FFD): On the ZX Spectrum, the Ferranti ULA shares the lower 16 KB RAM bank ($4000–$7FFF, built from eight 4116 DRAMs on 48K boards). The 256×192 pixel bitmap at $4000–$57FF uses an interleaved scanline address layout (010 T T L L L R R R C C C C C) followed immediately by the 32×24 colour attribute grid at $5800–$5AFF. On 128K models, I/O port $7FFD pages any of 8×16 KB RAM banks into $C000–$FFFF, toggles the Shadow Screen in Bank 7, and switches between the 128K Editor ROM and 48K BASIC ROM.
  • BBC Micro Model B (2 MHz 6502A, Variable Screen HIMEM & SHEILA $FE00): On the BBC Micro, screen memory ends at $7FFF while its start address (HIMEM) moves dynamically according to the active video mode — from $7C00 (1 KB in Teletext MODE 7) down to $3000 (20 KB in high-resolution MODE 0/1/2). Up to 16 Sideways ROM/RAM banks share $8000–$BFFF via the ROMSEL latch at $FE30, while $FC00–$FEFF exposes the 1 MHz FRED, JIM, and SHEILA hardware I/O pages (6845 CRTC, System/User 6522 VIAs, and SN76489 PSG).
  • Atari 800 / XL / XE (6502C SALLY, ANTIC Display Lists & PORTB $D301): The Atari 8-bit family uses the ANTIC DMA coprocessor to execute a programmable Display List anywhere in RAM, feeding pixel data to GTIA ($D000–$D0FF) while POKEY ($D200–$D2FF) handles 4-channel audio, keyboard scan, and SIO serial transfers. On 800XL/130XE machines, 6520 PIA PORTB ($D301) switches the 8 KB Atari BASIC ROM ($A000–$BFFF), the 2 KB Self-Test ROM ($5000–$57FF), the 14 KB OS ROM, and 130XE extended 16 KB RAM banks ($4000–$7FFF).

Comments (0)

No comments yet. Be the first to share your thoughts on this tool!

Leave a Comment

Theme Palette

Default Dark
High-contrast dark
Amber Terminal
Monochrome amber
Matrix CRT
Phosphor green
Workbench Light
Clean light mode

Audio & Display

Relay Click Sounds Web Audio API — soft mechanical clicks
CRT Scanline & Flicker Pure CSS overlay effect

System Info

Customization Panel Theme preference, audio FX, and CRT overlay settings are saved to your browser's localStorage and persist between visits. No cookies or server-side storage is used.
Keyboard Shortcuts Press Esc to close this panel. Use the header moon/sun icon to cycle themes.