1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Abbreviated uses of enumerations.

This commit is contained in:
Thomas Harte 2017-05-17 21:44:08 -04:00
parent 21d0602305
commit a3dafa9056

View File

@ -27,7 +27,7 @@ class BCDTest: XCTestCase, CSTestMachine6502JamHandler {
machine.setValue(0x03, forAddress:0x204)
machine.setValue(0x02, forAddress:0x205)
machine.setValue(0x200, for: CSTestMachine6502Register.programCounter)
machine.setValue(0x200, for: .programCounter)
machine.setValue(CSTestMachine6502JamOpcode, forAddress:0xffee) // OSWRCH
machine.setValue(CSTestMachine6502JamOpcode, forAddress:0xffff) // end of test
@ -45,7 +45,7 @@ class BCDTest: XCTestCase, CSTestMachine6502JamHandler {
switch address {
case 0xffee:
let character = machine.value(for: CSTestMachine6502Register.A)
let character = machine.value(for: .A)
output.append(Character(UnicodeScalar(character)!))
machine.returnFromSubroutine()