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



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to