Skip to content

Commit

Permalink
Fix Bounty Bob Strikes Back issues with GTIA and patches
Browse files Browse the repository at this point in the history
  • Loading branch information
atarimacosx committed Nov 21, 2020
1 parent 9cd38d7 commit 1877721
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions atari800-MacOSX/src/gtia.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#endif
#include "pokeysnd.h"
#include "screen.h"
#include "devices.h"

/* GTIA Registers ---------------------------------------------------------- */

Expand Down Expand Up @@ -434,7 +435,7 @@ void GTIA_Frame(void)

UBYTE GTIA_GetByte(UWORD addr, int no_side_effects)
{
if (addr >= 0xd040) {
if ((Devices_enable_d_patch || Devices_enable_h_patch || Devices_enable_r_patch) && addr >= 0xd040) {
return patch_ram[addr & 0xFF];
}
switch (addr & 0x1f) {
Expand Down Expand Up @@ -597,7 +598,7 @@ UBYTE GTIA_GetByte(UWORD addr, int no_side_effects)

void GTIA_PutByte(UWORD addr, UBYTE byte)
{
if (addr >= 0xd040) {
if ((Devices_enable_d_patch || Devices_enable_h_patch || Devices_enable_r_patch) && addr >= 0xd040) {
patch_ram[addr & 0xFF] = byte;
}
#if !defined(BASIC) && !defined(CURSES_BASIC)
Expand Down

0 comments on commit 1877721

Please sign in to comment.