mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-06-02 20:18:20 -04:00
parent
a0d61fa770
commit
24cb28843f
|
@ -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
|
||||
|
|
|
@ -21,9 +21,10 @@ package database
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
"io"
|
||||
"sort"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// arbitrary maximum number of entries
|
||||
|
|
|
@ -21,7 +21,8 @@ package database
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// Deserialiser extracts/converts fields from a SerialisedEntry
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package database
|
||||
|
||||
import "gopher2600/errors"
|
||||
import "github.com/jetsetilly/gopher2600/errors"
|
||||
|
||||
// SelectAll entries in the database. onSelect can be nil.
|
||||
//
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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{}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 = "#"
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package debugger
|
||||
|
||||
import (
|
||||
"gopher2600/disassembly"
|
||||
"github.com/jetsetilly/gopher2600/disassembly"
|
||||
)
|
||||
|
||||
// GetQuantum returns the current quantum value
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,8 +21,9 @@ package commandline
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
"strings"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// Commands is the root of the node tree
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -21,9 +21,10 @@ package commandline
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// Validate input string against command defintions
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
package terminal
|
||||
|
||||
import (
|
||||
"gopher2600/gui"
|
||||
"os"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/gui"
|
||||
)
|
||||
|
||||
// Prompt specifies the prompt text and the prompt style.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -21,7 +21,8 @@ package disassembly
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// Iterate faciliates traversal of the disassembly
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,8 +21,9 @@ package errors_test
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
"testing"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
func TestError(t *testing.T) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package sdlaudio
|
||||
|
||||
import (
|
||||
"gopher2600/hardware/tia/audio"
|
||||
"github.com/jetsetilly/gopher2600/hardware/tia/audio"
|
||||
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package sdlimgui
|
||||
|
||||
import (
|
||||
"gopher2600/television/colors"
|
||||
"github.com/jetsetilly/gopher2600/television/colors"
|
||||
|
||||
"github.com/inkyblackness/imgui-go/v2"
|
||||
)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
package lazyvalues
|
||||
|
||||
import (
|
||||
"gopher2600/television"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/television"
|
||||
)
|
||||
|
||||
// LazyTV lazily accesses tv information from the emulator.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package sdlimgui
|
||||
|
||||
import (
|
||||
"gopher2600/debugger"
|
||||
"github.com/jetsetilly/gopher2600/debugger"
|
||||
|
||||
"github.com/inkyblackness/imgui-go/v2"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,9 +20,10 @@
|
|||
package sdlimgui
|
||||
|
||||
import (
|
||||
"gopher2600/debugger/terminal"
|
||||
"strings"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/debugger/terminal"
|
||||
|
||||
"github.com/inkyblackness/imgui-go/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package sdlimgui
|
||||
|
||||
import (
|
||||
"gopher2600/hardware/tia/video"
|
||||
"github.com/jetsetilly/gopher2600/hardware/tia/video"
|
||||
|
||||
"github.com/inkyblackness/imgui-go/v2"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package sdlplay
|
||||
|
||||
import (
|
||||
"gopher2600/gui"
|
||||
"github.com/jetsetilly/gopher2600/gui"
|
||||
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -21,7 +21,8 @@ package execution
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// IsValid checks whether the instance of Result contains information
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,4 +26,3 @@
|
|||
// it can be stepped cycle by cycle. Both CPU and video cycle stepping are
|
||||
// supported.
|
||||
package hardware
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,7 +21,8 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// from bankswitch_sizes.txt:
|
||||
|
|
|
@ -21,7 +21,8 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
type cbs struct {
|
||||
|
|
|
@ -21,7 +21,8 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
const ejectedName = "ejected"
|
||||
|
|
|
@ -21,8 +21,9 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
"strings"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// from bankswitch_sizes.txt:
|
||||
|
|
|
@ -21,7 +21,8 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// from bankswitch_sizes.txt:
|
||||
|
|
|
@ -21,7 +21,8 @@ package cartridge
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gopher2600/errors"
|
||||
|
||||
"github.com/jetsetilly/gopher2600/errors"
|
||||
)
|
||||
|
||||
// from bankswitch_sizes.txt:
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue