Mercurial > hg > Members > kono > os9 > sbc09
annotate v09.h @ 56:4fa2bdb0c457
level vrbf and clock
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Jul 2018 10:52:33 +0900 |
parents | 8d151f303bee |
children |
rev | line source |
---|---|
0 | 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 | |
44
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
10 #include <stdio.h> |
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
11 |
0 | 12 typedef unsigned char Byte; |
13 typedef unsigned short Word; | |
14 | |
15 /* 6809 registers */ | |
16 engine Byte ccreg,dpreg; | |
17 engine Word xreg,yreg,ureg,sreg,ureg,pcreg; | |
18 | |
19 engine Byte d_reg[2]; | |
20 extern Word *dreg; | |
21 extern Byte *breg,*areg; | |
22 | |
4 | 23 engine long memsize; |
16 | 24 engine long rommemsize; |
4 | 25 engine Byte * mmu; |
0 | 26 /* 6809 memory space */ |
4 | 27 #ifdef USE_MMU |
28 engine Byte * phymem; | |
29 engine Byte * mem; | |
30 #else | |
0 | 31 #ifdef MSDOS |
32 engine Byte * mem; | |
33 #else | |
34 engine Byte mem[65536]; | |
35 #endif | |
4 | 36 #endif |
0 | 37 |
38 engine volatile int tracing,attention,escape,irq; | |
55 | 39 engine int timerirq; |
0 | 40 engine Word tracehi,tracelo; |
41 engine char escchar; | |
42 engine int timer; | |
43 engine FILE *tracefile; | |
44 | |
3 | 45 #ifndef IOPAGE |
0 | 46 #define IOPAGE 0xe000 |
3 | 47 #endif |
0 | 48 |
49 void interpr(void); | |
50 void do_exit(void); | |
51 int do_input(int); | |
52 void set_term(char); | |
53 void do_trace(FILE *); | |
54 void do_output(int,int); | |
55 void do_escape(void); | |
56 | |
57 |