mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Corrects memptr behaviour of LDIR/LDDR and CPIR/CPDR.
This commit is contained in:
parent
87474d5916
commit
26de5be07c
@ -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) {
|
||||
|
@ -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(); \
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user