Renamed mos6502 to apple2

This commit is contained in:
Will Angenent 2018-05-27 11:05:00 +01:00
parent f95348163d
commit 024eebae61
19 changed files with 75 additions and 68 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
apple2e
apple2e.test
apple2
apple2.test
apple2e.rom
dos33.dsk
prodos.dsk

View File

@ -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

View File

@ -1,7 +1,7 @@
package audio
import (
"mos6502go/system"
"apple2/system"
)
func Click() {

View File

@ -2,9 +2,10 @@ package audio
import (
"errors"
"mos6502go/system"
ebiten_audio "github.com/hajimehoshi/ebiten/audio"
"apple2/system"
)
var (

View File

@ -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) {

View File

@ -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) {

View File

@ -3,9 +3,9 @@ package main
import (
"flag"
"mos6502go/cpu"
"mos6502go/mmu"
"mos6502go/utils"
"apple2/cpu"
"apple2/mmu"
"apple2/utils"
)
func main() {

View File

@ -2,9 +2,10 @@ package cpu
import (
"fmt"
"mos6502go/mmu"
"mos6502go/system"
"os"
"apple2/mmu"
"apple2/system"
)
const (

View File

@ -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) {

View File

@ -2,8 +2,9 @@ package cpu
import (
"fmt"
"mos6502go/mmu"
"strings"
"apple2/mmu"
)
func printFlag(p byte, flag uint8, code string) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"io/ioutil"
"mos6502go/system"
"apple2/system"
)
const tracksPerDisk = 35

View File

@ -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"

View File

@ -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) {

View File

@ -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

View File

@ -3,7 +3,8 @@ package mmu
import (
"fmt"
"io/ioutil"
"mos6502go/system"
"apple2/system"
)
const RomPath = "apple2e.rom"

View File

@ -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"

View File

@ -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"

View File

@ -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) {

View File

@ -4,10 +4,11 @@ import (
"fmt"
"image"
"image/color"
"mos6502go/mmu"
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil"
"apple2/mmu"
)
const (