Skip to content

Commit aeb471f

Browse files
committed
Added strange magic "DC.S" directive.
1 parent 059f1d9 commit aeb471f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/dasm.pdf

503 Bytes
Binary file not shown.

docs/sources/changelog.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ \subsection*{Changes}
88

99
\begin{itemize}
1010

11+
\item[]\mono{2020.09.15}
12+
\item \hyperref[changelog:20200915endian]{Added DC.S endian-swapping magic directive}
13+
1114
\item[]\mono{2020.09.13}
1215
\item Added some structure (new chapters) to the document for inclusion of information about the "other" processors and machines. Started to separate the machine from the processor into separate sections. Should we do an all-in listing of opcodes for all processors, like for the 6502?
1316
\item Removed malformed coments examples as they are no longer applicable

docs/sources/manual.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,8 +1316,8 @@ \subsection{\texttt{DC}}
13161316
\begin{usage}
13171317
DC[{.B|.W|.L}] exp,...
13181318
\end{usage}
1319-
1320-
Declare data in the current segment. No output is generated if within a uninitialised \mono{.U} segment. The byte ordering (the endian order) for the selected processor is used for each entry.
1319+
\label{changelog:20200915endian}
1320+
Declare data in the current segment. No output is generated if within a uninitialised \mono{.U} segment. The byte ordering (the endian order) for the selected processor is used for each entry. It is possible to "swap endianness" (the byte order of wide-characters) using \mono{DC.s}
13211321
13221322
The default size extension (\mono{.B}, \mono{.W}, \mono{.L}) is \mono{.B} (byte).
13231323
@@ -1337,6 +1337,7 @@ \subsubsection{Examples}
13371337
.WORD 100,1000,10000, VectorTable
13381338
LONG 100000, 50*50*50
13391339
dc 'a' ; ERROR - should be 'a
1340+
dc.s "unicode" ; endian-swapped character words
13401341
\end{code}
13411342
13421343
\begin{code}[caption=Data Declaration using REPEAT Loop]

0 commit comments

Comments
 (0)