	    /* SIMULATION OF 8085 USING C */


#define DETECT 0

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <malloc.h>
 int reg[8],rf[8],rsp,rpc;     /* rsp_STACK_POINTER  rpc_PROGRAM_COUNTER */
 int gdriver=DETECT,gmode;
 char pglob[100];
 int *memory_buffer;
 int dflag;
 int window_flag = 1;


#define MAX_PORTS 9
#define XREF 30
#define YREF 180
#define XLIM 320
#define YLIM 160


#define SIGNAL_COLOUR 5



#define NORMAL_RUN_MODE 0
#define TRACE_MODE 1
#define DEMO_MODE_ONE 2
#define DEMO_MODE_TWO 3


#include "function_headers.h"
#include "xwin.h"
#include "conio.h"
#include "code_text.c"
#include "cro.c"
#include "decorate.c"
#include "demo.c"
#include "edit_adr.c"
#include "editor_commands.c"
#include "help.c"
#include "show_trace.c"

#include "add_c_i.c"
#include "ana_xra.c"
#include "bylessfour.c"
#include "call_c_n.c"
#include "halt.c"
#include "jmp_c_n.c"
#include "mov.c"
#include "ora_cmp.c"
#include "ret_c_n.c"
#include "sub_b_i.c"

#include "run_processor.c"
#include "mem.c"
#include "memory_mode.c"
#include "modify_registers.c"
#include "rom_txt.c"
#include "set_flags.c"
