Mercurial > repos > blastem
comparison blastem.c @ 669:7a9a7c96cb22
Removed some obsolete defines
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 03 Jan 2015 18:27:29 -0800 |
parents | 5439ae7946ca |
children | f4f3e74b0ce6 |
comparison
equal
deleted
inserted
replaced
668:5439ae7946ca | 669:7a9a7c96cb22 |
---|---|
449 } | 449 } |
450 return vdp_port & 1 ? ret : ret >> 8; | 450 return vdp_port & 1 ? ret : ret >> 8; |
451 } | 451 } |
452 | 452 |
453 uint32_t zram_counter = 0; | 453 uint32_t zram_counter = 0; |
454 #define Z80_ACK_DELAY 3 | |
455 #define Z80_BUSY_DELAY 1//TODO: Find the actual value for this | |
456 #define Z80_REQ_BUSY 1 | |
457 #define Z80_REQ_ACK 0 | |
458 #define Z80_RES_BUSACK reset | |
459 | 454 |
460 m68k_context * io_write(uint32_t location, m68k_context * context, uint8_t value) | 455 m68k_context * io_write(uint32_t location, m68k_context * context, uint8_t value) |
461 { | 456 { |
462 genesis_context * gen = context->system; | 457 genesis_context * gen = context->system; |
463 if (location < 0x10000) { | 458 if (location < 0x10000) { |
1279 z80_assert_reset(&z_context, 0); | 1274 z80_assert_reset(&z_context, 0); |
1280 #endif | 1275 #endif |
1281 | 1276 |
1282 z_context.system = &gen; | 1277 z_context.system = &gen; |
1283 z_context.mem_pointers[0] = z80_ram; | 1278 z_context.mem_pointers[0] = z80_ram; |
1284 z_context.sync_cycle = z_context.target_cycle = mclk_target; | |
1285 z_context.int_cycle = CYCLE_NEVER; | |
1286 z_context.mem_pointers[1] = z_context.mem_pointers[2] = (uint8_t *)cart; | 1279 z_context.mem_pointers[1] = z_context.mem_pointers[2] = (uint8_t *)cart; |
1287 | 1280 |
1288 gen.z80 = &z_context; | 1281 gen.z80 = &z_context; |
1289 gen.vdp = &v_context; | 1282 gen.vdp = &v_context; |
1290 gen.ym = &y_context; | 1283 gen.ym = &y_context; |