mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-16 05:33:29 +00:00
fix GS detection
This commit is contained in:
parent
5731dfbf27
commit
7b495a9982
@ -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
|
||||
|
@ -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
|
||||
+
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user