diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-24 06:19:28 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-24 06:19:28 +0200 |
| commit | d5577a84aadd0195a95b5b4d83e49b40af49425b (patch) | |
| tree | 39ef608e0743b5e2fdc09fa9f3bc113272a5713c /src/SDCCasm.c | |
| parent | 8eeb5d5444b2f29aa56fb1f0f8f20955c160e99e (diff) | |
| download | sdcc-gas-d5577a84aadd0195a95b5b4d83e49b40af49425b.tar.gz | |
Got hi8/lo8 asm instructions working
GNU as does not support the #</#> notation asxxx uses to determine
address LSB and MSB. Instead, two instructions have been created on
GNU as and ld (see my stm8-binutils-gdb fork) for this purpose.
On the other hand, I'm upset to see gen.c does not provide an
assembler-agnostic implementation when SDCCasm.c already provides
tools already meant for this.
OTOH, support for the "-C" has been added for --gas.
Diffstat (limited to 'src/SDCCasm.c')
| -rw-r--r-- | src/SDCCasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SDCCasm.c b/src/SDCCasm.c index 05551bd..ef92103 100644 --- a/src/SDCCasm.c +++ b/src/SDCCasm.c @@ -424,8 +424,8 @@ static const ASM_MAPPING _gas_mapping[] = { {"immedword", "0x%04x"}, {"immedbyte", "0x%02x"}, {"hashedstr", "#%s"}, - {"lsbimmeds", "#<(%s)"}, - {"msbimmeds", "#>(%s)"}, + {"lsbimmeds", "lo8(%s)"}, + {"msbimmeds", "hi8(%s)"}, {"module", ".file \"%s\""}, {"global", ".global %s"}, {"fileprelude", ""}, |
