|
From: Maarten B. <sou...@ds...> - 2018-03-24 19:00:17
|
How about what the mcs51 back end does: just shift right by 8:
; genAssign
mov dptr,#___fail_PARM_2
mov a,#___str_3
movx @dptr,a
mov a,#(___str_3 >> 8)
inc dptr
movx @dptr,a
Maarten
> asxxxx (and the fork in SDCC) has #<SYM and #>SYM. For a 16-bit symbol
> SYM, these give the lower and upper byte. But how can I get individual
> bytes of a 24-bit symbol?
>
> Philipp
|