Maybe a little context of why I'm asking dumb questions about the PET might be useful.
In a few other places I've mentioned in passing that I'm working on a kind of "Generic" memory-mapped video output circuit which uses an AVR CPU basically as a "self-programming" CRTC, the idea being to come up with something that can transparently emulate a number of arbitrary different memory-mapped video systems from the 1970's. (Early S-100 cards, TRS-80, etc.) I'm *pretty* much done with the pixel-pushing part, at least to the point that it's time to interface it to a computer, and while my initial motivation was targeting Z80-based machines it occurred to me that the easiest thing might be to build a 6502-based computer on a breadboard. But why a 6502? My design uses a GAL chip to implement a state machine which automatically triggers the shift register load once every eight pixel clocks, and my vague understanding of how the 6502 handles its bus had it occur to me that I *should* be able to program into the same chip a "Phi clock" to transparently share the same memory chip between the 6502 and the video output with no WAIT state handshaking.
I've programmed a GAL to implement a Phi output that should result in an effective 1mhz CPU clock in 40 column mode, and ordered a WDC6502, because that includes a line to tri-state the address and data busses. So I *think* all I need to do is add some '244 or '245 buffers on the address lines going from the "CRTC" to RAM and have them and the tri-state pin on the 6502 active on opposite phases of the Phi2 clock to glue the two together? Basically I'm going by this:
https://laughtonelectronics.com/Arcana/Visualizing 65xx Timing/Visualizing 65xx CPU Timing.html
I am kind of wondering if I may need to hold the memory to the 6502 for another extra half-tick of the 8mhz source after Phi goes low to make sure the memory read/write is latched when Phi2 goes low? Has anyone else built something like this?
Anyway, a 6502 with a memory-mapped screen and little else is basically a PET, so I figured I could *probably* use 2001 ROM set to get a splash on the screen. Obviously I won't get keyboard input or a blinking cursor without the 6521 and 6522s. (And I'll need to generate a vblank interrupt too?) I have a set of those, but I was wondering how difficult it'd be to hack up an edit ROM to substitute some kind of brain-dead PS/2 or serial keyboard hack for the original PET scanning code, since I don't really have a spare PET keyboard matrix lying around.
That leads to another couple dumb questions: my vague understanding is that most of the 6545's registers are write-only? Will a Commodore EDIT ROM that has 6545 initialization code work in a PET with "hardwired" video (IE, can you pull the ROMs from a "universal-board" 4032 and plug them into a "dynamic-board" model) as long as the "hardwired" video is the correct format, or would the CRTC initialization code have to be yanked out if I tried hacking a ROM from Sgray's source?
(My circuit does have selectable video modes, including full bitmap graphics, which I intend to expose to the CPU "somehow" for switching, but I wasn't intending to try to actually emulate a CRTC, which I'm not even sure would be feasible. Just something simple like "once a frame read this latch to see which of (x-many choices) video modes", at least at first.)