chore: pass destoer's cond_invalid test
This commit is contained in:
parent
0d1717538b
commit
cb74bfd280
|
@ -15,7 +15,7 @@ An in-progress Gameboy Advance Emulator written in Zig ⚡!
|
||||||
- [x] `midikey2freq`
|
- [x] `midikey2freq`
|
||||||
- [ ] `swi-tests-random`
|
- [ ] `swi-tests-random`
|
||||||
- [ ] [destoer's GBA Tests](https://github.com/destoer/gba_tests)
|
- [ ] [destoer's GBA Tests](https://github.com/destoer/gba_tests)
|
||||||
- [ ] `cond_invalid.gba`
|
- [x] `cond_invalid.gba`
|
||||||
- [x] `dma_priority.gba`
|
- [x] `dma_priority.gba`
|
||||||
- [x] `hello_world.gba`
|
- [x] `hello_world.gba`
|
||||||
- [x] `if_ack.gba`
|
- [x] `if_ack.gba`
|
||||||
|
|
|
@ -459,7 +459,7 @@ pub fn checkCond(cpsr: PSR, cond: u4) bool {
|
||||||
0xC => !cpsr.z.read() and (cpsr.n.read() == cpsr.v.read()), // GT - Greater than
|
0xC => !cpsr.z.read() and (cpsr.n.read() == cpsr.v.read()), // GT - Greater than
|
||||||
0xD => cpsr.z.read() or (cpsr.n.read() != cpsr.v.read()), // LE - Less than or equal
|
0xD => cpsr.z.read() or (cpsr.n.read() != cpsr.v.read()), // LE - Less than or equal
|
||||||
0xE => true, // AL - Always
|
0xE => true, // AL - Always
|
||||||
0xF => std.debug.panic("[CPU/Cond] 0xF is a reserved condition field", .{}),
|
0xF => false, // NV - Never (reserved in ARMv3 and up, but seems to have not changed?)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue