mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2024-11-23 10:12:11 +00:00
Uncommenting some asserts
This commit is contained in:
parent
3f46ab4a54
commit
d1029c1dc7
@ -1868,7 +1868,7 @@ mod tests {
|
|||||||
cpu.registers.set(Register::SP, sp);
|
cpu.registers.set(Register::SP, sp);
|
||||||
cpu.registers.set_flag(FlagRegister::Zero, true);
|
cpu.registers.set_flag(FlagRegister::Zero, true);
|
||||||
cpu.exec(Opcode::CALL(OpcodeParameter::FlagRegisterReset_U16(FlagRegister::Zero, 0xF0F0)), &mut bus);
|
cpu.exec(Opcode::CALL(OpcodeParameter::FlagRegisterReset_U16(FlagRegister::Zero, 0xF0F0)), &mut bus);
|
||||||
// assert_eq!(bus.read_16bit(sp - 2), 0x1234 + 3);
|
assert_eq!(bus.read_16bit(sp - 2), 0x1234 + 3);
|
||||||
assert_eq!(cpu.registers.get(Register::SP), sp);
|
assert_eq!(cpu.registers.get(Register::SP), sp);
|
||||||
assert_eq!(cpu.registers.get(Register::PC), 0x103);
|
assert_eq!(cpu.registers.get(Register::PC), 0x103);
|
||||||
|
|
||||||
@ -1887,7 +1887,7 @@ mod tests {
|
|||||||
cpu.registers.set(Register::SP, sp);
|
cpu.registers.set(Register::SP, sp);
|
||||||
cpu.registers.set_flag(FlagRegister::Zero, false);
|
cpu.registers.set_flag(FlagRegister::Zero, false);
|
||||||
cpu.exec(Opcode::CALL(OpcodeParameter::FlagRegisterSet_U16(FlagRegister::Zero, 0xF0F0)), &mut bus);
|
cpu.exec(Opcode::CALL(OpcodeParameter::FlagRegisterSet_U16(FlagRegister::Zero, 0xF0F0)), &mut bus);
|
||||||
// assert_eq!(bus.read_16bit(sp - 2), 0x1234 + 3);
|
assert_eq!(bus.read_16bit(sp - 2), 0x1234 + 3);
|
||||||
assert_eq!(cpu.registers.get(Register::SP), sp);
|
assert_eq!(cpu.registers.get(Register::SP), sp);
|
||||||
assert_eq!(cpu.registers.get(Register::PC), 0x103);
|
assert_eq!(cpu.registers.get(Register::PC), 0x103);
|
||||||
}
|
}
|
||||||
@ -2824,7 +2824,7 @@ mod tests {
|
|||||||
assert_eq!(cpu.registers.get_flag(FlagRegister::Zero), false);
|
assert_eq!(cpu.registers.get_flag(FlagRegister::Zero), false);
|
||||||
assert_eq!(cpu.registers.get_flag(FlagRegister::Substract), false);
|
assert_eq!(cpu.registers.get_flag(FlagRegister::Substract), false);
|
||||||
assert_eq!(cpu.registers.get_flag(FlagRegister::HalfCarry), false);
|
assert_eq!(cpu.registers.get_flag(FlagRegister::HalfCarry), false);
|
||||||
// assert_eq!(cpu.registers.get_flag(FlagRegister::Carry), false);
|
assert_eq!(cpu.registers.get_flag(FlagRegister::Carry), false);
|
||||||
assert_eq!(cpu.registers.get(Register::A), 0x10);
|
assert_eq!(cpu.registers.get(Register::A), 0x10);
|
||||||
assert_eq!(cpu.registers.get(Register::PC), 0x101);
|
assert_eq!(cpu.registers.get(Register::PC), 0x101);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user