1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-13 07:30:21 +00:00

Caught up on comments.

This commit is contained in:
Thomas Harte 2017-06-19 20:53:22 -04:00
parent cc8f316941
commit f903408980

View File

@ -648,6 +648,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// NEG, IM 0, IM 1, IM 2
func testNEGIMs() { func testNEGIMs() {
test( test(
program: [0xed, 0x44, 0xed, 0x46, 0xed, 0x56, 0xed, 0x5e], program: [0xed, 0x44, 0xed, 0x46, 0xed, 0x56, 0xed, 0x5e],
@ -665,6 +666,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// ADD HL, rr
func testADDHL() { func testADDHL() {
test( test(
program: [0x09], program: [0x09],
@ -676,6 +678,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// ADD IX, rr
func testADDIX() { func testADDIX() {
test( test(
program: [0xdd, 0x09], program: [0xdd, 0x09],
@ -688,6 +691,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// ADD A, (HL)
func testADCHL() { func testADCHL() {
test( test(
program: [0xed, 0x4a], program: [0xed, 0x4a],
@ -700,6 +704,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// INC rr
func testINCss() { func testINCss() {
test( test(
program: [0x03], program: [0x03],
@ -709,6 +714,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// INC IX
func testINCIX() { func testINCIX() {
test( test(
program: [0xdd, 0x23], program: [0xdd, 0x23],
@ -719,6 +725,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// RLCA
func testRLCA() { func testRLCA() {
test( test(
program: [0x07], program: [0x07],
@ -728,6 +735,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// RLC r
func testRLCr() { func testRLCr() {
test( test(
program: [0xcb, 0x00], program: [0xcb, 0x00],
@ -738,6 +746,7 @@ class Z80MachineCycleTests: XCTestCase {
) )
} }
// RLC (HL)
func testRLCHL() { func testRLCHL() {
test( test(
program: [0xcb, 0x06], program: [0xcb, 0x06],