fix GS detection

This commit is contained in:
4am 2020-04-27 11:43:16 -04:00
parent 5731dfbf27
commit 7b495a9982
2 changed files with 9 additions and 8 deletions

View File

@ -17,7 +17,7 @@
;~7400...... - program data (approximate)
;
kPitchDarkBinaryAddress = $3F2D
kPitchDarkBinaryAddress = $3F24
kGameInfoBuffer = $0800 ; used by LoadGameInfo
kProDOSFileBuffer = $1C00 ; 1K buffer for ProDOS MLI calls

View File

@ -70,15 +70,16 @@
bne @findVidHD
;------------------------------------------------------------------------------
; detect IIGS by running CPU-specific magic
; detect IIGS
;------------------------------------------------------------------------------
!cpu 65816
rep #2 ; clear Z flag on 65816 only
!cpu 65c02
beq + ; skip GS-specific code on non-GS machines (required, will crash on //c, grr)
@setSHR
inc WeCanHazSHR+1
lda $FBB3
cmp #$06
bne +
sec
jsr $FE1F ; check for IIgs (allows super hi-res artwork)
bcs +
@setSHR inc WeCanHazSHR+1
+
;------------------------------------------------------------------------------