comparison v09.h @ 0:9a224bd9b45f

os9 emulation
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 02 Jul 2018 02:12:31 +0900
parents
children 831ac057ea86
comparison
equal deleted inserted replaced
-1:000000000000 0:9a224bd9b45f
1 /* v09.h
2 This file is part of the 6809 simulator v09
3
4 created 1994 by L.C. Benschop.
5 copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details.
6 license: GNU General Public License version 2, see LICENSE for more details.
7
8 */
9
10 typedef unsigned char Byte;
11 typedef unsigned short Word;
12
13 /* 6809 registers */
14 engine Byte ccreg,dpreg;
15 engine Word xreg,yreg,ureg,sreg,ureg,pcreg;
16
17 engine Byte d_reg[2];
18 extern Word *dreg;
19 extern Byte *breg,*areg;
20
21 /* 6809 memory space */
22 #ifdef MSDOS
23 engine Byte * mem;
24 #else
25 engine Byte mem[65536];
26 #endif
27
28 engine volatile int tracing,attention,escape,irq;
29 engine Word tracehi,tracelo;
30 engine char escchar;
31 engine int timer;
32 engine FILE *tracefile;
33
34 #define IOPAGE 0xe000
35
36 void interpr(void);
37 void do_exit(void);
38 int do_input(int);
39 void set_term(char);
40 void do_trace(FILE *);
41 void do_output(int,int);
42 void do_escape(void);
43
44