From dc0732f09f7600b45c1a00cc392aa7726a4ab7dc Mon Sep 17 00:00:00 2001 From: Ralf Grillenberger Date: Wed, 28 Jul 2010 20:56:12 +0000 Subject: [PATCH] Tandy: Add 16kb of DOS memory. Fixes bad graphics in Mickey's Space Adventure and Chuck Yeager's Air Combat, as well as flickering screens in Ghostbusters. Patch by ripsaw8080 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3626 --- src/dos/dos_memory.cpp | 2 +- src/ints/bios.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dos/dos_memory.cpp b/src/dos/dos_memory.cpp index 7bdd514d..e4c3627f 100644 --- a/src/dos/dos_memory.cpp +++ b/src/dos/dos_memory.cpp @@ -436,7 +436,7 @@ void DOS_SetupMemory(void) { if (machine==MCH_TANDY) { /* memory up to 608k available, the rest (to 640k) is used by the tandy graphics system's variable mapping of 0xb800 */ - mcb.SetSize(0x97FF - DOS_MEM_START - mcb_sizes); + mcb.SetSize(0x9BFF - DOS_MEM_START - mcb_sizes); } else if (machine==MCH_PCJR) { /* memory from 128k to 640k is available */ mcb_devicedummy.SetPt((Bit16u)0x2000); diff --git a/src/ints/bios.cpp b/src/ints/bios.cpp index a61bfe5d..d1e6233b 100644 --- a/src/ints/bios.cpp +++ b/src/ints/bios.cpp @@ -869,7 +869,7 @@ public: if (IS_TANDY_ARCH) { /* reduce reported memory size for the Tandy (32k graphics memory at the end of the conventional 640k) */ - if (machine==MCH_TANDY) mem_writew(BIOS_MEMORY_SIZE,608); + if (machine==MCH_TANDY) mem_writew(BIOS_MEMORY_SIZE,624); else mem_writew(BIOS_MEMORY_SIZE,640); mem_writew(BIOS_TRUE_MEMORY_SIZE,640); } else mem_writew(BIOS_MEMORY_SIZE,640);