mirror of
https://github.com/a2-4am/4cade.git
synced 2026-03-11 04:42:00 +00:00
no longer require SmartPort-capable device
This commit is contained in:
@@ -186,18 +186,6 @@
|
||||
; initialize and relocate ProRWTS2 to $D400 in LC RAM bank 2
|
||||
+READ_ROM_WRITE_RAM2
|
||||
jsr init ; requires RAM2 write
|
||||
bcc @good_smartport
|
||||
|
||||
ldy #@noSmartPortlen
|
||||
- lda @s_noSmartPort,y
|
||||
sta $6AE,y
|
||||
dey
|
||||
bpl -
|
||||
@hang2 bmi @hang2
|
||||
@s_noSmartPort !scrxor $80,"REQUIRES SMARTPORT HARD DISK"
|
||||
@noSmartPortlen=(*-@s_noSmartPort)-1
|
||||
|
||||
@good_smartport
|
||||
|
||||
; overwrite ProDOS IRQ handler
|
||||
sei
|
||||
|
||||
@@ -481,18 +481,10 @@ iterdevice
|
||||
lda (scratchlo), y
|
||||
beq -
|
||||
|
||||
set_slot stx slot1 + 2
|
||||
stx slot2 + 2
|
||||
set_slot stx slot + 2
|
||||
stx unrentry + 2
|
||||
slot1 ldx $cfff
|
||||
slot ldx $cfff
|
||||
stx unrentry + 1
|
||||
|
||||
slot2 lda $cf02,x
|
||||
eor #$85
|
||||
bne +
|
||||
sec
|
||||
rts
|
||||
+
|
||||
!if enable_floppy = 1 {
|
||||
php
|
||||
} ;enable_floppy = 1
|
||||
@@ -607,7 +599,7 @@ slot2 lda $cf02,x
|
||||
|
||||
iterunit inc unrunit2
|
||||
bne +
|
||||
ldx slot1 + 2
|
||||
ldx slot + 2
|
||||
jmp iterdevice
|
||||
+ lda #0
|
||||
sta readbuff + $205 ;compensate for unreliable SmartPort error condition
|
||||
|
||||
Reference in New Issue
Block a user