This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Little Endian in C51?

Is it somehow possible to generate little-endian code using C51?

We are using a 8051 variant as a controller for an ASIC with a little endian interface. I would like to be able to do something like:

*((DWORD*)0x4000) = 0x12345678;

And have the bytes written to the bus in "reversed" or Intel order, least significant byte first.

Is this possible?

0