Mercurial > hg > Members > kono > os9 > sbc09
view src/v09.h @ 160:1a30cd6e5973
move mc09 to top
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 05 Feb 2019 09:03:07 +0900 (2019-02-05) |
parents | 2088fd998865 |
children |
line wrap: on
line source
/* v09.h This file is part of the 6809 simulator v09 created 1994 by L.C. Benschop. copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details. license: GNU General Public License version 2, see LICENSE for more details. */ #include <stdio.h> typedef unsigned char Byte; typedef unsigned short Word; /* 6809 registers */ engine Byte ccreg,dpreg; engine Word xreg,yreg,ureg,sreg,ureg,pcreg; engine Byte d_reg[2]; extern Word *dreg; extern Byte *breg,*areg; engine long memsize; engine long rommemsize; engine Byte * mmu; /* 6809 memory space */ #ifdef USE_MMU engine Byte * phymem; engine Byte * mem; #else #ifdef MSDOS engine Byte * mem; #else engine Byte mem[65536]; #endif #endif engine volatile int tracing,attention,escape,irq; engine int timerirq; engine Word tracehi,tracelo; engine char escchar; engine int timer; engine FILE *tracefile; #ifndef IOPAGE #define IOPAGE 0xe000 #endif void interpr(void); void do_exit(void); int do_input(int); void set_term(char); void do_trace(FILE *); void do_output(int,int); void do_escape(void);