Trying to make parser to correctly handle CS

This commit is contained in:
Godzil
2018-09-18 18:50:13 +01:00
parent 0abbce6f4e
commit 7687c2b7d2
4 changed files with 128 additions and 9 deletions

View File

@@ -3,9 +3,9 @@
#include <vector>
struct PROG /* Loaded program image parameters */
{
int16_t initCS=0;
int16_t initIP=0; /* These are initial load values */
int16_t initSS=0; /* Probably not of great interest */
uint16_t initCS=0;
uint16_t initIP=0; /* These are initial load values */
uint16_t initSS=0; /* Probably not of great interest */
uint16_t initSP=0;
bool fCOM=false; /* Flag set if COM program (else EXE)*/
int cReloc=0; /* No. of relocation table entries */

View File

@@ -11,7 +11,7 @@
struct STATE
{
uint32_t IP; /* Offset into Image */
int16_t r[INDEX_BX_SI]; /* Value of segs and AX */
uint16_t r[INDEX_BX_SI]; /* Value of segs and AX */
bool f[INDEX_BX_SI]; /* True if r[.] has a value */
struct
{ /* For case stmt indexed reg */