mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-09-27 06:54:35 +00:00
Boot with Apple IIc ROM
This commit is contained in:
parent
6e25111224
commit
9e03a982b4
@ -44,6 +44,21 @@ func newApple2eEnhanced() *Apple2 {
|
||||
return &a
|
||||
}
|
||||
|
||||
func newApple2c() *Apple2 {
|
||||
var a Apple2
|
||||
a.Name = "Apple //c (ROM FF)"
|
||||
a.mmu = newMemoryManager(&a)
|
||||
a.cpu = core6502.NewCMOS65c02(a.mmu)
|
||||
a.io = newIoC0Page(&a)
|
||||
a.mmu.InitRAMalt()
|
||||
addApple2SoftSwitches(a.io)
|
||||
addApple2ESoftSwitches(a.io)
|
||||
|
||||
a.mmu.intCxROMActive = true
|
||||
|
||||
return &a
|
||||
}
|
||||
|
||||
func (a *Apple2) setup(isColor bool, clockMhz float64, fastMode bool) {
|
||||
a.commandChannel = make(chan int, 100)
|
||||
a.isColor = isColor
|
||||
|
@ -103,8 +103,8 @@ func MainApple() *Apple2 {
|
||||
"shows the character map")
|
||||
model := flag.String(
|
||||
"model",
|
||||
"2enh",
|
||||
"set base model. Models available 2plus, 2e, 2enh, base64a")
|
||||
"2c",
|
||||
"set base model. Models available 2plus, 2e, 2enh, 2c, base64a")
|
||||
profile := flag.Bool(
|
||||
"profile",
|
||||
false,
|
||||
@ -158,6 +158,17 @@ func MainApple() *Apple2 {
|
||||
a.isApple2e = true
|
||||
charGenMap = charGenColumnsMap2e
|
||||
|
||||
case "2c":
|
||||
a = newApple2c()
|
||||
if *romFile == defaultInternal {
|
||||
*romFile = "<internal>/Apple2cRomFF-342-0272-a.bin"
|
||||
}
|
||||
if *charRomFile == defaultInternal {
|
||||
*charRomFile = "<internal>/Apple IIe Video Enhanced - 342-0265-A - 2732.bin"
|
||||
}
|
||||
a.isApple2e = true
|
||||
charGenMap = charGenColumnsMap2e
|
||||
|
||||
case "base64a":
|
||||
a = newBase64a()
|
||||
if *romFile == defaultInternal {
|
||||
|
@ -69,6 +69,8 @@ func newMemoryManager(a *Apple2) *memoryManager {
|
||||
mmu.apple2 = a
|
||||
mmu.physicalMainRAM = newMemoryRange(0, make([]uint8, 0xc000))
|
||||
|
||||
mmu.intCxROMActive = true
|
||||
|
||||
return &mmu
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user