Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
typedef unsigned char byte;
typedef unsigned short word;
typedef unsigned long dword;
typedef struct
{
byte *cs;
byte *ds;
word cs_base;
word ds_base;
dword cs_len;
dword ds_len;
dword cs_max;
dword ds_max;
} cmd_desc;
void zero_cmd (cmd_desc *cmdfile);
void free_cmd (cmd_desc *cmdfile);
char *alloc_cmd(cmd_desc *cmdfile, long cs_len, long ds_len);
char *load_cmd(char *filename, cmd_desc *cmdfile);
char *save_cmd(char *filename, cmd_desc *cmdfile, int absolute);
word peekw(byte *base, word a);
void pokew(byte *base, word a, word v);