z80:Directives:LSFIRST/MSFIRST

From Learn @ Cemetech
Revision as of 08:28, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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