Skip to content

Commit 8b262a2

Browse files
committed
Fix IRQ address #9
1 parent a3b9282 commit 8b262a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cpu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::opcode::Opcode;
88
use super::registers::{Reg16, Reg8, Registers};
99
use super::state::State;
1010

11-
const IRQ_ADDRESS: u16 = 0x0036;
11+
const IRQ_ADDRESS: u16 = 0x0038;
1212
const NMI_ADDRESS: u16 = 0x0066;
1313

1414
/// The Z80 cpu emulator.

tests/interrupts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use iz80::*;
22

3-
const IRQ_ADDRESS: u16 = 0x0036;
3+
const IRQ_ADDRESS: u16 = 0x0038;
44

55
#[test]
66
fn test_ei() {

0 commit comments

Comments
 (0)