diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index c0c83902a..fea6bce71 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -502,7 +502,8 @@ u8 BackupDevice::data_command(u8 val, int cpu) break; case BM_CMD_READSTATUS: - com = (write_enable << 1) | (3<<2); + com = BM_CMD_READSTATUS; + val = (write_enable << 1) | (3<<2); break; case BM_CMD_WRITEENABLE: