1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-02 19:54:35 +00:00

Corrects memptr behaviour of LDIR/LDDR and CPIR/CPDR.

This commit is contained in:
Thomas Harte 2020-02-27 20:44:53 -05:00
parent 87474d5916
commit 26de5be07c
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class PatrikRakTests: XCTestCase, CSTestMachineTrapHandler {
func testMemptr() {
runTest("z80memptr")
// Current status: 4 of 152 tests failed.
// Current status: 2 of 152 tests failed.
}
func testMachine(_ testMachine: CSTestMachine, didTrapAtAddress address: UInt16) {

View File

@ -480,8 +480,8 @@ template < class T,
#define REPEAT(test) \
if(test) { \
pc_.full -= 2; \
memptr_.full = pc_.full + 1; \
} else { \
memptr_.full = pc_.full - 1; \
advance_operation(); \
}