Example #1
0
void dc_controller_device::fixed_status(UINT32 *dest)
{
	dest[0] = 0x20000000; // Controller
	dest[1] =
		((ioport(port_tag[2]) != NULL) ? 0x010000 : 0) |
		((ioport(port_tag[3]) != NULL) ? 0x020000 : 0) |
		((ioport(port_tag[4]) != NULL) ? 0x040000 : 0) |
		((ioport(port_tag[5]) != NULL) ? 0x080000 : 0) |
		((ioport(port_tag[6]) != NULL) ? 0x100000 : 0) |
		((ioport(port_tag[7]) != NULL) ? 0x200000 : 0) |
		(ioport(port_tag[0])->active_safe(0) << 8) |
		ioport(port_tag[1])->active_safe(0); // 1st function - controller
	dest[2] = 0; // No 2nd function
	dest[3] = 0; // No 3rd function
	dest[4] = 0x00ff; // Every region, no expansion
	copy_with_spaces(((UINT8 *)dest) + 18, id, 30);
	copy_with_spaces(((UINT8 *)dest) + 48, license, 60);
	dest[27] = 0x01f401ae; // standby 43mA, max 50mA
}
Example #2
0
void dc_controller_device::fixed_status(uint32_t *dest)
{
    dest[0] = 0x20000000; // Controller
    dest[1] =
        ((port[2] != nullptr) ? 0x010000 : 0) |
        ((port[3] != nullptr) ? 0x020000 : 0) |
        ((port[4] != nullptr) ? 0x040000 : 0) |
        ((port[5] != nullptr) ? 0x080000 : 0) |
        ((port[6] != nullptr) ? 0x100000 : 0) |
        ((port[7] != nullptr) ? 0x200000 : 0) |
        ((port[0] ? port[0]->active() : 0) << 8) |
        (port[1] ? port[1]->active() : 0); // 1st function - controller
    dest[2] = 0; // No 2nd function
    dest[3] = 0; // No 3rd function
    dest[4] = 0x00ff; // Every region, no expansion
    copy_with_spaces(((uint8_t *)dest) + 18, id, 30);
    copy_with_spaces(((uint8_t *)dest) + 48, license, 60);
    dest[27] = 0x01f401ae; // standby 43mA, max 50mA
}
Example #3
0
void dc_controller_device::free_status(UINT32 *dest)
{
	copy_with_spaces((UINT8 *)dest, versions, 80);
}
Example #4
0
void dc_controller_device::free_status(uint32_t *dest)
{
    copy_with_spaces((uint8_t *)dest, versions, 80);
}