mirror of
https://github.com/freewilll/apple2-go.git
synced 2025-01-14 03:30:30 +00:00
Added glide based dependency management
This commit is contained in:
parent
024eebae61
commit
ade84dc657
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
vendor
|
||||
glide.lock
|
||||
apple2
|
||||
apple2.test
|
||||
apple2e.rom
|
||||
|
17
apple2.go
17
apple2.go
@ -5,16 +5,15 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/freewilll/apple2/audio"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/disk"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
"github.com/freewilll/apple2/video"
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
|
||||
"apple2/audio"
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
var showInstructions *bool
|
||||
|
@ -1,8 +1,6 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"apple2/system"
|
||||
)
|
||||
import "github.com/freewilll/apple2/system"
|
||||
|
||||
func Click() {
|
||||
ForwardToFrameCycle()
|
||||
|
@ -3,9 +3,8 @@ package audio
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/freewilll/apple2/system"
|
||||
ebiten_audio "github.com/hajimehoshi/ebiten/audio"
|
||||
|
||||
"apple2/system"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -3,13 +3,12 @@ package main
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/video"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"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"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/video"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/video"
|
||||
)
|
||||
|
||||
func testBellCycles(delay int) {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/mmu"
|
||||
"apple2/utils"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -5,11 +5,11 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
)
|
||||
|
||||
func TestCPU(t *testing.T) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"apple2/mmu"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
)
|
||||
|
||||
func printFlag(p byte, flag uint8, code string) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"apple2/system"
|
||||
"github.com/freewilll/apple2/system"
|
||||
)
|
||||
|
||||
const tracksPerDisk = 35
|
||||
|
@ -5,13 +5,13 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/disk"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
"github.com/freewilll/apple2/video"
|
||||
)
|
||||
|
||||
const dosDiskImage = "dos33.dsk"
|
||||
|
12
glide.yaml
Normal file
12
glide.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
package: github.com/freewilll/apple2
|
||||
import:
|
||||
- package: github.com/hajimehoshi/ebiten
|
||||
version: ^1.7.0
|
||||
subpackages:
|
||||
- audio
|
||||
- ebitenutil
|
||||
testImport:
|
||||
- package: github.com/stretchr/testify
|
||||
version: ^1.2.1
|
||||
subpackages:
|
||||
- assert
|
11
io_test.go
11
io_test.go
@ -3,13 +3,12 @@ package main
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/video"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/video"
|
||||
)
|
||||
|
||||
func TestIoBankSwitching(t *testing.T) {
|
||||
|
@ -3,10 +3,10 @@ package mmu
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"apple2/audio"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/system"
|
||||
"github.com/freewilll/apple2/audio"
|
||||
"github.com/freewilll/apple2/disk"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/system"
|
||||
)
|
||||
|
||||
// Adapted from
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"apple2/system"
|
||||
"github.com/freewilll/apple2/system"
|
||||
)
|
||||
|
||||
const RomPath = "apple2e.rom"
|
||||
|
@ -5,13 +5,13 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/disk"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
"github.com/freewilll/apple2/video"
|
||||
)
|
||||
|
||||
const prodosDiskImage = "prodos.dsk"
|
||||
|
@ -3,13 +3,13 @@ package main
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/disk"
|
||||
"apple2/keyboard"
|
||||
"apple2/mmu"
|
||||
"apple2/system"
|
||||
"apple2/utils"
|
||||
"apple2/video"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/disk"
|
||||
"github.com/freewilll/apple2/keyboard"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
"github.com/freewilll/apple2/utils"
|
||||
"github.com/freewilll/apple2/video"
|
||||
)
|
||||
|
||||
const rwtsDosDiskImage = "dos33.dsk"
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"apple2/cpu"
|
||||
"apple2/system"
|
||||
"github.com/freewilll/apple2/cpu"
|
||||
"github.com/freewilll/apple2/system"
|
||||
)
|
||||
|
||||
func ReadMemoryFromGzipFile(filename string) (data []byte, err error) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
"github.com/hajimehoshi/ebiten/ebitenutil"
|
||||
|
||||
"apple2/mmu"
|
||||
"github.com/freewilll/apple2/mmu"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -43,7 +43,7 @@ func Init() {
|
||||
}
|
||||
|
||||
// From
|
||||
// https://mrob.com/pub/xapple2/colors.html
|
||||
// https://mrob.com/pub/xgithub.com/freewilll/apple2/colors.html
|
||||
// https://archive.org/details/IIgs_2523063_Master_Color_Values
|
||||
|
||||
alpha := uint8(0xff)
|
||||
|
Loading…
x
Reference in New Issue
Block a user