Mercurial > repos > blastem
comparison sms.c @ 1643:6909c5d0bbb5
Removed old VDP debug functionality
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Nov 2018 19:26:57 -0800 |
parents | 3602f3b20072 |
children | b7ecd0d6a77b 395f684c5379 |
comparison
equal
deleted
inserted
replaced
1642:c6b2c0f8cc61 | 1643:6909c5d0bbb5 |
---|---|
449 } | 449 } |
450 | 450 |
451 static void inc_debug_mode(system_header *system) | 451 static void inc_debug_mode(system_header *system) |
452 { | 452 { |
453 sms_context *sms = (sms_context *)system; | 453 sms_context *sms = (sms_context *)system; |
454 sms->vdp->debug++; | 454 vdp_inc_debug_mode(sms->vdp); |
455 if (sms->vdp->debug == 7) { | |
456 sms->vdp->debug = 0; | |
457 } | |
458 } | |
459 | |
460 static void inc_debug_pal(system_header *system) | |
461 { | |
462 sms_context *sms = (sms_context *)system; | |
463 sms->vdp->debug_pal++; | |
464 if (sms->vdp->debug_pal == 4) { | |
465 sms->vdp->debug_pal = 0; | |
466 } | |
467 } | 455 } |
468 | 456 |
469 static void load_save(system_header *system) | 457 static void load_save(system_header *system) |
470 { | 458 { |
471 //TODO: Implement me | 459 //TODO: Implement me |
599 sms->header.free_context = free_sms; | 587 sms->header.free_context = free_sms; |
600 sms->header.get_open_bus_value = get_open_bus_value; | 588 sms->header.get_open_bus_value = get_open_bus_value; |
601 sms->header.request_exit = request_exit; | 589 sms->header.request_exit = request_exit; |
602 sms->header.soft_reset = soft_reset; | 590 sms->header.soft_reset = soft_reset; |
603 sms->header.inc_debug_mode = inc_debug_mode; | 591 sms->header.inc_debug_mode = inc_debug_mode; |
604 sms->header.inc_debug_pal = inc_debug_pal; | |
605 sms->header.gamepad_down = gamepad_down; | 592 sms->header.gamepad_down = gamepad_down; |
606 sms->header.gamepad_up = gamepad_up; | 593 sms->header.gamepad_up = gamepad_up; |
607 sms->header.mouse_down = mouse_down; | 594 sms->header.mouse_down = mouse_down; |
608 sms->header.mouse_up = mouse_up; | 595 sms->header.mouse_up = mouse_up; |
609 sms->header.mouse_motion_absolute = mouse_motion_absolute; | 596 sms->header.mouse_motion_absolute = mouse_motion_absolute; |