izapple2/main.go

49 lines
1.0 KiB
Go
Raw Normal View History

2019-01-26 17:57:03 +00:00
package main
2019-04-13 18:29:31 +00:00
import (
2019-04-15 21:13:05 +00:00
"flag"
2019-04-13 18:29:31 +00:00
"go6502/apple2"
"go6502/apple2sdl"
)
2019-01-26 17:57:03 +00:00
func main() {
2019-04-15 21:13:05 +00:00
romFile := flag.String(
"rom",
"apple2/romdumps/Apple2_Plus.rom",
"main rom file")
disk2RomFile := flag.String(
"diskRom",
"apple2/romdumps/DISK2.rom",
"rom file for the disk drive controller")
diskImage := flag.String(
"disk",
"../dos33.dsk",
"file to load on the first disk drive")
useSdl := flag.Bool(
"sdl",
true,
"use SDL")
panicSS := flag.Bool(
"panicss",
false,
"panic if a not implemented softwtich is used")
flag.Parse()
//romFile := "apple2/romdumps/Apple2.rom"
2019-04-15 21:13:05 +00:00
//romFile := "apple2/romdumps/Apple2_Plus.rom"
//romFile := "apple2/romdumps/Apple2e.rom"
2019-04-15 21:13:05 +00:00
//disk2RomFile := "apple2/romdumps/DISK2.rom"
//diskImage := "../dos33.dsk"
//diskImage := "../Apex II - Apple II Diagnostic (v4.7-1986).DSK"
//diskImage := "../A2Diag.v4.1.SDK"
2019-01-26 17:57:03 +00:00
2019-03-04 23:00:12 +00:00
log := false
2019-04-15 21:13:05 +00:00
a := apple2.NewApple2(*romFile, *panicSS)
a.AddDisk2(*disk2RomFile, *diskImage)
if *useSdl {
2019-04-13 18:29:31 +00:00
apple2sdl.SDLRun(a)
} else {
a.Run(log, true)
}
2019-01-26 17:57:03 +00:00
}