summaryrefslogtreecommitdiff
path: root/avr/z80-if.c
diff options
context:
space:
mode:
authorLeo C2018-10-15 14:51:10 +0200
committerLeo C2018-10-15 14:51:10 +0200
commit24ba732a4e11bae37bd42f3c9317a5d54597b11a (patch)
treef2c3c39b538207b0fcd32df53d6c0a83ca6f3565 /avr/z80-if.c
parent2c60e1dc26e1f424d9673541aebe778601070838 (diff)
downloadz180-stamp-24ba732a4e11bae37bd42f3c9317a5d54597b11a.zip
z80_measure_phi WIP
Diffstat (limited to 'avr/z80-if.c')
-rw-r--r--avr/z80-if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avr/z80-if.c b/avr/z80-if.c
index 88015d7..9865208 100644
--- a/avr/z80-if.c
+++ b/avr/z80-if.c
@@ -399,10 +399,10 @@ zstate_t z80_bus_cmd(bus_cmd_t cmd)
busack_cycles = 0;
busack_cycles_ovl = 0;
ATOMIC_BLOCK(ATOMIC_FORCEON) {
- //z80_reset_inactive();
Z80_I_RST = 1; /* Toggle RESET --> inactive */
OCR4B = TCNT4;
TIFR4 = _BV(OCF4B); /* Clear compare match flag */
+/*test*/ TIMSK4 &= ~_BV(OCIE4A); /* Disable Output Compare A interrupt */
}
TIMSK4 |= _BV(OCIE4B); /* Enable compare match interrupt */
@@ -414,6 +414,7 @@ zstate_t z80_bus_cmd(bus_cmd_t cmd)
ovl_cnt = busack_cycles_ovl;
ifr = TIFR4;
TIMSK4 &= ~_BV(OCIE4B); /* Disable compare match interrupt */
+/*test*/ TIMSK4 |= _BV(OCIE4A); /* Enable Output Compare A interrupt */
}
if (Z80_I_BUSACK == 0) {
if ((ifr & _BV(OCF4B)) && !(tcnt & (1<<15)))