Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

2.4: Numeric Literals

RASM supports integer literals in multiple numeral systems.

Decimal

By default, numbers are interpreted as decimal.

10
255
4096

Hexadecimal

Hexadecimal numbers begin with the 0x prefix.

0x10
0xFF
0x1234ABCD

The letters A-F may be written in either uppercase or lowercase.

0xDEADBEEF
0xdeadbeef

Binary

Binary numbers begin with the 0b prefix.

0b1010
0b11111111