gopher2600: use fully qualified import path as module path

Fixes #4.
This commit is contained in:
Robin Eklind 2020-03-21 23:39:56 +01:00
parent a0d61fa770
commit 24cb28843f
151 changed files with 510 additions and 395 deletions

View file

@ -20,11 +20,12 @@
package cartridgeloader
import (
"gopher2600/errors"
"net/http"
"os"
"path"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// Loader is used to specify the cartridge to use when Attach()ing to

View file

@ -21,9 +21,10 @@ package database
import (
"fmt"
"gopher2600/errors"
"io"
"sort"
"github.com/jetsetilly/gopher2600/errors"
)
// arbitrary maximum number of entries

View file

@ -21,7 +21,8 @@ package database
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// Deserialiser extracts/converts fields from a SerialisedEntry

View file

@ -19,7 +19,7 @@
package database
import "gopher2600/errors"
import "github.com/jetsetilly/gopher2600/errors"
// SelectAll entries in the database. onSelect can be nil.
//

View file

@ -21,12 +21,13 @@ package database
import (
"fmt"
"gopher2600/errors"
"io"
"io/ioutil"
"os"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// Activity is used to specify the general activity of what will be occuring

View file

@ -25,12 +25,13 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/commandline"
"gopher2600/disassembly"
"gopher2600/errors"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/errors"
)
// breakpoints keeps track of all the currently defined breakers

View file

@ -22,22 +22,23 @@ package debugger
import (
"bytes"
"fmt"
"gopher2600/cartridgeloader"
"gopher2600/debugger/script"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/commandline"
"gopher2600/disassembly"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/hardware/cpu/registers"
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/memorymap"
"gopher2600/hardware/riot/input"
"gopher2600/patch"
"gopher2600/symbols"
"sort"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/debugger/script"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/hardware/riot/input"
"github.com/jetsetilly/gopher2600/patch"
"github.com/jetsetilly/gopher2600/symbols"
)
var debuggerCommands *commandline.Commands

View file

@ -20,21 +20,22 @@
package debugger
import (
"gopher2600/cartridgeloader"
"gopher2600/debugger/script"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/commandline"
"gopher2600/disassembly"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/hardware"
"gopher2600/reflection"
"gopher2600/setup"
"gopher2600/symbols"
"gopher2600/television"
"os"
"os/signal"
"strings"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/debugger/script"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/hardware"
"github.com/jetsetilly/gopher2600/reflection"
"github.com/jetsetilly/gopher2600/setup"
"github.com/jetsetilly/gopher2600/symbols"
"github.com/jetsetilly/gopher2600/television"
)
const defaultOnHalt = "CPU; TV"

View file

@ -21,14 +21,15 @@ package debugger_test
import (
"fmt"
"gopher2600/cartridgeloader"
"gopher2600/debugger"
"gopher2600/debugger/terminal"
"gopher2600/gui"
"gopher2600/television"
"io"
"testing"
"time"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/television"
)
type mockTV struct{}

View file

@ -21,10 +21,11 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/playmode"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/playmode"
)
func (dbg *Debugger) guiEventHandler(ev gui.Event) error {

View file

@ -20,11 +20,12 @@
package debugger
import (
"gopher2600/debugger/terminal"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/hardware/cpu/instructions"
"io"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
)
// inputLoop has two modes, defined by the videoCycle argument. when videoCycle

View file

@ -21,8 +21,9 @@ package debugger
import (
"fmt"
"gopher2600/television"
"time"
"github.com/jetsetilly/gopher2600/television"
)
// a specialised frame-rate limiter for use by the debugger. this

View file

@ -21,12 +21,13 @@ package debugger
import (
"fmt"
"gopher2600/errors"
"gopher2600/hardware/memory"
"gopher2600/hardware/memory/memorymap"
"gopher2600/symbols"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/symbols"
)
// memoryDebug is a front-end to the real VCS memory. it allows addressing by

View file

@ -25,8 +25,9 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
)
// all print operations from the debugger should be made with the this printLine()

View file

@ -21,9 +21,10 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/hardware/memory/memorymap"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
func (dbg *Debugger) buildPrompt(videoCycle bool) terminal.Prompt {

View file

@ -20,11 +20,12 @@
package script
import (
"gopher2600/debugger/terminal"
"gopher2600/errors"
"io/ioutil"
"os"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/errors"
)
const commentLine = "#"

View file

@ -21,9 +21,10 @@ package script
import (
"fmt"
"gopher2600/errors"
"io"
"os"
"github.com/jetsetilly/gopher2600/errors"
)
// Scribe can be used again after a start()/end() cycle. isWriting()

View file

@ -20,7 +20,7 @@
package debugger
import (
"gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/disassembly"
)
// GetQuantum returns the current quantum value

View file

@ -21,10 +21,11 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal/commandline"
"gopher2600/errors"
"gopher2600/television"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/television"
)
type target struct {

View file

@ -22,9 +22,10 @@
package colorterm
import (
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/colorterm/easyterm"
"os"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/colorterm/easyterm"
)
// ColorTerminal implements debugger UI interface with a basic ANSI terminal

View file

@ -21,12 +21,13 @@ package colorterm
import (
"fmt"
"gopher2600/ansi"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/colorterm/easyterm"
"gopher2600/errors"
"unicode"
"unicode/utf8"
"github.com/jetsetilly/gopher2600/ansi"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/colorterm/easyterm"
"github.com/jetsetilly/gopher2600/errors"
)
// #cursor #keys #tab #completion

View file

@ -20,8 +20,8 @@
package colorterm
import (
"gopher2600/ansi"
"gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/ansi"
"github.com/jetsetilly/gopher2600/debugger/terminal"
)
// TermPrintLine implements the terminal.Output interface

View file

@ -21,8 +21,9 @@ package commandline
import (
"fmt"
"gopher2600/errors"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// Commands is the root of the node tree

View file

@ -34,8 +34,9 @@ package commandline
import (
"fmt"
"gopher2600/errors"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// ParseCommandTemplate turns a string representation of a command template

View file

@ -20,10 +20,11 @@
package commandline_test
import (
"gopher2600/debugger/terminal/commandline"
"gopher2600/test"
"strings"
"testing"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/test"
)
// expectEquality compares a template, as passed to ParseCommandTemplate(),

View file

@ -20,9 +20,10 @@
package commandline_test
import (
"gopher2600/debugger/terminal/commandline"
"sort"
"testing"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
)
func TestTabCompletion(t *testing.T) {

View file

@ -21,9 +21,10 @@ package commandline
import (
"fmt"
"gopher2600/errors"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// Validate input string against command defintions

View file

@ -21,8 +21,9 @@ package commandline_test
import (
"fmt"
"gopher2600/debugger/terminal/commandline"
"testing"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
)
func TestValidation_required(t *testing.T) {

View file

@ -23,10 +23,11 @@ package plainterm
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/errors"
"io"
"os"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/errors"
)
// PlainTerminal is the default, most basic terminal interface. It keeps the

View file

@ -20,8 +20,9 @@
package terminal
import (
"gopher2600/gui"
"os"
"github.com/jetsetilly/gopher2600/gui"
)
// Prompt specifies the prompt text and the prompt style.

View file

@ -25,10 +25,11 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/commandline"
"gopher2600/errors"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/errors"
)
type traps struct {

View file

@ -21,12 +21,13 @@ package debugger
import (
"fmt"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/commandline"
"gopher2600/errors"
"gopher2600/hardware/memory"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/commandline"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory"
)
type watcher struct {

View file

@ -22,8 +22,9 @@ package digest
import (
"crypto/sha1"
"fmt"
"gopher2600/errors"
"gopher2600/television"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/television"
)
// the length of the buffer we're using isn't really important. that said, it

View file

@ -22,8 +22,9 @@ package digest
import (
"crypto/sha1"
"fmt"
"gopher2600/errors"
"gopher2600/television"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/television"
)
// Video is an implementation of the television.PixelRenderer interface with an

View file

@ -21,11 +21,12 @@ package disassembly
import (
"fmt"
"gopher2600/errors"
"gopher2600/hardware/cpu"
"gopher2600/hardware/cpu/instructions"
"gopher2600/hardware/memory/memorymap"
"strings"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/cpu"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// Analysis (best effort) of the cartridge

View file

@ -20,9 +20,9 @@
package disassembly
import (
"gopher2600/errors"
"gopher2600/hardware/cpu"
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/cpu"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
func (dsm *Disassembly) decode(mc *cpu.CPU) error {

View file

@ -20,14 +20,14 @@
package disassembly
import (
"gopher2600/cartridgeloader"
"gopher2600/errors"
"gopher2600/hardware/cpu"
"gopher2600/hardware/cpu/execution"
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/cartridge"
"gopher2600/hardware/memory/memorymap"
"gopher2600/symbols"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/cpu"
"github.com/jetsetilly/gopher2600/hardware/cpu/execution"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/symbols"
)
// Disassembly represents the annotated disassembly of a 6507 binary

View file

@ -21,11 +21,12 @@ package disassembly
import (
"fmt"
"gopher2600/hardware/cpu/execution"
"gopher2600/hardware/cpu/instructions"
"gopher2600/hardware/cpu/registers"
"gopher2600/symbols"
"strings"
"github.com/jetsetilly/gopher2600/hardware/cpu/execution"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
"github.com/jetsetilly/gopher2600/symbols"
)
// EntryType describes the level of reliability of the Entry.

View file

@ -21,7 +21,8 @@ package disassembly
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// Iterate faciliates traversal of the disassembly

View file

@ -20,8 +20,8 @@
package disassembly
import (
"gopher2600/hardware/memory/cartridge"
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// disasmMemory is a simplified memory model that allows the emulated CPU to

View file

@ -21,8 +21,9 @@ package disassembly
import (
"fmt"
"gopher2600/errors"
"io"
"github.com/jetsetilly/gopher2600/errors"
)
// WriteAttr controls what is printed by the Write*() functions

View file

@ -21,8 +21,9 @@ package errors_test
import (
"fmt"
"gopher2600/errors"
"testing"
"github.com/jetsetilly/gopher2600/errors"
)
func TestError(t *testing.T) {

2
go.mod
View file

@ -1,4 +1,4 @@
module gopher2600
module github.com/jetsetilly/gopher2600
go 1.13

View file

@ -21,29 +21,30 @@ package main
import (
"fmt"
"gopher2600/cartridgeloader"
"gopher2600/debugger"
"gopher2600/debugger/terminal"
"gopher2600/debugger/terminal/colorterm"
"gopher2600/debugger/terminal/plainterm"
"gopher2600/disassembly"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/gui/sdldebug"
"gopher2600/gui/sdlimgui"
"gopher2600/gui/sdlplay"
"gopher2600/modalflag"
"gopher2600/paths"
"gopher2600/performance"
"gopher2600/playmode"
"gopher2600/recorder"
"gopher2600/regression"
"gopher2600/television"
"gopher2600/wavwriter"
"io"
"os"
"os/signal"
"strings"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/debugger/terminal/colorterm"
"github.com/jetsetilly/gopher2600/debugger/terminal/plainterm"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/gui/sdldebug"
"github.com/jetsetilly/gopher2600/gui/sdlimgui"
"github.com/jetsetilly/gopher2600/gui/sdlplay"
"github.com/jetsetilly/gopher2600/modalflag"
"github.com/jetsetilly/gopher2600/paths"
"github.com/jetsetilly/gopher2600/performance"
"github.com/jetsetilly/gopher2600/playmode"
"github.com/jetsetilly/gopher2600/recorder"
"github.com/jetsetilly/gopher2600/regression"
"github.com/jetsetilly/gopher2600/television"
"github.com/jetsetilly/gopher2600/wavwriter"
)
const defaultInitScript = "debuggerInit"

View file

@ -20,7 +20,7 @@
package sdlaudio
import (
"gopher2600/hardware/tia/audio"
"github.com/jetsetilly/gopher2600/hardware/tia/audio"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,8 +20,8 @@
package sdldebug
import (
"gopher2600/errors"
"gopher2600/gui"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,12 +20,13 @@
package sdldebug
import (
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/reflection"
"gopher2600/television"
"io"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/reflection"
"github.com/jetsetilly/gopher2600/television"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,10 +20,11 @@
package sdldebug
import (
"gopher2600/gui"
"gopher2600/television"
"time"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/television"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,7 +20,7 @@
package sdlimgui
import (
"gopher2600/television/colors"
"github.com/jetsetilly/gopher2600/television/colors"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -20,8 +20,9 @@
package lazyvalues
import (
"gopher2600/hardware/memory/cartridge"
"sync/atomic"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
)
// LazyCart lazily accesses cartridge information from the emulator.

View file

@ -20,10 +20,11 @@
package lazyvalues
import (
"gopher2600/hardware/cpu/execution"
"gopher2600/hardware/cpu/registers"
"sync"
"sync/atomic"
"github.com/jetsetilly/gopher2600/hardware/cpu/execution"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
)
// LazyCPU lazily accesses CPU information from the emulator.

View file

@ -20,8 +20,9 @@
package lazyvalues
import (
"gopher2600/hardware/tia/video"
"sync/atomic"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
)
// LazyPlayfield lazily accesses playfield information from the emulator.

View file

@ -20,8 +20,9 @@
package lazyvalues
import (
"gopher2600/television"
"sync/atomic"
"github.com/jetsetilly/gopher2600/television"
)
// LazyTV lazily accesses tv information from the emulator.

View file

@ -20,12 +20,13 @@
package lazyvalues
import (
"gopher2600/debugger"
"gopher2600/disassembly"
"gopher2600/hardware"
"gopher2600/hardware/memory/cartridge"
"gopher2600/hardware/memory/memorymap"
"sync/atomic"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/hardware"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// Values contains all values required by a debugger running in a different

View file

@ -20,11 +20,11 @@
package sdlimgui
import (
"gopher2600/debugger"
"gopher2600/disassembly"
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/hardware"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/hardware"
)
type featureRequest struct {

View file

@ -20,10 +20,11 @@
package sdlimgui
import (
"gopher2600/television"
"image"
"image/color"
"github.com/jetsetilly/gopher2600/television"
"github.com/go-gl/gl/v3.2-core/gl"
)

View file

@ -20,15 +20,16 @@
package sdlimgui
import (
"gopher2600/debugger/terminal"
"gopher2600/disassembly"
"gopher2600/gui"
"gopher2600/gui/sdlaudio"
"gopher2600/gui/sdlimgui/lazyvalues"
"gopher2600/paths"
"gopher2600/television"
"io"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/gui/sdlaudio"
"github.com/jetsetilly/gopher2600/gui/sdlimgui/lazyvalues"
"github.com/jetsetilly/gopher2600/paths"
"github.com/jetsetilly/gopher2600/television"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -20,9 +20,10 @@
package sdlimgui
import (
"gopher2600/gui"
"time"
"github.com/jetsetilly/gopher2600/gui"
"github.com/inkyblackness/imgui-go/v2"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,9 +20,10 @@
package sdlimgui
import (
"gopher2600/debugger/terminal"
"gopher2600/errors"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/jetsetilly/gopher2600/errors"
)
type term struct {

View file

@ -20,7 +20,7 @@
package sdlimgui
import (
"gopher2600/debugger"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,10 +21,11 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/cpu/registers"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,9 +21,10 @@ package sdlimgui
import (
"fmt"
"gopher2600/debugger"
"gopher2600/disassembly"
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/debugger"
"github.com/jetsetilly/gopher2600/disassembly"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,9 +21,10 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/memory/cartridge"
"strconv"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -20,9 +20,10 @@
package sdlimgui
import (
"gopher2600/debugger/terminal"
"strings"
"github.com/jetsetilly/gopher2600/debugger/terminal"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -20,7 +20,7 @@
package sdlimgui
import (
"gopher2600/hardware/tia/video"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,10 +21,11 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/tia/video"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,10 +21,11 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/tia/video"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,10 +21,11 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/tia/video"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,9 +21,10 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/tia/video"
"strconv"
"github.com/jetsetilly/gopher2600/hardware/tia/video"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -21,9 +21,10 @@ package sdlimgui
import (
"fmt"
"gopher2600/hardware/riot/timer"
"strconv"
"github.com/jetsetilly/gopher2600/hardware/riot/timer"
"github.com/inkyblackness/imgui-go/v2"
)

View file

@ -20,8 +20,8 @@
package sdlplay
import (
"gopher2600/errors"
"gopher2600/gui"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,12 +20,13 @@
package sdlplay
import (
"gopher2600/errors"
"gopher2600/gui"
"gopher2600/gui/sdlaudio"
"gopher2600/television"
"io"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/gui"
"github.com/jetsetilly/gopher2600/gui/sdlaudio"
"github.com/jetsetilly/gopher2600/television"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -20,7 +20,7 @@
package sdlplay
import (
"gopher2600/gui"
"github.com/jetsetilly/gopher2600/gui"
"github.com/veandco/go-sdl2/sdl"
)

View file

@ -21,13 +21,14 @@ package cpu
import (
"fmt"
"gopher2600/errors"
"gopher2600/hardware/cpu/execution"
"gopher2600/hardware/cpu/instructions"
"gopher2600/hardware/cpu/registers"
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/bus"
"log"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/cpu/execution"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/bus"
)
// CPU implements the 6507 found as found in the Atari 2600. Register logic is

View file

@ -21,10 +21,11 @@ package cpu_test
import (
"fmt"
"gopher2600/errors"
"gopher2600/hardware/cpu"
rtest "gopher2600/hardware/cpu/registers/test"
"testing"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/cpu"
rtest "github.com/jetsetilly/gopher2600/hardware/cpu/registers/test"
)
type mockMem struct {

View file

@ -20,7 +20,7 @@
package execution
import (
"gopher2600/hardware/cpu/instructions"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
)
// Result records the state/result of each instruction executed on the CPU.

View file

@ -21,7 +21,8 @@ package execution
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// IsValid checks whether the instance of Result contains information

View file

@ -25,12 +25,13 @@ import (
"encoding/csv"
"fmt"
"go/format"
"gopher2600/hardware/cpu/instructions"
"io"
"os"
"sort"
"strconv"
"strings"
"github.com/jetsetilly/gopher2600/hardware/cpu/instructions"
)
const definitionsCSVFile = "./instructions.csv"

View file

@ -20,10 +20,11 @@
package registers_test
import (
"gopher2600/hardware/cpu/registers"
rtest "gopher2600/hardware/cpu/registers/test"
"gopher2600/test"
"testing"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
rtest "github.com/jetsetilly/gopher2600/hardware/cpu/registers/test"
"github.com/jetsetilly/gopher2600/test"
)
func TestDecimalMode(t *testing.T) {

View file

@ -20,10 +20,11 @@
package registers_test
import (
"gopher2600/hardware/cpu/registers"
rtest "gopher2600/hardware/cpu/registers/test"
"gopher2600/test"
"testing"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
rtest "github.com/jetsetilly/gopher2600/hardware/cpu/registers/test"
"github.com/jetsetilly/gopher2600/test"
)
func TestProgramCounter(t *testing.T) {

View file

@ -20,10 +20,11 @@
package registers_test
import (
"gopher2600/hardware/cpu/registers"
rtest "gopher2600/hardware/cpu/registers/test"
"gopher2600/test"
"testing"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
rtest "github.com/jetsetilly/gopher2600/hardware/cpu/registers/test"
"github.com/jetsetilly/gopher2600/test"
)
func TestRegister(t *testing.T) {

View file

@ -20,8 +20,9 @@
package test
import (
"gopher2600/hardware/cpu/registers"
"testing"
"github.com/jetsetilly/gopher2600/hardware/cpu/registers"
)
// EquateRegisters is used to test equality between two instances of a register

View file

@ -26,4 +26,3 @@
// it can be stepped cycle by cycle. Both CPU and video cycle stepping are
// supported.
package hardware

View file

@ -21,7 +21,7 @@
// memory package documentation.
package bus
import "gopher2600/hardware/memory/addresses"
import "github.com/jetsetilly/gopher2600/hardware/memory/addresses"
// CPUBus defines the operations for the memory system when accessed from the CPU
// All memory areas implement this interface because they are all accessible

View file

@ -22,11 +22,12 @@ package cartridge
import (
"crypto/sha1"
"fmt"
"gopher2600/cartridgeloader"
"gopher2600/errors"
"gopher2600/hardware/memory/bus"
"gopher2600/hardware/memory/memorymap"
"strings"
"github.com/jetsetilly/gopher2600/cartridgeloader"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory/bus"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// Cartridge defines the information and operations for a VCS cartridge

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// from bankswitch_sizes.txt:

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
type cbs struct {

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
const ejectedName = "ejected"

View file

@ -21,8 +21,9 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"strings"
"github.com/jetsetilly/gopher2600/errors"
)
// from bankswitch_sizes.txt:

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// from bankswitch_sizes.txt:

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
// from bankswitch_sizes.txt:

View file

@ -21,7 +21,8 @@ package cartridge
import (
"fmt"
"gopher2600/errors"
"github.com/jetsetilly/gopher2600/errors"
)
func (cart Cartridge) fingerprint8k(data []byte) func([]byte) (cartMapper, error) {

View file

@ -21,9 +21,10 @@ package memory
import (
"fmt"
"gopher2600/errors"
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/bus"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/bus"
)
// ChipMemory defines the information for and operations allowed for those

View file

@ -20,7 +20,7 @@
package memory
import (
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// newRIOT is the preferred method of initialisation for the RIOT memory area

View file

@ -20,8 +20,8 @@
package memory
import (
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// newTIA is the preferred method of initialisation for the TIA memory area

View file

@ -20,11 +20,11 @@
package memory
import (
"gopher2600/errors"
"gopher2600/hardware/memory/addresses"
"gopher2600/hardware/memory/bus"
"gopher2600/hardware/memory/cartridge"
"gopher2600/hardware/memory/memorymap"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/hardware/memory/bus"
"github.com/jetsetilly/gopher2600/hardware/memory/cartridge"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// VCSMemory is the monolithic representation of the memory in 2600.

View file

@ -20,8 +20,9 @@
package memory_test
import (
"gopher2600/hardware/memory"
"testing"
"github.com/jetsetilly/gopher2600/hardware/memory"
)
func readData(t *testing.T, mem *memory.VCSMemory, address uint16, expectedData uint8) {

View file

@ -20,8 +20,9 @@
package memorymap_test
import (
"gopher2600/hardware/memory/memorymap"
"testing"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
const validMemMap = `0000 -> 007f TIA

View file

@ -21,9 +21,10 @@ package memory
import (
"fmt"
"gopher2600/hardware/memory/bus"
"gopher2600/hardware/memory/memorymap"
"strings"
"github.com/jetsetilly/gopher2600/hardware/memory/bus"
"github.com/jetsetilly/gopher2600/hardware/memory/memorymap"
)
// RAM represents the 128bytes of RAM in the PIA 6532 chip, found in the Atari

View file

@ -20,8 +20,8 @@
package input
import (
"gopher2600/errors"
"gopher2600/hardware/memory/addresses"
"github.com/jetsetilly/gopher2600/errors"
"github.com/jetsetilly/gopher2600/hardware/memory/addresses"
)
// ControllerType keeps track of which controller type is being used at any

Some files were not shown because too many files have changed in this diff Show more