n (Set Number Base)
The n command sets the default number base (radix) to the specified value or displays the current number base.
Do not confuse this command with the ~n (Suspend Thread) command.
n [Radix]
Parameters
Radix
Specifies the default number base that is used for numeric display and entry. You can use one of the following values.
Value | Description |
---|---|
8 |
Octal |
10 |
Decimal |
16 |
Hexadecimal |
If you omit Radix, the current default number base is displayed.
Environment
Item | Description |
---|---|
Modes | User mode, kernel mode |
Targets | Live, crash dump |
Platforms | All |
Remarks
The current radix affects the input and output of MASM expressions. It does not affect the input or output of C++ expressions. For more information about these expressions, see Evaluating Expressions.
The default radix is set to 16 when the debugger is started.
In all MASM expressions, numeric values are interpreted as numbers in the current radix (16, 10, or 8). You can override the default radix by specifying the 0x prefix (hexadecimal), the 0n prefix (decimal), the 0t prefix (octal), or the 0y prefix (binary).
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för