You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/manual.tex
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -656,7 +656,7 @@ \subsection{Magnitude}
656
656
All numbers and addresses in \dasm are represented internally as signed 32-bit values.
657
657
658
658
\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}).
660
660
661
661
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.
0 commit comments