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) ;~7400...... - program data (approximate)
; ;
kPitchDarkBinaryAddress = $3F2D kPitchDarkBinaryAddress = $3F24
kGameInfoBuffer = $0800 ; used by LoadGameInfo kGameInfoBuffer = $0800 ; used by LoadGameInfo
kProDOSFileBuffer = $1C00 ; 1K buffer for ProDOS MLI calls kProDOSFileBuffer = $1C00 ; 1K buffer for ProDOS MLI calls

View File

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