Literals/Integer: Difference between revisions

Content added Content deleted
Line 2,185: Line 2,185:
=={{header|Z80 Assembly}}==
=={{header|Z80 Assembly}}==
Numeric values can be defined in decimal, binary, or hexadecimal.
Numeric values can be defined in decimal, binary, or hexadecimal.
<lang z80>byte &55 ;hexadecimal 55
<lang z80>byte &55 ;hexadecimal 55
byte $42 ;hexadecimal 42
byte $42 ;hexadecimal 42
byte 33 ;decimal 33
byte 33 ;decimal 33
byte %00001111 ;binary equivalent of &0F</lang>
byte %00001111 ;binary equivalent of &0F</lang>



=={{header|zkl}}==
=={{header|zkl}}==