mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 17:04:19 +00:00
Upload
Digital Research
This commit is contained in:
138
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v101/ddt/ddtinc.h
Normal file
138
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v101/ddt/ddtinc.h
Normal file
@@ -0,0 +1,138 @@
|
||||
/********************************************************/
|
||||
/* */
|
||||
/* Stuff to INCLUDE in DDT-68K */
|
||||
/* */
|
||||
/********************************************************/
|
||||
|
||||
#define MAXBP 10 /* max breakpoints allowed */
|
||||
#define ILLEGAL 0x4AFC /* ILLEGAL instruction */
|
||||
#define BDOSCALL 0x4E42 /* TRAP #2 instruction */
|
||||
#define BIOSCALL 0x4E43 /* TRAP #3 instruction */
|
||||
#define BUFLEN 85 /* command buffer length */
|
||||
|
||||
#define GETSEP getsep(&cx)
|
||||
|
||||
struct bytestr { char memb; };
|
||||
struct wordstr { int memw; };
|
||||
struct longstr { long meml; };
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Define the CPU Status Structure and Related Tables */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
|
||||
struct cpustate {
|
||||
long pc;
|
||||
long usp;
|
||||
long ssp;
|
||||
int status;
|
||||
long dreg[8];
|
||||
long areg[8];
|
||||
};
|
||||
|
||||
#define TRACE 0x8000
|
||||
#define SUPER 0x2000
|
||||
#define INTMSK 0x0700
|
||||
#define EXTEND 0x0010
|
||||
#define NEG 0x0008
|
||||
#define ZERO 0x0004
|
||||
#define OFLOW 0x0002
|
||||
#define CARRY 0x0001
|
||||
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Define FCB Structure */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
|
||||
struct fcb {
|
||||
char dr; /* drive code */
|
||||
char fn[8]; /* file name */
|
||||
char t[3]; /* file type */
|
||||
char ex; /* extent */
|
||||
char s1; /* used by sys */
|
||||
char s2; /* used by sys */
|
||||
char rc; /* rec count */
|
||||
char d[16]; /* used by sys */
|
||||
char cr; /* curr rec no */
|
||||
char r[3]; /* rand rec no */
|
||||
};
|
||||
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Base Page Structure */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
|
||||
struct basepage {
|
||||
long lowtpa; /* low address of tpa */
|
||||
long hightpa; /* high address of tpa */
|
||||
long csstart; /* start of code seg */
|
||||
long cslen; /* length of code seg */
|
||||
long dsstart; /* start of data seg */
|
||||
long dslen; /* length of data seg */
|
||||
long bsstart; /* start of bss seg */
|
||||
long bslen; /* length of bss seg */
|
||||
long freelen; /* free mem after bss */
|
||||
long reserved[5];
|
||||
struct fcb fcb2;
|
||||
struct fcb fcb1;
|
||||
char comtail[80];
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* Define a structure for holding information about the most */
|
||||
/* recently loaded program or file */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
struct value {
|
||||
int kind; /* 0 => none, 1 => pgm, 2 => file */
|
||||
long textbase; /* if kind==2 then use textseg for file */
|
||||
long textlen;
|
||||
long database;
|
||||
long datalen;
|
||||
long bssbase;
|
||||
long bsslen;
|
||||
long bpa;
|
||||
long initstk;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* Define the Load Program Parameter Block */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
struct lpb {
|
||||
struct fcb *fcbaddr;
|
||||
long tpabase;
|
||||
long tpatop;
|
||||
long *bpaddr;
|
||||
long stkinit;
|
||||
int flags;
|
||||
};
|
||||
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Some Forward Function Definitions */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
|
||||
char *readcom();
|
||||
char hexchar();
|
||||
short int getform();
|
||||
long int GETSSP();
|
||||
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user