1
0
Fork 0

add truemem field, correct reported memory for tandy (Transsylvania/TandyDOS)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2415
This commit is contained in:
Sebastian Strohhäcker 2005-12-17 16:28:18 +00:00
parent b9bba72519
commit 7c919537f0
2 changed files with 9 additions and 2 deletions

View file

@ -30,6 +30,7 @@
#define BIOS_CONFIGURATION 0x410
/* 0x412 is reserved */
#define BIOS_MEMORY_SIZE 0x413
#define BIOS_TRUE_MEMORY_SIZE 0x415
/* #define bios_expansion_memory_size (*(unsigned int *) 0x415) */
#define BIOS_KEYBOARD_STATE 0x417
#define BIOS_KEYBOARD_FLAGS1 BIOS_KEYBOARD_STATE

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: bios.cpp,v 1.53 2005-12-04 21:17:29 c2woody Exp $ */
/* $Id: bios.cpp,v 1.54 2005-12-17 16:28:18 c2woody Exp $ */
#include "dosbox.h"
#include "mem.h"
@ -835,7 +835,13 @@ public:
/* INT 12 Memory Size default at 640 kb */
callback[2].Install(&INT12_Handler,CB_IRET,"Int 12 Memory");
callback[2].Set_RealVec(0x12);
mem_writew(BIOS_MEMORY_SIZE,640);
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);
else mem_writew(BIOS_MEMORY_SIZE,640);
mem_writew(BIOS_TRUE_MEMORY_SIZE,640);
} else mem_writew(BIOS_MEMORY_SIZE,640);
/* INT 13 Bios Disk Support */
BIOS_SetupDisks();