Would be quite interested to take a look at the DASM routine if you get a chance..
Tonight I made some progress on my first foray into 6502 assembler..
Wrote a small program which copies the contents of a ROM into the PETvet's RAM. I was able to read out the contents of the c000-cfff ROM from my PET 2001 mainboard into the PETvet's RAM, then halt the CPU and read out the contents over a serial port. With some additional code on the microcontroller, it would be possible to compare the copied ROM image with a stored image in the MCU's flash, to test individual ROMs. This program is selectable as a setting with the PETvet's jumpers as a RAM/ROM test mode.
Next thing will be a memory tester. I'm thinking about how best to test the PET's RAM and detect which chips may be bad.. I'll look over the schematics to get some insights.
I'm also thinking it would be nice to have a second board to connect to the PETvet to turn it into a fully working 6502 computer in its own right. All you would need would be a clock, reset, and whatever I/O you wanted. Should be possible to use the the MCU as a serial terminal.