From 4e88a14949adfba78db84786c8fffa6c2d7bf822 Mon Sep 17 00:00:00 2001 From: Jestin Stoffel Date: Wed, 31 Jan 2024 14:44:03 -0600 Subject: [PATCH] Add docs for `VLOAD` --- appendix/basic_commands.tex | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/appendix/basic_commands.tex b/appendix/basic_commands.tex index 4c4befa..9aac5b2 100644 --- a/appendix/basic_commands.tex +++ b/appendix/basic_commands.tex @@ -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 @@ -2864,7 +2866,26 @@ \subsection{VPOKE} \subsection{VLOAD} - +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}