From e77f061f50a25ac3dcbfb245f4c61fde2e7505ed Mon Sep 17 00:00:00 2001 From: TC Wan Date: Tue, 30 Nov 2010 13:24:12 +0800 Subject: initial get register handler Implemented Get Register Handler --- AT91SAM7S256/Debugger/debug_comm.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AT91SAM7S256/Debugger/debug_comm.S') diff --git a/AT91SAM7S256/Debugger/debug_comm.S b/AT91SAM7S256/Debugger/debug_comm.S index d6eaaa8..af69391 100644 --- a/AT91SAM7S256/Debugger/debug_comm.S +++ b/AT91SAM7S256/Debugger/debug_comm.S @@ -89,7 +89,7 @@ hex2char_lut: hex2char: stmfd sp!, {r1,lr} - and r0, #0x000F /* make sure that input is sane */ + and r0, #NIBBLE0 /* make sure that input is sane */ _hex2char r0, r1 ldmfd sp!, {r1,pc} @@ -100,7 +100,7 @@ hex2char: .global char2hex char2hex: - and r0, #0x00FF /* make sure that input is sane */ + and r0, #BYTE0 /* make sure that input is sane */ cmp r0, #'0' blo exit_char2hex cmp r0, #'F' -- cgit v1.2.3