Literals/Integer: Difference between revisions

Line 52:
MOVE.B #%01000001,D0
MOVE.B #'A',D0</lang>
 
=={{header|8086 Assembly}}==
Supported integer literals may differ across assemblers.
The following work with UASM which is MASM-compatible:
* A "0x" prefix or "h" suffix for hexadecimal.
* A % prefix for binary
* No prefix for base 10
 
<lang asm>MOV AX,4C00h
MOV BX,%1111000011110000
MOV CX,0xBEEF
MOV DL,35</lang>
 
=={{header|AArch64 Assembly}}==
1,489

edits