The next would be to fit the EEPROM in, and confirm it can be accessed. The documentation shows that the first thing that the '265 embedded ROM does is look for certain bytes in a memory location ($00:8000):
Code:
STATE #1 - "Essential initialization"
- Disable interrupts
- Reset stack
- "Enable External Memory"
- Set BCR to $01 (This turns on external address and data lines.)
- Set PCS7 to $20 (This turns on external chip select: CS5 from the W65C265S.)
- Check location $00:8000-$00:8002 for the string 'WDC', using CS5.
If the string is there, transfer control to USER program in EXTERNAL MEMORY. (JMP $00:8004)
If
not found, it changes the chip selects and tries again, in the
same memory location, but maybe in a
different external memory chip:
Code:
STATE #2 - "Check External Memory"
- "Enable External Memory"
- Set PCS7 to $30 (This turns on external chip selects: CS4 and CS5 from the W65C265S.)
- Check location $00:8000-$00:8002 for the string 'WDC', using CS4.
If the string is there, transfer control to USER program in EXTERNAL MEMORY. (JMP $00:8004)
If
not found, it changes the chip selects and tries again, but with a
different memory location ($00:0800):
Code:
STATE #3 - "Check External Memory"
- "Enable External Memory"
- Set PCS7 to $08 (This turns on external chip select: CS3 from the W65C265S.)
- Check locations $00:0800-$00:0802 for the string 'WDC', using CS3.
If the string is there, transfer control to USER program in EXTERNAL MEMORY. (JMP $00:0804)
If none of that applies, it then runs the internal rom code and presents the welcome screen.
Code:
MENSCH ROM Version 2.07
(C) Copyright 1995
Assembled Mon Feb 6 10:03:42 1995
PCntr Acc Xreg Yreg Stack
00:E358 00 00 E0 B7 00 B0 01 FF
DirRg F DBk
00 00 22 00
Status Reg
N V M X D I Z C
0 0 1 0 0 0 1 0