mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-22 09:30:19 +00:00
Fix serpentine hang waiting for noise on the cassette port
This commit is contained in:
parent
53842b2b4e
commit
20c9a842d5
@ -33,7 +33,7 @@ func addApple2SoftSwitches(io *ioC0Page) {
|
|||||||
io.addSoftSwitchR(0x30, speakerSoftSwitch, "SPEAKER") // Speaker
|
io.addSoftSwitchR(0x30, speakerSoftSwitch, "SPEAKER") // Speaker
|
||||||
io.addSoftSwitchR(0x40, notImplementedSoftSwitchR, "STROBE") // Game connector Strobe
|
io.addSoftSwitchR(0x40, notImplementedSoftSwitchR, "STROBE") // Game connector Strobe
|
||||||
// Note: Some sources indicate that all these cover 16 positions
|
// Note: Some sources indicate that all these cover 16 positions
|
||||||
// for read and write. But the Apple2e take over some of them, with
|
// for read and write. But the Apple2e takes over some of them, with
|
||||||
// the prevention on acting only on writes.
|
// the prevention on acting only on writes.
|
||||||
|
|
||||||
io.addSoftSwitchRW(0x50, getSoftSwitch(ioFlagText, false), "TEXTOFF")
|
io.addSoftSwitchRW(0x50, getSoftSwitch(ioFlagText, false), "TEXTOFF")
|
||||||
@ -80,8 +80,9 @@ func addApple2SoftSwitches(io *ioC0Page) {
|
|||||||
io.softSwitchesData[ioFlag2RGBCard] = ssOn
|
io.softSwitchesData[ioFlag2RGBCard] = ssOn
|
||||||
}
|
}
|
||||||
|
|
||||||
func notImplementedSoftSwitchR(*ioC0Page) uint8 {
|
func notImplementedSoftSwitchR(io *ioC0Page) uint8 {
|
||||||
return 0
|
// Return random info. Some games (Serpentine) used CASSETTE and get stuck if not changing.
|
||||||
|
return uint8(io.apple2.cpu.GetCycles())
|
||||||
}
|
}
|
||||||
|
|
||||||
func notImplementedSoftSwitchW(*ioC0Page, uint8) {
|
func notImplementedSoftSwitchW(*ioC0Page, uint8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user