mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
BIT/SET (IX+d) were incorrectly encoded. Hence fixed BIT (IX+d).
This commit is contained in:
@@ -840,7 +840,7 @@ class Z80MachineCycleTests: XCTestCase {
|
|||||||
// BIT n,(IX+d)
|
// BIT n,(IX+d)
|
||||||
func testBITIX() {
|
func testBITIX() {
|
||||||
test(
|
test(
|
||||||
program: [0xdb, 0xcb, 0x00, 0x46],
|
program: [0xdd, 0xcb, 0x00, 0x46],
|
||||||
busCycles: [
|
busCycles: [
|
||||||
MachineCycle(operation: .readOpcode, length: 4),
|
MachineCycle(operation: .readOpcode, length: 4),
|
||||||
MachineCycle(operation: .readOpcode, length: 4),
|
MachineCycle(operation: .readOpcode, length: 4),
|
||||||
@@ -854,7 +854,7 @@ class Z80MachineCycleTests: XCTestCase {
|
|||||||
// SET n,(IX+d)
|
// SET n,(IX+d)
|
||||||
func testSETIX() {
|
func testSETIX() {
|
||||||
test(
|
test(
|
||||||
program: [0xdb, 0xcb, 0x00, 0xc6],
|
program: [0xdd, 0xcb, 0x00, 0xc6],
|
||||||
busCycles: [
|
busCycles: [
|
||||||
MachineCycle(operation: .readOpcode, length: 4),
|
MachineCycle(operation: .readOpcode, length: 4),
|
||||||
MachineCycle(operation: .readOpcode, length: 4),
|
MachineCycle(operation: .readOpcode, length: 4),
|
||||||
|
Reference in New Issue
Block a user