1 // Game_Music_Emu $vers. http://www.slack.net/~ant/
2 
3 #include "Sgc_Impl.h"
4 
5 #include "blargg_endian.h"
6 //#include "z80_cpu_log.h"
7 
8 /* Copyright (C) 2009 Shay Green. This module is free software; you
9 can redistribute it and/or modify it under the terms of the GNU Lesser
10 General Public License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version. This
12 module is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 details. You should have received a copy of the GNU Lesser General Public
16 License along with this module; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
18 
19 #include "blargg_source.h"
20 
21 #define OUT_PORT(  addr, data ) cpu_out( TIME(), addr, data )
22 #define IN_PORT(   addr       ) cpu_in( addr )
23 #define WRITE_MEM( addr, data ) cpu_write( addr, data )
24 #define IDLE_ADDR               idle_addr
25 #define CPU                     cpu
26 #define RST_BASE                vectors_addr
27 
28 #define CPU_BEGIN \
29 bool Sgc_Impl::run_cpu( time_t end_time )\
30 {\
31 	cpu.set_end_time( end_time );
32 
33 	#include "Z80_Cpu_run.h"
34 
35 	return warning;
36 }
37