The flag is 32 bits, and if we read 64/128 bits then we get fragments of
S1 too and can accidentally send an error. Fixes #84.
case 1:
{
- unsigned result = gs.dr_read(SLOT_DATA_LAST);
+ unsigned result = gs.dr_read32(DEBUG_RAM_SIZE / 4 - 1);
if (result) {
gs.send_packet("E03");
return true;
case 1:
{
- unsigned result = gs.dr_read(SLOT_DATA_LAST);
+ unsigned result = gs.dr_read32(DEBUG_RAM_SIZE / 4 - 1);
if (result) {
gs.send_packet("E03");
return true;