Skip to content

Commit f2d8060

Browse files
committed
Add reminder box, make NEW usage clearer, add more about color characters
1 parent 15ea4a1 commit f2d8060

File tree

3 files changed

+71
-32
lines changed

3 files changed

+71
-32
lines changed

CommodoreBlueBook.cls

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,30 @@
229229
\vspace{16pt}
230230
}
231231

232+
%----------------------------------------------------------------------------------------
233+
% Reminder
234+
%----------------------------------------------------------------------------------------
235+
236+
\newcommand{\reminder}[1]{
237+
\begin{tcolorbox}[
238+
colback=white,
239+
colframe=blue,
240+
width=4.25in,
241+
]
242+
243+
{
244+
245+
\sffamily\bfseries\fontsize{16pt}{16pt}\selectfont Reminder!
246+
247+
}
248+
249+
#1
250+
251+
\end{tcolorbox}
252+
253+
\vspace{16pt}
254+
}
255+
232256
%----------------------------------------------------------------------------------------
233257
% NOTES
234258
%----------------------------------------------------------------------------------------

getting_to_know_commanderx16.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,15 @@ \chapter*{Your First Computer Program}\index{Sectioning}
459459

460460
}
461461

462+
When you want to write a new program, just type the {\ttfamily NEW}
463+
command\footnote{When you use the {\ttfamily NEW} command you will lose your
464+
existing program! See the {\ttfamily SAVE} and {\ttfamily LOAD} commands in
465+
the appendix on Commander X16 BASIC to learn to save your programs and load
466+
them again later.}. This will clear out the existing program that you either
467+
typed out or loaded from the SD card, and allow you to type a new one. You do
468+
not need to use {\ttfamily NEW} if you are loading in a program from the SD
469+
card; the {\ttfamily LOAD} command will do that for you.\\
470+
462471
You have just been introduced to several aspects of the Commander X16 that you
463472
will use in many of the later chapters. You have:
464473

@@ -467,6 +476,9 @@ \chapter*{Your First Computer Program}\index{Sectioning}
467476
\item {\ttfamily PRINT}ed messages to the screen.
468477

469478
\item Cleared the screen with the \shiftkey and \clrhomekey keys.
479+
480+
\item Used the {\ttfamily NEW} command to clear any existing program and
481+
begin writing a new one.
470482

471483
\item Written your first program and created a scrolling display.
472484

using_screen_and_keyboard.tex

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,11 @@ \chapter*{Graphic Chracters}
214214
want your rectangle to have rounded corners, you can use the graphic characters
215215
on the \key{u}, \key{i}, \key{j}, and \key{k}.\\
216216

217-
Spend some time experimenting with the other graphic characters to see what
218-
kinds of shapes and designs you can draw. You can use the arrow keys to
219-
position the cursor wherever you need to type.\\
217+
\tryit{
218+
Spend some time experimenting with the other graphic characters to see what
219+
kinds of shapes and designs you can draw. You can use the arrow keys to
220+
position the cursor wherever you need to type.\\
221+
}
220222

221223
% To start, sit down in front of the Commander X16 Keyboard and type the
222224
% following:\\
@@ -333,15 +335,15 @@ \section{The COLOR Statement}
333335
The above call to the {\ttfamily COLOR} statement will set the foreground color
334336
to light green and the background color to black. Just like the {\ttfamily
335337
PRINT} statement, the {\ttfamily COLOR} statement can be used in a BASIC
336-
program. When run in a program, it does not advance to the next line nor cause
337-
the "READY" prompt to be printed. This means that the {\ttfamily COLOR}
338-
statement can be used to change the foreground and background colors in between
339-
calls to the {\ttfamily PRINT} statement without printing extra lines that you
340-
don't want. It is also possible to call the {\ttfamily PRINT} statement in a
341-
way where it does not advance the cursor to the next line, but instead leaves
342-
it at the end of the characters that have just been printed. In order to use
343-
{\ttfamily PRINT} without advancing to the next line, simply type a ';' at the
344-
end of the statement:\\
338+
program. When the {\ttfamily COLOR} statement is run in a program, it does not
339+
advance to the next line nor cause the "READY" prompt to be printed. This
340+
means that the {\ttfamily COLOR} statement can be used to change the foreground
341+
and background colors in between calls to the {\ttfamily PRINT} statement
342+
without printing extra lines that you don't want. It is also possible to call
343+
the {\ttfamily PRINT} statement in a way where it does not advance the cursor
344+
to the next line, but instead leaves it at the end of the characters that have
345+
just been printed. In order to use {\ttfamily PRINT} without advancing to the
346+
next line, simply type a ';' at the end of the statement:\\
345347

346348
\codeblock{
347349
10 PRINT "X";\\
@@ -359,27 +361,28 @@ \section{The COLOR Statement}
359361
30 PRINT "X";\\
360362
}
361363

362-
%----------------------------------------------------------------------------------------
363-
%CHAPTER - Keyboard
364-
%----------------------------------------------------------------------------------------
364+
If the above code is run, it will print two X's next to each other on the
365+
screen, but they will have different foreground and background colors. The
366+
Commander X16 allows for each character on the screen to have its own
367+
foreground and background color. A short program can be written to demonstrate
368+
this:\\
369+
370+
\keytextcolor{black}
371+
\keybackgroundcolor{white}
372+
373+
\codeblock{
374+
10 COLOR RND(1)*16,RND(1)*16\\
375+
20 PRINT "X\doublekey{RVS\\ON}X\doublekey{RVS\\OFF}";\\
376+
30 GOTO 10\\
377+
}
378+
379+
\reminder{
380+
Did you remember to type {\ttfamily NEW} before entering in a new program?
381+
}
365382

366-
\chapter*{The X16 Keyboard}
367-
\addcontentsline{toc}{chapter}{\protect\numberline{}The X16 Keyboard}
368-
369-
Molestiae ad dicta praesentium et. Placeat magnam nihil est animi vel eos. Sunt
370-
consectetur nobis minima ut reiciendis hic non sed. Officiis sint voluptas non
371-
quo eos architecto. Nulla et est laboriosam voluptatem. Iure sed et ducimus
372-
nostrum est eveniet. Natus aut praesentium fugit. In quae tempora sunt autem
373-
illum perspiciatis. Amet laborum numquam aut occaecati. Quia ad ab voluptas qui
374-
autem. Qui voluptatum quibusdam est aliquam in. Quae ipsum aperiam aut saepe
375-
molestiae natus sit. Totam autem veritatis deserunt. Hic ut excepturi porro. Et
376-
ut vero voluptas iusto earum velit rerum. Assumenda enim voluptatum praesentium
377-
quam. Rerum optio iste odit. Id quia ratione quasi. Doloremque et omnis autem
378-
dolor. Vel minima numquam enim asperiores quae magni soluta a. Corrupti sint
379-
sit sunt cum sunt asperiores animi rerum. Consectetur sunt itaque ducimus
380-
soluta sed quod qui. Blanditiis alias rem ea. Doloremque nobis voluptas eius
381-
occaecati mollitia temporibus enim ut. Quia consequuntur molestias quae modi
382-
consequatur eveniet consequuntur.
383+
When run, this program will fill up the screen with pairs of X's. It will
384+
first print each X normally, followed by another X using the same foreground
385+
and background colors, but reversed.\\
383386

384387
%----------------------------------------------------------------------------------------
385388
%CHAPTER - Screen Modes

0 commit comments

Comments
 (0)