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