From f891fe36d0f7ba7e371a283379584a66eeb6f206 Mon Sep 17 00:00:00 2001 From: Colin Leroy-Mira Date: Wed, 11 Oct 2023 08:47:45 +0200 Subject: [PATCH] Do the IIgs check as documented --- libsrc/apple2/ser/a2.gs.s | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libsrc/apple2/ser/a2.gs.s b/libsrc/apple2/ser/a2.gs.s index f2dff98d1..7c4085f3c 100644 --- a/libsrc/apple2/ser/a2.gs.s +++ b/libsrc/apple2/ser/a2.gs.s @@ -314,20 +314,19 @@ SER_CLOSE: SER_OPEN: bit $C082 ; Check if this is a IIgs - lda $FE1F ; https://prodos8.com/docs/technote/misc/07/ - cmp #$60 ; Everything but the IIgs has an RTS there - bne HardwareFound + sec + jsr $FE1F ; https://prodos8.com/docs/technote/misc/07/ + bcc IIgs - ; Device (hardware) not found bit $C080 - lda #SER_ERR_NO_DEVICE + lda #SER_ERR_NO_DEVICE ; Not a IIgs SetupErrOut: cli ldx #$00 ; Promote char return value stx Opened ; Mark port closed rts -HardwareFound: +IIgs: bit $C080 sei ; Disable interrupts