summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Kotler <fbkotler@users.sourceforge.net>2003-02-06 02:44:08 +0000
committerFrank Kotler <fbkotler@users.sourceforge.net>2003-02-06 02:44:08 +0000
commit8fa0d037f33beaca5d7823b496ed989d55bea892 (patch)
treef834236685e3c737748d95c9ee2171b681064d1a
parent8afc6966ac4ee3bcbab03b9bf41dc568a0637b21 (diff)
downloadnasm-8fa0d037f33beaca5d7823b496ed989d55bea892.tar.gz
"Q" and "O" suffixes now indicate octal - touch up docs
-rw-r--r--AUTHORS2
-rw-r--r--CHANGES1
-rw-r--r--doc/nasmdoc.src22
-rw-r--r--nasmlib.c2
4 files changed, 16 insertions, 11 deletions
diff --git a/AUTHORS b/AUTHORS
index bc09887e..967fafa5 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -106,6 +106,6 @@ E: FIXME
D: Quiet compiler warnings
N: Michael K. Ter Louw
-E: FIXME
+E: mterlo1 "at" uic "dot" edu
D: Multisection support for "-f bin"
diff --git a/CHANGES b/CHANGES
index b6456825..bca56e61 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@
* Fix JMP FAR label and CALL FAR label.
* Add new multisection support - map files - fix align bug
* Fix sysexit, movhps/movlps reg,reg bugs in insns.dat
+* "Q" or "O" suffixes indicate octal
0.98.35
-------
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 5a6f4f32..c9a7516c 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -1312,7 +1312,7 @@ character, string and floating-point.
A numeric constant is simply a number. NASM allows you to specify
numbers in a variety of number bases, in a variety of ways: you can
-suffix \c{H}, \c{Q} and \c{B} for \i{hex}, \i{octal} and \i{binary},
+suffix \c{H}, \c{Q} or \c{O}, and \c{B} for \i{hex}, \i{octal} and \i{binary},
or you can prefix \c{0x} for hex in the style of C, or you can
prefix \c{$} for hex in the style of Borland Pascal. Note, though,
that the \I{$, prefix}\c{$} prefix does double duty as a prefix on
@@ -1326,6 +1326,7 @@ Some examples:
\c mov ax,$0a2 ; hex again: the 0 is required
\c mov ax,0xa2 ; hex yet again
\c mov ax,777q ; octal
+\c mov ax,777o ; octal again
\c mov ax,10010011b ; binary
@@ -3778,24 +3779,27 @@ with \i\c{vstart=}.
\i\c{vfollows=}\c{<section>} as an alternative to specifying an explicit
start address.
-\b Arguments to \c{org}, \c{start}, and \c{vstart} are critical
-expressions. See \k{crit}.
+\b Arguments to \c{org}, \c{start}, \c{vstart}, and \c{align=} are
+critical expressions. See \k{crit}. E.g. \c{align=(1 << ALIGN_SHIFT)}
+- \c{ALIGN_SHIFT} must be defined before it is used here.
\b Any code which comes before an explicit \c{SECTION} directive
is directed by default into the \c{.text} section.
-\b If a \c{.text} section is not given an \c{ORG} statement, it is
-allocated \c{ORG 0} by default.
+\b If an \c{ORG} statement is not given, \c{ORG 0} is used
+by default.
-\b The \c{.bss} section will be placed after all other sections,
-unless \c{start=}, \c{vstart=}, \c{follows=}, or \c{vfollows=}
+\b The \c{.bss} section will be placed after the last \c{progbits}
+section, unless \c{start=}, \c{vstart=}, \c{follows=}, or \c{vfollows=}
has been specified.
-\b All sections are aligned on dword boundaries, unless a higher level
-of alignment has been specified.
+\b All sections are aligned on dword boundaries, unless a different
+alignment has been specified.
\b Sections may not overlap.
+\b Nasm creates the \c{section.<secname>.start} for each section,
+which may be used in your code.
\S{map}\i{Map files}
diff --git a/nasmlib.c b/nasmlib.c
index bb0ab29e..7578ea7c 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -195,7 +195,7 @@ long readnum (char *str, int *error)
radix = 16, r++;
else if (q[-1]=='H' || q[-1]=='h')
radix = 16 , q--;
- else if (q[-1]=='Q' || q[-1]=='q')
+ else if (q[-1]=='Q' || q[-1]=='q' || q[-1]=='O' || q[-1]=='o')
radix = 8 , q--;
else if (q[-1]=='B' || q[-1]=='b')
radix = 2 , q--;