| 1 |
\chapter{Machines} |
| 2 |
\label{Machine} |
| 3 |
|
| 4 |
\dasm supports specific machines and processors through the provision of companion source-code files that can assist with programming each platform. These files are located in the \mono{machines} subdirectory. Machine-specific support is provided for... |
| 5 |
|
| 6 |
\begin{itemize} |
| 7 |
\item \nameref{Machine:atari2600} |
| 8 |
\item \nameref{machine:atari7800} |
| 9 |
\item \nameref{machine:channelF} |
| 10 |
\item 68hc11 |
| 11 |
\item 68hc908 |
| 12 |
\end{itemize} |
| 13 |
|
| 14 |
|
| 15 |
\section{Atari 2600} |
| 16 |
\index{Machine:Atari 2600} |
| 17 |
\label{Machine:atari2600} |
| 18 |
\label{changelog:20200908atari} |
| 19 |
|
| 20 |
The \mono{Atari 2600} is a game console from \mono{1977} that uses a \mono{6507} processor. This processor is similar to the \mono{6502} processor (supported by \dasm). The difference in the processors is the number of hardware address lines on the chips; these being \mono{16} on the \mono{6502}, and \mono{13} on the \mono{6507}. Thus, the \mono{6502} can directly address \mono{64 KiB} of memory and the \mono{6507} only \mono{8 KiB} of memory. From the point of view of \dasm, the machines are identical, as the \mono{6502} and \mono{6507} share a common instruction set. |
| 21 |
|
| 22 |
\subsection{Processor selection} |
| 23 |
|
| 24 |
The target CPU is selected with \nameref{pseudoop:processor} |
| 25 |
as the first directive inside the source file that should be assembled. |
| 26 |
|
| 27 |
\begin{usage} |
| 28 |
processor 6502 |
| 29 |
\end{usage} |
| 30 |
|
| 31 |
|
| 32 |
\subsection{Support Files} |
| 33 |
|
| 34 |
The \mono{Atari 2600} is explicitly supported with two files generally included in most programs for that machine. |
| 35 |
|
| 36 |
\subsubsection{\mono{vcs.h}} |
| 37 |
|
| 38 |
Contains the standardised register definitions for the \mono{RIOT} and \mono{TIA} chips, defined with uninitialised segments. The implementation allows relocation of the \mono{TIA} base address to a shadow register address. |
| 39 |
|
| 40 |
\subsubsection{\mono{macro.h}} |
| 41 |
\label{support6502} |
| 42 |
|
| 43 |
Contains some useful macros. |
| 44 |
|
| 45 |
\section{Atari 7800} |
| 46 |
\index{machine!Atari 7800} |
| 47 |
\label{machine:atari7800} |
| 48 |
|
| 49 |
The \mono{Atari 7800 ProSystem}, or simply the \mono{Atari 7800}, is a home video game console officially released by the Atari Corporation in \mono{1986}. It is almost fully backward-compatible with the \nameref{Machine:Atari 2600}. It uses a variant of the \mono{6502} processor. |
| 50 |
|
| 51 |
\subsection{Processor selection} |
| 52 |
|
| 53 |
The target CPU is selected with \nameref{pseudoop:processor} |
| 54 |
as the first directive inside the source file that should be assembled. |
| 55 |
|
| 56 |
\begin{usage} |
| 57 |
processor 6502 |
| 58 |
\end{usage} |
| 59 |
|
| 60 |
\subsection{Support Files} |
| 61 |
|
| 62 |
The \mono{Atari 7800} is explicitly supported with two files generally included in most programs for that machine. |
| 63 |
|
| 64 |
\subsubsection{\mono{vcs.h}} |
| 65 |
|
| 66 |
Contains the standardised register definitions. |
| 67 |
|
| 68 |
\subsubsection{\mono{macro.h}} |
| 69 |
|
| 70 |
Contains some useful macros. |
| 71 |
|
| 72 |
|
| 73 |
\section{Channel F} |
| 74 |
\label{machine:channelF} |
| 75 |
|
| 76 |
\label{changelog:20200906f8} |
| 77 |
\index{Machine!Channel F} |
| 78 |
|
| 79 |
\emph{No content yet} |
| 80 |
|
| 81 |
See \nameref{processor:f8} |