View Single Post
Old 7th Apr 2021, 9:56 pm   #1414
ortek_service
Octode
 
ortek_service's Avatar
 
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 1,440
Default Re: Non-working Commodore PET 3016

Quote:
Originally Posted by Slothie View Post
Quote:
Originally Posted by ScottishColin View Post
And while I'm waiting for the EPROM, is it possible for someone to either explain to me how the code on the EPROM is called at boot? or is there a website I should go look at?

I'm interested in how the code is called in the first place.

Colin.
The EPROM is mapped into memory from addresses F800-FFFF. When a 6502 processor is reset, it looks in locations FFFC and FFFD for the address of the boot code. The EPROM has these locations programmed to the start of the diagnostics at F800! The original kernal ROM obviously had different code locations and therefore values in FFFC & FFFD but the principle is the same.
And just to complicate matters, the original (Not always socketed) Kernal ROM jumps to the (Country-specific, usually socketed) Edit ROM at $E000, after a small amount of processing (i.e. maskable interrupts have been inhibited and the decimal arithmetic flag cleared).
So the Daver2 diagnostic, that replaces the EDIT ROM, boots slightly-differently and needs the proper (& working!) Kernal ROM fitted.
ortek_service is offline