mirror of
https://github.com/bradford-hamilton/apple-1.git
synced 2024-06-10 17:29:26 +00:00
14 lines
314 B
Go
14 lines
314 B
Go
package appleone
|
|
|
|
import "github.com/bradford-hamilton/apple-1/internal/cpu"
|
|
|
|
// Appleone represents our virtual Apple 1 computer
|
|
type Appleone struct {
|
|
cpu *cpu.Mos6502
|
|
}
|
|
|
|
// New returns a pointer to an initialized Appleone with a brand spankin new CPU
|
|
func New() *Appleone {
|
|
return &Appleone{cpu: cpu.New()}
|
|
}
|