diff --git a/src/constants.a b/src/constants.a index d7b8714..d65910a 100644 --- a/src/constants.a +++ b/src/constants.a @@ -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 diff --git a/src/pitchdark.init.a b/src/pitchdark.init.a index 9b83c4a..b16b465 100644 --- a/src/pitchdark.init.a +++ b/src/pitchdark.init.a @@ -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 + ;------------------------------------------------------------------------------