mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 15:05:27 +00:00
Make terminal write's automatic number width less surprising
This commit is contained in:
@@ -1429,15 +1429,20 @@ numbers are treated as signed unless they have a @code{U} suffix. Unsigned
|
||||
integers cannot be larger than 2^64-1. If @var{n} is an unsigned integer then @var{-n}
|
||||
is also a valid unsigned integer as in C. Signed integers must fall into
|
||||
the [-2^63, 2^63-1] range or a correspondingly smaller range when a suffix
|
||||
specifies a smaller type. Out of range signed numbers trigger a warning.
|
||||
specifies a smaller type.
|
||||
|
||||
Ordinary @code{0x} hex integers with @var{n} hex digits (counting leading
|
||||
zeros) use the smallest size of 1, 2, 4 and 8 bytes that can accommodate
|
||||
any n-digit hex integer. If an integer suffix specifies a size explicitly
|
||||
the corresponding number of least significant bytes are written.
|
||||
Otherwise, signed and unsigned integers alike occupy the smallest of 1, 2,
|
||||
4, or 8 bytes needed to accommodate them in their respective
|
||||
representation.
|
||||
zeros) use the smallest size of one, two, four and eight bytes that can
|
||||
accommodate any n-digit hex integer. If an integer suffix specifies a size
|
||||
explicitly the corresponding number of least significant bytes are
|
||||
written, and a warning shown if the number does not fit into the desired
|
||||
representation. Otherwise, unsigned integers occupy the smallest of one,
|
||||
two, four or eight bytes needed. Signed numbers are allowed to fit into
|
||||
the smallest signed or smallest unsigned representation: For example,
|
||||
@code{255} is stored as one byte as @code{255U} would fit in one byte,
|
||||
though as a signed number it would not fit into a one-byte interval [-128,
|
||||
127]. The number @code{-1} is stored in one byte whilst @code{-1U} needs
|
||||
eight bytes as it is the same as @code{0xFFFFffffFFFFffffU}.
|
||||
|
||||
One trailing comma at the end of data items is ignored to facilitate copy
|
||||
and paste of lists.
|
||||
|
Reference in New Issue
Block a user