From 9c6d8cada3b12a12779b43843d5fe7b718675261 Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 29 Jul 2019 12:00:59 -0400 Subject: [PATCH] set alternate display mode on IIgs fixes https://github.com/a2-4am/4cade/issues/4 --- src/4cade.init.a | 5 ++++- src/constants.a | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/4cade.init.a b/src/4cade.init.a index e821747c2..242d21b6f 100644 --- a/src/4cade.init.a +++ b/src/4cade.init.a @@ -19,6 +19,10 @@ bcs @no64K jsr DisableAccelerator ; set to 1 MHz (supports IIgs and many common accelerator cards) jsr IsGS ; check for IIgs (allows super hi-res artwork) + php + bcc + + jsr ROM_TEXT2COPY ; set alternate display mode on IIgs (required for some games) ++ plp ror zpMachineStatus sta SETC3ROM jsr HasVidHDCard ; check for VidHD card (allows super hi-res artwork even on non-IIgs machines) @@ -31,7 +35,6 @@ ; bit 5 = 1 if VidHD ; bit 6 = 1 if 128K ; bit 7 = 1 if joystick - +READ_ROM_WRITE_RAM2 jsr init ; initialize and relocate ProRWTS2 to $D400 in RAM bank 2 ; ProRWTS2 disk-data live at $D000-D3FF diff --git a/src/constants.a b/src/constants.a index e145fdb49..38f973dba 100644 --- a/src/constants.a +++ b/src/constants.a @@ -47,6 +47,7 @@ DHIRESOFF = $C05F ; double hi-res off switch ; ROM routines and addresses ; (prefixed because so much of the program runs from LC RAM, so don't call ; these without thinking about memory banks first) +ROM_TEXT2COPY =$F962 ; turn on alternate display mode on IIgs ROM_TEXT = $FB2F ROM_MACHINEID =$FBB3 ROM_HOME = $FC58