diff --git a/cpu/functions.go b/cpu/functions.go index 02e9294..bf28572 100644 --- a/cpu/functions.go +++ b/cpu/functions.go @@ -2,7 +2,6 @@ package cpu import ( "radu.macocian.me/goboy/cpu/operations" - "radu.macocian.me/goboy/memory" ) type op_context struct { diff --git a/cpu/operations/shift_test.go b/cpu/operations/shift_test.go index 17d0164..ed8bc33 100644 --- a/cpu/operations/shift_test.go +++ b/cpu/operations/shift_test.go @@ -12,18 +12,18 @@ func TestShiftLeft(t *testing.T) { actual := r1 if actual != expected { - t.Errorf("actual %x != expected %x", actual, expected) + t.Errorf("actual %08b != expected %08b", actual, expected) } } func TestShiftRight(t *testing.T) { r1 := byte(0b01010101) - ShiftLeft(&r1) + ShiftRight(&r1) expected := byte(0b00101010) actual := r1 if actual != expected { - t.Errorf("actual %x != expected %x", actual, expected) + t.Errorf("actual %08b != expected %08b", actual, expected) } }