Skip to content

Commit 03239cb

Browse files
authored
Merge pull request #151 from seancwall/fix_minor_issues_in_docs
Correct ranges of signed bytes and words in documentation
2 parents 16a0c61 + bfc7b15 commit 03239cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sources/manual.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ \subsection{Magnitude}
656656
All numbers and addresses in \dasm are represented internally as signed 32-bit values.
657657

658658
\index{Numbers!Range Checking}
659-
Numbers are range-checked at point of usage. Signed byte values should be between \mono{\$80} (\mono{-128}) and \mono{\$FF} (\mono{+127}) inclusive, as these values are the extremes of what can be represented with signed 8-bit values. Unsigned byte values should be between \mono{0} and \mono{\$FF} (\mono{255}). Signed word values should be between \mono{\$8000} (\mono{-32768}) and \mono{\$FFFF} (\mono{+32767}) as these are the extremes of signed 16-bit values. Unsigned word values should be between \mono{0} and \mono{\$FFFF} (\mono{65535}).
659+
Numbers are range-checked at point of usage. Signed byte values should be between \mono{\$80} (\mono{-128}) and \mono{\$7F} (\mono{+127}) inclusive, as these values are the extremes of what can be represented with signed 8-bit values. Unsigned byte values should be between \mono{0} and \mono{\$FF} (\mono{255}). Signed word values should be between \mono{\$8000} (\mono{-32768}) and \mono{\$7FFF} (\mono{+32767}) as these are the extremes of signed 16-bit values. Unsigned word values should be between \mono{0} and \mono{\$FFFF} (\mono{65535}).
660660

661661
Note that the assembler cannot tell the difference between the representation (in 8 and 16 bits) of signed/unsigned representation of negative and positive numbers, as they share the same bit patterns.
662662

0 commit comments

Comments
 (0)