z80:Directives:LSFIRST/MSFIRST

From Learn @ Cemetech
Jump to navigationJump to search

Switches the compiler between big and little endian modes. Originally in TASM, copy in BRASS.

Syntax

.lsfirst is the same as .little.

   .lsfirst
   .int $123456 ; Outputs $56, $34, $12.

.big is the same as .big.

   .msfirst
   .int $123456 ; Outputs $12, $34, $56.


See Also

big/little