[ { + | - } ] digits [ radix ]
|
†A hexadecimal constant beginning with a letter must have a leading zero to prevent the assembler from interpreting it as an identifier. |
|
Binary and Octal | Decimal and Hexadecimal | Decimal and Hexadecimal |
.code mov eax, 1010b - 10q call WriteInt |
.code mov eax, 10 * 10h call WriteInt |
.code mov eax, 10d + Ah call WriteInt |
Output | Output | Output |
WriteInt
writes a 32-bit signed integer to standard output in decimal format with a leading sign and no leading zeros.
Before calling it, place the integer in EAX
.