mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 09:39:16 +08:00
sing emulator memory for sim and restore
This commit is contained in:
parent
f412b20fc1
commit
033155e358
1 changed files with 11 additions and 1 deletions
|
@ -1123,13 +1123,23 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_LF_EM4X50_SIM: {
|
case CMD_LF_EM4X50_SIM: {
|
||||||
em4x50_sim((em4x50_data_t *)packet->data.asBytes);
|
em4x50_sim();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_LF_EM4X50_STD_READ: {
|
case CMD_LF_EM4X50_STD_READ: {
|
||||||
em4x50_std_read();
|
em4x50_std_read();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case CMD_LF_EM4X50_ESET: {
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Note: we call FpgaDownloadAndGo(FPGA_BITSTREAM_LF) here although FPGA is not
|
||||||
|
// involved in dealing with emulator memory. But if it is called later, it might
|
||||||
|
// destroy the Emulator Memory.
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
||||||
|
emlSet(packet->data.asBytes, packet->oldarg[0], packet->oldarg[1]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_ISO15693
|
#ifdef WITH_ISO15693
|
||||||
|
|
Loading…
Reference in a new issue