From: sandeep Date: Fri, 23 Nov 2001 21:40:30 +0000 (+0000) Subject: Added tokens to print bytes at different offsets X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9687ad3c4c91f4780de08284393d0eb8175cdcca;p=fw%2Fsdcc Added tokens to print bytes at different offsets git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1633 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/asm.c b/src/asm.c index 6e7e1332..cfee3348 100644 --- 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} };