build_mmc_cmd_map ();
- _device_id = 1;
+ _receive_device_id = 0;
+ _send_device_id = 0x7f;
if ((parser = _port.input()) != 0) {
parser->mmc.connect
}
void
-MachineControl::set_device_id (byte id)
+MachineControl::set_receive_device_id (byte id)
+{
+ _receive_device_id = id & 0x7f;
+}
+void
+MachineControl::set_send_device_id (byte id)
{
- _device_id = id & 0x7f;
+ _send_device_id = id & 0x7f;
}
bool
*/
#if 0
- cerr << "*** MMC message: len = " << len << "\n\t";
+ cerr << "*** me = " << (int) _receive_device_id << " MMC message: len = " << len << "\n\t";
for (size_t i = 0; i < len; i++) {
cerr << hex << (int) msg[i] << dec << ' ';
}
cerr << endl;
#endif
- if (msg[1] != 0x7f && msg[1] != _device_id) {
+ if (msg[1] != 0x7f && msg[1] != _receive_device_id) {
return;
}