Mercurial > repos > blastem
comparison sms.c @ 2500:d44fe974fb85
Get blastem compiling with new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 30 Apr 2024 22:32:08 -0700 |
parents | 767ec72acca7 |
children | 8cf7cadc17ee |
comparison
equal
deleted
inserted
replaced
2499:d74d3998482c | 2500:d44fe974fb85 |
---|---|
476 } else { | 476 } else { |
477 exit_after -= elapsed; | 477 exit_after -= elapsed; |
478 } | 478 } |
479 } | 479 } |
480 } | 480 } |
481 #ifndef NEW_CORE | |
481 if ((system->enter_debugger || sms->z80->wp_hit) && sms->z80->pc) { | 482 if ((system->enter_debugger || sms->z80->wp_hit) && sms->z80->pc) { |
482 if (!sms->z80->wp_hit) { | 483 if (!sms->z80->wp_hit) { |
483 system->enter_debugger = 0; | 484 system->enter_debugger = 0; |
484 } | 485 } |
485 #ifndef IS_LIB | 486 #ifndef IS_LIB |
486 zdebugger(sms->z80, sms->z80->pc); | 487 zdebugger(sms->z80, sms->z80->pc); |
487 #endif | 488 #endif |
488 } | 489 } |
490 #endif | |
489 #ifdef NEW_CORE | 491 #ifdef NEW_CORE |
490 if (sms->z80->nmi_cycle == CYCLE_NEVER) { | 492 if (sms->z80->nmi_cycle == CYCLE_NEVER) { |
491 #else | 493 #else |
492 if (sms->z80->nmi_start == CYCLE_NEVER) { | 494 if (sms->z80->nmi_start == CYCLE_NEVER) { |
493 #endif | 495 #endif |
495 if (nmi != CYCLE_NEVER) { | 497 if (nmi != CYCLE_NEVER) { |
496 z80_assert_nmi(sms->z80, nmi); | 498 z80_assert_nmi(sms->z80, nmi); |
497 } | 499 } |
498 } | 500 } |
499 | 501 |
502 #ifndef NEW_CORE | |
500 if (system->enter_debugger || sms->z80->wp_hit) { | 503 if (system->enter_debugger || sms->z80->wp_hit) { |
501 target_cycle = sms->z80->Z80_CYCLE + 1; | 504 target_cycle = sms->z80->Z80_CYCLE + 1; |
502 } | 505 } |
506 #endif | |
503 z80_run(sms->z80, target_cycle); | 507 z80_run(sms->z80, target_cycle); |
504 if (sms->z80->reset) { | 508 if (sms->z80->reset) { |
505 z80_clear_reset(sms->z80, sms->z80->Z80_CYCLE + 128*15); | 509 z80_clear_reset(sms->z80, sms->z80->Z80_CYCLE + 128*15); |
506 } | 510 } |
507 target_cycle = sms->z80->Z80_CYCLE; | 511 target_cycle = sms->z80->Z80_CYCLE; |