mirror of
https://github.com/freewilll/apple2-go.git
synced 2024-11-17 18:07:38 +00:00
Renamed mos6502 to apple2
This commit is contained in:
parent
f95348163d
commit
024eebae61
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
apple2e
|
||||
apple2e.test
|
||||
apple2
|
||||
apple2.test
|
||||
apple2e.rom
|
||||
dos33.dsk
|
||||
prodos.dsk
|
||||
|
@ -7,14 +7,14 @@ import (
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
|
||||
"mos6502go/audio"
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/disk"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/utils"
|
||||
"mos6502go/video"
|
||||
"apple2/audio"
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
var showInstructions *bool
|
@ -1,7 +1,7 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"mos6502go/system"
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
func Click() {
|
||||
|
@ -2,9 +2,10 @@ package audio
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"mos6502go/system"
|
||||
|
||||
ebiten_audio "github.com/hajimehoshi/ebiten/audio"
|
||||
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,11 +5,11 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
func TestBankSwitching(t *testing.T) {
|
||||
|
10
bell_test.go
10
bell_test.go
@ -4,11 +4,11 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
func testBellCycles(delay int) {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/utils"
|
||||
"apple2/cpu"
|
||||
"apple2/mmu"
|
||||
"apple2/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -2,9 +2,10 @@ package cpu
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"os"
|
||||
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -3,12 +3,13 @@ package cpu_test
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/utils"
|
||||
"testing"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
)
|
||||
|
||||
func TestCPU(t *testing.T) {
|
||||
|
@ -2,8 +2,9 @@ package cpu
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"mos6502go/mmu"
|
||||
"strings"
|
||||
|
||||
"apple2/mmu"
|
||||
)
|
||||
|
||||
func printFlag(p byte, flag uint8, code string) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"mos6502go/system"
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
const tracksPerDisk = 35
|
||||
|
@ -5,13 +5,13 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/disk"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/utils"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
const dosDiskImage = "dos33.dsk"
|
||||
|
10
io_test.go
10
io_test.go
@ -5,11 +5,11 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
func TestIoBankSwitching(t *testing.T) {
|
||||
|
@ -3,10 +3,10 @@ package mmu
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"mos6502go/audio"
|
||||
"mos6502go/disk"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/system"
|
||||
"apple2/audio"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
// Adapted from
|
||||
|
@ -3,7 +3,8 @@ package mmu
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mos6502go/system"
|
||||
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
const RomPath = "apple2e.rom"
|
||||
|
@ -5,13 +5,13 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/disk"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/utils"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
const prodosDiskImage = "prodos.dsk"
|
||||
|
@ -3,13 +3,13 @@ package main
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/disk"
|
||||
"mos6502go/keyboard"
|
||||
"mos6502go/mmu"
|
||||
"mos6502go/system"
|
||||
"mos6502go/utils"
|
||||
"mos6502go/video"
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
const rwtsDosDiskImage = "dos33.dsk"
|
||||
|
@ -5,10 +5,11 @@ import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mos6502go/cpu"
|
||||
"mos6502go/system"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
func ReadMemoryFromGzipFile(filename string) (data []byte, err error) {
|
||||
|
@ -4,10 +4,11 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
"image/color"
|
||||
"mos6502go/mmu"
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
"github.com/hajimehoshi/ebiten/ebitenutil"
|
||||
|
||||
"apple2/mmu"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user