fixed check_syntax(), "break xram r 0x7654" did not work.
[fw/sdcc] / src / asm.c
index 66e8d20195a34280569778f7b7d277b99ef9379f..e1da90635b4053881b8fbf7f67ea14d302cda3f0 100644 (file)
--- a/src/asm.c
+++ b/src/asm.c
@@ -402,14 +402,14 @@ static const ASM_MAPPING _xa_asm_mapping[] =
   {"dbs", ".db \"%s\""},
   {"dw", ".dw"},
   {"dws", ".dw %s"},
-  {"constbyte", "0%02xh"},
-  {"constword", "0%04xh"},
-  {"immedword", "#0%04Xh"},
-  {"immedbyte", "#0%02Xh"},
+  {"constbyte", "0x%02x"},
+  {"constword", "0x%04x"},
+  {"immedword", "0x%04x"},
+  {"immedbyte", "0x%02x"},
   {"hashedstr", "#%s"},
   {"lsbimmeds", "#<%s"},
   {"msbimmeds", "#>%s"},
-  {"module", ".module %s"},
+  {"module", ".module %s"},
   {"global", ".globl %s"},
   {"fileprelude", ""},
   {"functionheader",