Big Endian

Since the program memory width is not required for the assembler and disassembler the endian types (little or big) are not required to be known. However if the resulting binary needs to be converted into a 8 bit wide output format (as bin, motorolas, intelhex, hexdump), then this must be known. Consequently if the output format is in respect to the program memory flexible (as mif, js, html), FPGA, then endian is no issue and can be ignored.

As default the assembler and disassembler assume it is little endian.

If not then the assembler or disassembler can be called with the -g (or --bigendian) option.


Since little and big endian is just required for certain binary formats, no option exist to add this to the assembly file.

Linurs Hosttech startpage