Remove new warnings

This commit is contained in:
Ivan Izaguirre 2021-09-25 20:16:40 +02:00
parent 146e2cdad6
commit fe4afa1de9
5 changed files with 6 additions and 8 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
.vscode
SDL2.dll
a2sdl.exe
a2sdl.exe
frontend/a2sdl/a2sdl
frontend/a2fyne/a2fyne

View File

@ -17,7 +17,7 @@ func TestNMOS6502(t *testing.T) {
func executeSuite(t *testing.T, s *State, stepAddress uint16, steps uint8, showStep bool, traceCPUStep uint8) {
s.reg.setPC(0x0400)
currentStep := uint8(255)
for true {
for {
testCase := s.mem.Peek(stepAddress)
if testCase != currentStep {
currentStep = testCase

View File

@ -4,8 +4,7 @@ import "testing"
func TestRegA(t *testing.T) {
var r registers
var data uint8
data = 200
data := uint8(200)
r.setA(data)
if r.getA() != data {
t.Error("Error storing and loading A")
@ -13,8 +12,7 @@ func TestRegA(t *testing.T) {
}
func TestRegPC(t *testing.T) {
var r registers
var data uint16
data = 0xc600
data := uint16(0xc600)
r.setPC(data)
if r.getPC() != data {
t.Error("Error storing and loading PC")

1
go.mod
View File

@ -15,6 +15,5 @@ require (
golang.org/x/sys v0.0.0-20201014080544-cc95f250f6bc // indirect
golang.org/x/tools v0.0.0-20201013201025-64a9e34f3752 // indirect
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)

View File

@ -132,7 +132,6 @@ func (t *traceApplecorn) inspect() {
s = "OSNRDCH()"
skip = t.skipConsole
case 0xffce:
s = "OSFIND(?)"
if regA == 0 {
s = fmt.Sprintf("OSFIND('close',HANDLE=%v", regY)
} else {