mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-06 13:31: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() {
|
func testMemptr() {
|
||||||
runTest("z80memptr")
|
runTest("z80memptr")
|
||||||
// Current status: 4 of 152 tests failed.
|
// Current status: 2 of 152 tests failed.
|
||||||
}
|
}
|
||||||
|
|
||||||
func testMachine(_ testMachine: CSTestMachine, didTrapAtAddress address: UInt16) {
|
func testMachine(_ testMachine: CSTestMachine, didTrapAtAddress address: UInt16) {
|
||||||
|
@ -480,8 +480,8 @@ template < class T,
|
|||||||
#define REPEAT(test) \
|
#define REPEAT(test) \
|
||||||
if(test) { \
|
if(test) { \
|
||||||
pc_.full -= 2; \
|
pc_.full -= 2; \
|
||||||
|
memptr_.full = pc_.full + 1; \
|
||||||
} else { \
|
} else { \
|
||||||
memptr_.full = pc_.full - 1; \
|
|
||||||
advance_operation(); \
|
advance_operation(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user