80 Col Card

3 posts / 0 new
Last post
Mot
Offline
Last seen: 17 years 10 months ago
Joined: Jun 4 2006 - 13:29
Posts: 2
80 Col Card

First, sorry my english is bad. My Question: On which way I can check out in Assembler that is an 80Col Card in the AppleII/II+/IIe.
I write an Program that need the 80 Col Card and must be stop is no there. And I want that this program run on all AppleII.
Have somewhere an assemblerroutine or an example that can this check out correct.

Many thanks for answer
Mot

mmphosis's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: Aug 18 2005 - 16:26
Posts: 433
finding that card ASM sample code

; This will only work for the particular 80Col Card(s) that you have or know about:

; Go through each slot's ROM to look for signature bytes of the 80Col Card. (This is how the AUTOSTART ROM finds the Disk II Controller Card.)

LDY #$00
STY $00
LDX #$C8 ; start with slot 7 ROM
loop
DEX
CPX #$C0
BEQ nocardfound
STX $01
; check signature byte
LDY #signaturebyteoffset
LDY ($00),Y
CMP #$signaturebyte
BNE loop
; check another signature byte
LDY #signaturebyte2offset
LDY ($00),Y
CMP #$signaturebyte2
BNE loop
; TODO:
; - add in as many signature byte comparisons as you need
; - modify to search for many types of 80 column cards
; using signature tables for each card
; .
; .
; .
cardfound
; indicate that a card was found

nocardfound
RTS

Mot
Offline
Last seen: 17 years 10 months ago
Joined: Jun 4 2006 - 13:29
Posts: 2
finding that card

Many thanks for your fast help mmphosis
Mot

Log in or register to post comments