1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-09-25 08:25:09 +00:00

Eliminates RAM writes in ROM area.

I no longer think that logic is correct.
This commit is contained in:
Thomas Harte
2019-05-07 17:16:22 -04:00
parent 949c848815
commit ce099a297a
2 changed files with 18 additions and 24 deletions

View File

@@ -8,6 +8,8 @@
#include "IWM.hpp"
#include <cstdio>
using namespace Apple;
IWM::IWM(int clock_rate) {
@@ -17,8 +19,9 @@ IWM::IWM(int clock_rate) {
uint8_t IWM::read(int address) {
access(address);
// printf("IWM r %d (%02x)\n", address&0xf, q_switches_);
switch(q_switches_) {
default: return 0xff; // Undefined.
default: return 0x00; // Undefined.
case 0x20: return 0x00; // Data register.