Amit Avramovich
Amit Avramovich

Reputation: 21

What does 0x mean before a number?

Does anyone knows why people using 0x before number?

For example:

mov ah, 0x16

mov ah, 16

There is a difference between them?

Upvotes: 0

Views: 6433

Answers (1)

Colin
Colin

Reputation: 3524

0x implies it's a hex literal, 0x16 is 22 decimal.

Upvotes: 7

Related Questions