         XCTAssert(cpu.A == UInt8(10), "Accumulator should have value of 10")
         XCTAssert(cpu.B == UInt8(20), "B register should have value of 20")
         
-        cpu.LD(Address(0xDFFF), cpu.A)  // LD $DFFF, A
-        cpu.LD(&cpu.C, Address(0xDFFF)) // LD C, $DFFF
+        cpu.LD(address: Address(0xDFFF), cpu.A)  // LD $DFFF, A
+        cpu.LD(&cpu.C, address: Address(0xDFFF)) // LD C, $DFFF
         
         XCTAssert(cpu.C == UInt8(10), "C register should have value of 10")
     }

        XCTAssert(cpu.cycle == 20)
    }
    
}

import XCTest
@testable import GameBro

extension Int {
    func times(closure: () -> ()) {
        for _ in 0..<self {
            closure()
        }
    }
}

class CPUTests : XCTestCase {
    
    func testLD() {
