mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-02-20 23:29:14 +00:00
Adding unenhanced Apple IIe
This commit is contained in:
parent
d5433ad8d9
commit
5a3dcc60bb
@ -107,8 +107,6 @@ Only valid on SDL mode
|
|||||||
### Command line options
|
### Command line options
|
||||||
|
|
||||||
```
|
```
|
||||||
-base64a
|
|
||||||
setup a Base64A clone
|
|
||||||
-charRom string
|
-charRom string
|
||||||
rom file for the character generator (default "<internal>/Apple2rev7CharGen.rom")
|
rom file for the character generator (default "<internal>/Apple2rev7CharGen.rom")
|
||||||
-disk string
|
-disk string
|
||||||
@ -129,6 +127,8 @@ Only valid on SDL mode
|
|||||||
slot for the 16kb language card. -1 for none
|
slot for the 16kb language card. -1 for none
|
||||||
-mhz float
|
-mhz float
|
||||||
cpu speed in Mhz, use 0 for full speed. Use F5 to toggle. (default 1.0227142857142857)
|
cpu speed in Mhz, use 0 for full speed. Use F5 to toggle. (default 1.0227142857142857)
|
||||||
|
-model string
|
||||||
|
set base model. Models available 2plus, 2e, 2enh, base64a (default "2e")
|
||||||
-mono
|
-mono
|
||||||
emulate a green phosphor monitor instead of a NTSC color TV. Use F6 to toggle.
|
emulate a green phosphor monitor instead of a NTSC color TV. Use F6 to toggle.
|
||||||
-panicss
|
-panicss
|
||||||
|
@ -22,6 +22,22 @@ func newApple2plus() *Apple2 {
|
|||||||
return &a
|
return &a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newApple2e() *Apple2 {
|
||||||
|
|
||||||
|
var a Apple2
|
||||||
|
a.Name = "Apple IIe"
|
||||||
|
a.mmu = newMemoryManager(&a)
|
||||||
|
a.cpu = core6502.NewCMOS65c02(a.mmu)
|
||||||
|
|
||||||
|
// Set the io in 0xc000
|
||||||
|
a.io = newIoC0Page(&a)
|
||||||
|
a.mmu.setPages(0xc0, 0xc0, a.io)
|
||||||
|
addApple2SoftSwitches(a.io)
|
||||||
|
addApple2ESoftSwitches(a.io)
|
||||||
|
|
||||||
|
return &a
|
||||||
|
}
|
||||||
|
|
||||||
func newApple2eEnhanced() *Apple2 {
|
func newApple2eEnhanced() *Apple2 {
|
||||||
|
|
||||||
var a Apple2
|
var a Apple2
|
||||||
|
@ -85,8 +85,8 @@ func MainApple() *Apple2 {
|
|||||||
)
|
)
|
||||||
model := flag.String(
|
model := flag.String(
|
||||||
"model",
|
"model",
|
||||||
"2plus",
|
"2e",
|
||||||
"set base model. Models available 2plus, 2e, base64a",
|
"set base model. Models available 2plus, 2e, 2enh, base64a",
|
||||||
)
|
)
|
||||||
profile := flag.Bool(
|
profile := flag.Bool(
|
||||||
"profile",
|
"profile",
|
||||||
@ -110,6 +110,17 @@ func MainApple() *Apple2 {
|
|||||||
charGenMap = charGenColumnsMap2Plus
|
charGenMap = charGenColumnsMap2Plus
|
||||||
|
|
||||||
case "2e":
|
case "2e":
|
||||||
|
a = newApple2e()
|
||||||
|
if *romFile == defaultInternal {
|
||||||
|
*romFile = "<internal>/Apple2e.rom"
|
||||||
|
}
|
||||||
|
if *charRomFile == defaultInternal {
|
||||||
|
*charRomFile = "<internal>/Apple IIe Video Unenhanced - 342-0133-A - 2732.bin"
|
||||||
|
}
|
||||||
|
a.isApple2e = true
|
||||||
|
charGenMap = charGenColumnsMap2e
|
||||||
|
|
||||||
|
case "2enh":
|
||||||
a = newApple2eEnhanced()
|
a = newApple2eEnhanced()
|
||||||
if *romFile == defaultInternal {
|
if *romFile == defaultInternal {
|
||||||
*romFile = "<internal>/Apple2e_Enhanced.rom"
|
*romFile = "<internal>/Apple2e_Enhanced.rom"
|
||||||
|
@ -43,6 +43,9 @@ func newSDLJoysticks() *sdlJoysticks {
|
|||||||
j.paddle[2] = 128
|
j.paddle[2] = 128
|
||||||
j.paddle[3] = 128
|
j.paddle[3] = 128
|
||||||
|
|
||||||
|
// To enter Apple IIe on self test mode
|
||||||
|
//j.keys[1] = true
|
||||||
|
|
||||||
return &j
|
return &j
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user