mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
02979: All sets in m10.c: Dialog box on all sets in m10.c
This commit is contained in:
parent
5a77081209
commit
61e96795e1
@ -124,18 +124,20 @@ Notes (couriersud)
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
#define DEBUG (1)
|
#define DEBUG (0)
|
||||||
|
|
||||||
|
#define LOG(x...) do { if (DEBUG) printf(x); } while (0)
|
||||||
|
|
||||||
static WRITE8_DEVICE_HANDLER(ic8j1_output_changed)
|
static WRITE8_DEVICE_HANDLER(ic8j1_output_changed)
|
||||||
{
|
{
|
||||||
printf("ic8j1: %d %d\n", data, video_screen_get_vpos(device->machine->primary_screen));
|
LOG("ic8j1: %d %d\n", data, video_screen_get_vpos(device->machine->primary_screen));
|
||||||
cpu_set_input_line(device->machine->cpu[0], 0, !data ? CLEAR_LINE : ASSERT_LINE);
|
cpu_set_input_line(device->machine->cpu[0], 0, !data ? CLEAR_LINE : ASSERT_LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static WRITE8_DEVICE_HANDLER(ic8j2_output_changed)
|
static WRITE8_DEVICE_HANDLER(ic8j2_output_changed)
|
||||||
{
|
{
|
||||||
/* written from /Q to A with slight delight */
|
/* written from /Q to A with slight delight */
|
||||||
printf("ic8j2: %d\n", data);
|
LOG("ic8j2: %d\n", data);
|
||||||
ttl74123_a_w(device, 0, data);
|
ttl74123_a_w(device, 0, data);
|
||||||
ttl74123_a_w(devtag_get_device(device->machine, TTL74123, "ic8j1"), 0, data);
|
ttl74123_a_w(devtag_get_device(device->machine, TTL74123, "ic8j1"), 0, data);
|
||||||
}
|
}
|
||||||
@ -463,8 +465,8 @@ static WRITE8_HANDLER( m15_a100_w )
|
|||||||
|
|
||||||
static READ8_HANDLER( m10_a700_r )
|
static READ8_HANDLER( m10_a700_r )
|
||||||
{
|
{
|
||||||
//printf("rd:%d\n",video_screen_get_vpos(space->machine->primary_screen));
|
//LOG("rd:%d\n",video_screen_get_vpos(space->machine->primary_screen));
|
||||||
printf("clear\n");
|
LOG("clear\n");
|
||||||
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 0);
|
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 0);
|
||||||
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 1);
|
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 1);
|
||||||
return 0x00;
|
return 0x00;
|
||||||
@ -472,9 +474,9 @@ static READ8_HANDLER( m10_a700_r )
|
|||||||
|
|
||||||
static READ8_HANDLER( m11_a700_r )
|
static READ8_HANDLER( m11_a700_r )
|
||||||
{
|
{
|
||||||
//printf("rd:%d\n",video_screen_get_vpos(space->machine->primary_screen));
|
//LOG("rd:%d\n",video_screen_get_vpos(space->machine->primary_screen));
|
||||||
//cpu_set_input_line(space->machine->cpu[0], 0, CLEAR_LINE);
|
//cpu_set_input_line(space->machine->cpu[0], 0, CLEAR_LINE);
|
||||||
printf("clear\n");
|
LOG("clear\n");
|
||||||
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 0);
|
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 0);
|
||||||
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 1);
|
ttl74123_clear_w(devtag_get_device(space->machine, TTL74123, "ic8j1"), 0, 1);
|
||||||
return 0x00;
|
return 0x00;
|
||||||
|
Loading…
Reference in New Issue
Block a user