M emulate/computer.go +0 -16
@@ 40,22 40,6 @@ func (cpu *CPU) reset() {
cpu.p = alwaysSet
}
-func (cpu *CPU) A() uint8 {
- return cpu.a
-}
-
-func (cpu *CPU) X() uint8 {
- return cpu.x
-}
-
-func (cpu *CPU) Y() uint8 {
- return cpu.y
-}
-
-func (cpu *CPU) SP() uint8 {
- return cpu.sp
-}
-
func (cpu *CPU) carry() uint8 {
return cpu.p & 0x1
}
M emulate/instruction_test.go +1 -1
@@ 22,7 22,7 @@ func TestInstructions(t *testing.T) {
}
c.Step()
{
- found := c.cpu.A()
+ found := c.cpu.a
expected := tc.acc
if found != expected {
t.Errorf("%d: wrong value '%v', expected '%v'",