Mercurial > hg > Members > kono > os9 > sbc09
view src/v09.h @ 177:3770e86114aa
TL/1 fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Apr 2019 04:27:18 +0900 |
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);