#include #include #include #include #include "dcastaway.h" #include "mem.h" #include "st.h" #include "m68k_intrf.h" #ifdef DEBUG_FAME FILE *fame_debug_file=stdout; unsigned fame_debug_count=0; #ifdef DEBUG_FAME_START int fame_debug_output=0; #else int fame_debug_output=1; #endif #endif #ifdef DEBUG_FAME #include "dis.h" #endif char GetMemB(unsigned long address); short GetMemW(unsigned long address); long GetMemL(unsigned long address); void SetMemB(unsigned long address, unsigned char value); void SetMemW(unsigned long address, unsigned short value); void SetMemL(unsigned long address, unsigned long value); static void SetMemWW(unsigned long address, unsigned short value) { address &= MEMADDRMASK; if (address= ROMBASE2) program[i].offset= (((unsigned)rombase)+ROMBASE2)-program[i].low_addr; //else // program[i].offset= ((unsigned)membase) - (i*MEMSIZE); } program[0].offset= ((unsigned)membase) ; program[1].offset= ((unsigned)membase2 - MEM1SIZE) ; #ifndef FAME_SINGLE_MEMORY // read8[0].data=read16[0].data=write8[0].data=write16[0].data=(void *)((unsigned)membase); read8[2].data=read16[2].data=(void *)((unsigned)rombase); // read8[0].data=read16[0].data=write8[0].data=write16[0].data=(void *)((unsigned)membase); // read8[1].data=read16[1].data=write8[1].data=write16[1].data=(void *)((unsigned)membase2-MEM1SIZE); // read8[3].data=read16[3].data=(void *)((unsigned)rombase); #endif m68k_init(); m68k_set_context(&context); m68k_reset(); }