Added tokens to print bytes at different offsets
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Nov 2001 21:40:30 +0000 (21:40 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Nov 2001 21:40:30 +0000 (21:40 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1633 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/asm.c

index 6e7e133263e640d2fe4b1ecd30a3f8734441bb9a..cfee3348d8dc38e651343440526c2dca32053bbf 100644 (file)
--- a/src/asm.c
+++ b/src/asm.c
@@ -331,6 +331,18 @@ static const ASM_MAPPING _asxxxx_mapping[] =
   },
   {"functionlabeldef", "%s:"},
   {"bankimmeds", "0    ; PENDING: bank support"},
+  {"los","(%s & 0xFF)"},
+  {"his","(%s >> 8)"},
+  {"hihis","(%s >> 16)"},
+  {"hihihis","(%s >> 24)"},
+  {"lod","(%d & 0xFF)"},
+  {"hid","(%d >> 8)"},
+  {"hihid","(%d >> 16)"},
+  {"hihihid","(%d >> 24)"},
+  {"lol","(%05d$ & 0xFF)"},
+  {"hil","(%05d$ >> 8)"},
+  {"hihil","(%05d$ >> 16)"},
+  {"hihihil","(%05d$ >> 24)"},
   {NULL, NULL}
 };
 
@@ -369,7 +381,7 @@ static const ASM_MAPPING _gas_mapping[] =
    "; ---------------------------------"
   },
   {"functionlabeldef", "%s:"},
-  {"bankimmeds", "0    ; PENDING: bank support"},
+  {"bankimmeds", "0    ; PENDING: bank support"},  
   {NULL, NULL}
 };