comparison transz80.c @ 316:fd7c24b97ebf

Add YM2612 stubs to transz80
author Mike Pavone <pavone@retrodev.com>
date Thu, 09 May 2013 20:59:49 -0700
parents 5f1b68cecfc7
children 140af5509ce7
comparison
equal deleted inserted replaced
315:684e71e9f0d0 316:fd7c24b97ebf
11 #define MCLKS_PER_Z80 15 11 #define MCLKS_PER_Z80 15
12 //TODO: Figure out the exact value for this 12 //TODO: Figure out the exact value for this
13 #define MCLKS_PER_FRAME (MCLKS_LINE*262) 13 #define MCLKS_PER_FRAME (MCLKS_LINE*262)
14 #define VINT_CYCLE ((MCLKS_LINE * 226)/MCLKS_PER_Z80) 14 #define VINT_CYCLE ((MCLKS_LINE * 226)/MCLKS_PER_Z80)
15 #define CYCLE_NEVER 0xFFFFFFFF 15 #define CYCLE_NEVER 0xFFFFFFFF
16
17 uint8_t z80_read_ym(uint16_t location, z80_context * context)
18 {
19 return 0xFF;
20 }
21
22 z80_context * z80_write_ym(uint16_t location, z80_context * context, uint8_t value)
23 {
24 return context;
25 }
16 26
17 int main(int argc, char ** argv) 27 int main(int argc, char ** argv)
18 { 28 {
19 long filesize; 29 long filesize;
20 uint8_t *filebuf; 30 uint8_t *filebuf;