#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 static void SetMemWW(unsigned long address, unsigned short value) { address &= MEMADDRMASK; WriteW(address, value); /* if (address= ROMBASE2) program[i].offset= (((unsigned)rombase)+ROMBASE2)-program[i].low_addr; //else // program[i].offset= ((unsigned)membase) - (i*MEMSIZE); } #ifdef ALL_IN_RAM program[0].offset= ((unsigned)mem1base) ; #else program[0].offset= ((unsigned)0) ; #endif program[1].offset= ((unsigned)mem2base - RAM1SIZE) ; // 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); m68k_init(); m68k_set_context(&context); m68k_reset(); }