move fixed global constants defining segments into dos.cpp and make them

variables. We're going to allow for dynamic mapping later.
This commit is contained in:
Jonathan Campbell 2014-01-18 16:56:36 -08:00
parent 1754a6caf5
commit fa43e4b203
2 changed files with 28 additions and 0 deletions

View File

@ -108,6 +108,7 @@ extern Bitu DOS_FILES;
#define DOS_DEVICES 10
#if 0 /* ORIGINAL DEFINES FOR REFERENCE */
// dos swappable area is 0x320 bytes beyond the sysvars table
// device driver chain is inside sysvars
#define DOS_INFOBLOCK_SEG 0x80 // sysvars (list of lists)
@ -122,6 +123,21 @@ extern Bitu DOS_FILES;
#define DOS_PRIVATE_SEGMENT 0xc800
#define DOS_PRIVATE_SEGMENT_END 0xd000
#endif
// dos swappable area is 0x320 bytes beyond the sysvars table
// device driver chain is inside sysvars
extern Bit16u DOS_INFOBLOCK_SEG;// 0x80 // sysvars (list of lists)
extern Bit16u DOS_CONDRV_SEG;// 0xa0
extern Bit16u DOS_CONSTRING_SEG;// 0xa8
extern Bit16u DOS_SDA_SEG;// 0xb2 // dos swappable area
extern Bit16u DOS_SDA_OFS;// 0
extern Bit16u DOS_CDS_SEG;// 0x108
extern Bit16u DOS_FIRST_SHELL;// 0x118
extern Bit16u DOS_MEM_START;// 0x158 // regression to r3437 fixes nascar 2 colors
extern Bit16u DOS_PRIVATE_SEGMENT;// 0xc800
extern Bit16u DOS_PRIVATE_SEGMENT_END;// 0xd000
/* internal Dos Tables */

View File

@ -32,6 +32,18 @@
#include "serialport.h"
#include "dos_network.h"
Bit16u DOS_INFOBLOCK_SEG=0x80; // sysvars (list of lists)
Bit16u DOS_CONDRV_SEG=0xa0;
Bit16u DOS_CONSTRING_SEG=0xa8;
Bit16u DOS_SDA_SEG=0xb2; // dos swappable area
Bit16u DOS_SDA_OFS=0;
Bit16u DOS_CDS_SEG=0x108;
Bit16u DOS_FIRST_SHELL=0x118;
Bit16u DOS_MEM_START=0x158; // regression to r3437 fixes nascar 2 colors
Bit16u DOS_PRIVATE_SEGMENT=0xc800;
Bit16u DOS_PRIVATE_SEGMENT_END=0xd000;
DOS_Block dos;
DOS_InfoBlock dos_infoblock;