From 39692de7228cc529ca931c28e048bb4ff83e454c Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sat, 8 May 2010 17:26:57 +0000 Subject: [PATCH] - fix typo in MC READSTATUS register; --- desmume/src/mc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: