From 578d4edc66d62165e40be7aec45b09e48554ee0e Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 21 Mar 2011 10:55:34 +0800 Subject: should be mov not moveq when copying numbytes to register r4 --- Debugger/debug_stub.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index 0e92667..168fd80 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -907,7 +907,7 @@ _dbg__cmd_WriteMem: bne __dbg__procCmdParamError /* Number of bytes does not match argument length */ cmp r0, #CMD_MEM_MAXWRITEBYTES /* Don't overflow our buffer (2 x CMD_MEM_MAXWRITEBYTES) */ bhi __dbg__procCmdReturnInputLengthError /* Requested Length greater than buffer size, return error */ - moveq r4, r0 /* Keep numbytes in R4 */ + mov r4, r0 /* Keep numbytes in R4 */ /* FIXME: Should validate the address? */ _check_msgargument r1 bne __dbg__procCmdParamError /* Can't find ':' */ -- cgit v1.2.3