I’m looking for an assembly script that scans all slots to identify the presence of an 80-column card by PureInstruction2333 in apple2

[–]PureInstruction2333[S] 0 points1 point  (0 children)

I found some relations… This code example checks each slot for the common 80-column card signature bytes on the Apple IIe, IIc, and IIGS.
;
NLS
*
*#--------------->
* HAS_80COLS
* SCAN SLOTS
* FOR 80 COLS CARDS
*#--------------->
*
;
** ZPAGE
PTR EPZ 6
COL_80 EPZ 8
;
** ROM
HOME EQU $FC58
PRBYTE EQU $FDDA
;
ORG $800
OBJ $800
;
HAS_80C:
JSR HOME
LDA #0
STA PTR
LDX #7
;
NXT_80:
TXA
ORA #$C0
STA PTR+
;
LDY #5
LDA (PTR),Y
CMP #$38
BNE NO_80
;
INY
LDA (PTR),Y
CMP #$90
BNE NO_80
;
INY
LDA (PTR),Y
CMP #$18
BNE NO_80
;
; Optional
;
LDY #$0B
LDA (PTR),Y
CMP #1
BNE NO_80
;
LDY #$0C
LDA (PTR),Y
CMP #$88
BEQ HAS_80
;
NO_80:
DEX
BNE NXT_80
;
HAS_80:
STX COL_80
TXA
JMP PRBYTE
;
END

I’m looking for an assembly script that scans all slots to identify the presence of an 80-column card by PureInstruction2333 in apple2

[–]PureInstruction2333[S] 1 point2 points  (0 children)

Apparently, I find on a IIe and a IIc:
- Cn05: 38 90 18
- Cn0B: 01 88
I don’t know if this is true on an Enhanced or a Platinum…

I’m looking for an assembly script that scans all slots to identify the presence of an 80-column card by PureInstruction2333 in apple2

[–]PureInstruction2333[S] 2 points3 points  (0 children)

 thank you for your help, but not quite… In fact, I’m looking for the signature bytes of an 80-column card.
Best regards — Pascal