diff options
author | 2024-03-20 23:12:11 +0700 | |
---|---|---|
committer | 2024-03-21 03:12:11 +1100 | |
commit | f93a04010a06aa7f6793b7c0d28d31aaba9520fa (patch) | |
tree | 0bbdff4b9fe9e77dbc768d90a53cbf4a0479188b /docs/source/debugger | |
parent | 80e9125a5bb126aaf2b3d88ac91b09f4ca2676f6 (diff) |
emu/debug/debugcmd.cpp: Add NUL-terminated string argument support to printf/logerror. (#12124)
* Use %s to read NUL-terminated strings from emulated memory. Precision sets maximum length.
* Also added left-justification option for numeric and string formats.
* Made documentation more consistent and removed duplication.
Diffstat (limited to 'docs/source/debugger')
-rw-r--r-- | docs/source/debugger/general.rst | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/source/debugger/general.rst b/docs/source/debugger/general.rst index 13060894aae..c01ef20dea8 100644 --- a/docs/source/debugger/general.rst +++ b/docs/source/debugger/general.rst @@ -190,18 +190,22 @@ available: %c Prints the corresponding argument as an 8-bit character. -%[0][<n>]d +%[-][0][<n>]d Prints the corresponding argument as a decimal number with optional - minimum field width and zero fill. -%[0][<n>]o + left justification, zero fill and minimum field width. +%[-][0][<n>]o Prints the corresponding argument as an octal number with optional - minimum field width and zero fill using lowercase letters. -%[0][<n>]x - Prints the corresponding argument as a hexadecimal number with - optional minimum field width and zero fill using lowercase letters. -%[0][<n>]X - Prints the corresponding argument as a hexadecimal number with - optional minimum field width and zero fill using uppercase letters. + left justification, zero fill and minimum field width. +%[-][0][<n>]x + Prints the corresponding argument as a lowercase hexadecimal number + with optional left justification, zero fill and minimum field width. +%[-][0][<n>]X + Prints the corresponding argument as an uppercase hexadecimal number + with optional left justification, zero fill and minimum field width. +%[-][<n>][.[<n>]]s + Prints a null-terminated string of 8-bit characters from the address + and address space given by the corresponding argument, with optional + left justification, minimum and maximum field widths. \%% Prints a literal percent symbol. \\n |