davervw / simple-emu-c64

Terminal 6502 Emulator with Commodore 64, 128, Vic-20, PET 2001, and TED: C16, Plus/4

Home Page:https://techwithdave.davevw.com/2020/03/simple-emu-c64.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C16 not displaying numbers, strings correctly

davervw opened this issue · comments

Probably a 6502 emulation problem. Note the bytes free displayed wrong

Do I need to support illegal opcodes? Check out this walk of the ROM

C:\src\simple-emu-c64\bin\Debug>simple-emu-c64.exe c16 walk | find "?"
E32C 53 ???
E9F0 44 ???
8CF8 52 ???
8677 44 ???
86F7 52 ???
80CC 93 ???

image

VICE monitor shows some illegal opcodes here too. See top and bottom of this listing.

image

It appears there is a problem detecting system RAM, probably related to RAM/ROM selection at FF3E, FF3F not implemented. The undocumented opcodes is probably a different or non-issue.

Resolved, fixed C16 by implementing RAM wrap-around, other compatibility fixes.