mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-06-14 02:29:29 +00:00
Fix fast disk mode
This commit is contained in:
parent
9e2fd7e824
commit
88ade57b1b
|
@ -80,8 +80,8 @@ func (c *cardDisk2) assign(a *Apple2, slot int) {
|
||||||
|
|
||||||
// Q4, power switch
|
// Q4, power switch
|
||||||
c.addCardSoftSwitchR(0x8, func(_ *ioC0Page) uint8 {
|
c.addCardSoftSwitchR(0x8, func(_ *ioC0Page) uint8 {
|
||||||
drive := c.drive[c.selected]
|
drive := &c.drive[c.selected]
|
||||||
if !drive.power {
|
if drive.power {
|
||||||
drive.power = false
|
drive.power = false
|
||||||
c.a.releaseFastMode()
|
c.a.releaseFastMode()
|
||||||
if drive.diskette != nil {
|
if drive.diskette != nil {
|
||||||
|
@ -91,7 +91,7 @@ func (c *cardDisk2) assign(a *Apple2, slot int) {
|
||||||
return c.dataLatch
|
return c.dataLatch
|
||||||
}, "Q4DRIVEOFF")
|
}, "Q4DRIVEOFF")
|
||||||
c.addCardSoftSwitchR(0x9, func(_ *ioC0Page) uint8 {
|
c.addCardSoftSwitchR(0x9, func(_ *ioC0Page) uint8 {
|
||||||
drive := c.drive[c.selected]
|
drive := &c.drive[c.selected]
|
||||||
if !drive.power {
|
if !drive.power {
|
||||||
drive.power = true
|
drive.power = true
|
||||||
c.a.requestFastMode()
|
c.a.requestFastMode()
|
||||||
|
@ -100,7 +100,7 @@ func (c *cardDisk2) assign(a *Apple2, slot int) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}, "")
|
}, "Q4DRIVEON")
|
||||||
|
|
||||||
// Q5, drive selecion
|
// Q5, drive selecion
|
||||||
c.addCardSoftSwitchR(0xA, func(_ *ioC0Page) uint8 {
|
c.addCardSoftSwitchR(0xA, func(_ *ioC0Page) uint8 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user