Skip to content

Commit

Permalink
Add docs for VLOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
jestin committed Jan 31, 2024
1 parent 90a5ef4 commit 4e88a14
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion appendix/basic_commands.tex
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@ \subsection{BVLOAD}

\end{tabular}

To load a file that has a two-byte header, see the {\ttfamily VLOAD} statement.\\

\subsection{CHAR}

The {\ttfamily CHAR} statement draws text to the screen at a given X,Y
Expand Down Expand Up @@ -2864,7 +2866,26 @@ \subsection{VPOKE}

\subsection{VLOAD}

<TODO>
The {\ttfamily VLOAD} statement loads a file with a two-byte header directly
into the VERA's VRAM, but without loading the header. For arguments, the
{\ttfamily VLOAD} statement takes the file's name, the device number where the
file is stored, the bank of VRAM on the VERA (either {\ttfamily 0} or
{\ttfamily 1}), and the address within the bank in which to load.\\

Examples:\\

\begin{tabular}{l p{0.35\linewidth}}

{\ttfamily\bfseries VLOAD "MYFILE.BIN",8,0,\$4000}&Loads a file named
"MYFILE.BIN" from device 8 into VRAM at address \$04000.\\\\

{\ttfamily\bfseries VLOAD "MYFONT.BIN",8,1,\$F000}&Loads a file named
"MYFONT.BIN" from device 8 into VRAM at address \$1F000.\\\\

\end{tabular}

To load a file that does not have a two-byte header, see the {\ttfamily BVLOAD}
statement.\\

\subsection{WAIT}

Expand Down

0 comments on commit 4e88a14

Please sign in to comment.