Skip to content

Commit 36f12de

Browse files
committed
Update
1 parent 6429c59 commit 36f12de

14 files changed

Lines changed: 34 additions & 34 deletions

reference/source/assembler.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
\chapter{Inline Assembly}
22

3-
SuperBasic has a built in inline assembler, that is closely modelled on that of BASIC in the British Acorn machines (Atom, BBC Micro, Archimedes).\\
3+
SuperBASIC has a built in inline assembler, that is closely modelled on that of BASIC in the British Acorn machines (Atom, BBC Micro, Archimedes).\\
44

55
\section{How it works}
66

77
The way it works is that the instructions, named after their 65C02 opcode equivalents, generate code - so as a simple example the instruction "txa" generates the machine code \$8A in memory. If the instruction has an operand (say) "lda \#size*2" the expression is evaluated and the appropriate 2 bytes are stored in memory. \\
88

9-
Labels are specified using .<label name>, e.g. .loop ; this is equivalent to setting the variable 'loop' to the current write address, which can then be used in expressions - such as 'jmp loop'
9+
Labels are specified using .<label name>, e.g. .loop ; this is equivalent to setting the variable 'loop' to the current write address, which can then be used in expressions - such as 'jmp loop'.
1010

1111
\section {The Assemble command}
1212

1313
Assembly is controlled by the 'assemble' command. This has two parameters - the first indicates where the code is to be assembled in memory, and the second is a control byte. \\
1414

15-
This has 2 bits. Bit 0 indicates the pass, and if zero will not flag errors such as branches being out of range. Bit 1 , when set, causes the code generated by instructions like "txa"
15+
This has 2 bits. Bit 0 indicates the pass, and if zero will not flag errors such as branches being out of range. Bit 1 , when set, causes the code generated by instructions like "txa".
1616

1717
\begin{verbatim}
1818
100 assemble $6000,2:lda #42:sta count:rts
1919
\end{verbatim}
2020

21-
This very short example will assemble the 5 (or 4,depending on the value of count) bytes starting from \$6000 - and it also outputs those bytes to the screen. \\
21+
This very short example will assemble the 5 (or 4 depending on the value of count) bytes starting from \$6000 - and it also outputs those bytes to the screen. \\
2222

2323
\section {Two pass Assembly}
2424

reference/source/crossdev.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
\chapter{Cross Development of BASIC Programs}
22

3-
Cross development is an alternative to the classic way of programming a home computer, where the programmer types code directly into the machine. Cross development allows you to write the code on a Personal Computer, and upload it through the USB debug port in the F256. It is also possible to do this with machine code and graphic and other data.
3+
Cross development is an alternative to the classic way of programming a Home Computer, where the programmer types code directly into the machine. Cross development allows you to write the code on a Personal Computer, and upload it through the USB debug port in the F256. It is also possible to do this with machine code and graphic and other data.
44

55
\section{Assistance}
66

7-
In the SuperBasic git, https://github.com/paulscottrobson/superbasic, each release contains a file "howto-crossdev-basic.zip" which gives everything you need to cross develop in BASIC and some example programs.
7+
In the SuperBASIC git, https://github.com/paulscottrobson/superbasic, each release contains a file "howto-crossdev-basic.zip" which gives everything you need to cross develop in BASIC and some example programs.
88

99
\section{Connection}
1010

@@ -18,7 +18,7 @@ \section{Software}
1818

1919
\section{BASIC}
2020

21-
The input to the program is standard ASCII files, with line numbers. Line numbers are required for editing only. (There is a python script on the superbasic github which adds these automatically). However, you do not need to use line numbers in programming, though GOTO and GOSUB are implemented if you wish, or want to port old software.
21+
The input to the program is standard ASCII files, with line numbers. Line numbers are required for editing only. (There is a python script on the SuperBASIC github which adds these automatically). However, you do not need to use line numbers in programming, though GOTO and GOSUB are implemented if you wish, or want to port old software.
2222

2323
I would start with something simple though.
2424

reference/source/f256jr_basic_ref.log

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Arch Linux) (preloaded format=pdflatex 2023.2.26) 27 FEB 2023 08:13
1+
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Arch Linux) (preloaded format=pdflatex 2023.2.26) 27 FEB 2023 15:46
22
entering extended mode
33
restricted \write18 enabled.
44
%&-line parsing enabled.
@@ -823,9 +823,9 @@ Underfull \hbox (badness 10000) in paragraph at lines 9--10
823823
[]
824824

825825

826-
Overfull \hbox (60.40598pt too wide) in paragraph at lines 11--12
827-
\T1/NotoSerif-TLF/m/n/10 line num-bers, there are some ex-am-ples of such at th
828-
e pri-mary github at http://github.com/paulscottrobson/superbasic
826+
Overfull \hbox (68.16174pt too wide) in paragraph at lines 11--12
827+
\T1/NotoSerif-TLF/m/n/10 line num-bers. There are some ex-am-ples of such at th
828+
e pri-mary github at http://github.com/paulscottrobson/SuperBASIC
829829
[]
830830

831831

@@ -1194,8 +1194,8 @@ Overfull \hbox (10.0pt too wide) in paragraph at lines 1--1
11941194
[]
11951195

11961196

1197-
Overfull \hbox (5.39339pt too wide) in paragraph at lines 7--8
1198-
\T1/NotoSerif-TLF/m/n/10 In the Su-per-Ba-sic git, https://github.com/paulscott
1197+
Overfull \hbox (8.84857pt too wide) in paragraph at lines 7--8
1198+
\T1/NotoSerif-TLF/m/n/10 In the Su-per-BA-SIC git, https://github.com/paulscott
11991199
robson/superbasic, each re-lease con-tains a file "howto-
12001200
[]
12011201

@@ -1265,7 +1265,7 @@ f-Italic.pfb></usr/share/texmf-dist/fonts/type1/google/noto/NotoSerif-Regular.p
12651265
fb></usr/share/texmf-dist/fonts/type1/public/cm-super/sftt1000.pfb></usr/share/
12661266
texmf-dist/fonts/type1/public/newtx/txsys.pfb></usr/share/texmf-dist/fonts/type
12671267
1/urw/zapfchan/uzcmi8a.pfb>
1268-
Output written on f256jr_basic_ref.pdf (47 pages, 221124 bytes).
1268+
Output written on f256jr_basic_ref.pdf (47 pages, 221130 bytes).
12691269
PDF statistics:
12701270
801 PDF objects out of 1000 (max. 8388607)
12711271
728 compressed objects within 8 object streams
6 Bytes
Binary file not shown.
153 Bytes
Binary file not shown.

reference/source/f256jr_basic_ref.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
\newcommand{\example}[1]{\subsection*{Example: #1}}
2323
\begin{document}
2424

25-
\title{Foenix \jr\ BASIC Reference Manual}
25+
\title{F256 Reference Manual}
2626
\author{Peter Weingartner}
2727
\begin{titlepage}
2828
\colorbox{silver}{\makebox[\textwidth][r]{
2929
\shortstack{
3030
\vspace{3cm} \\
31-
\color{darkblue}\bfseries\sffamily\Huge Foenix \jr\ BASIC Reference Manual}} \\
31+
\color{darkblue}\bfseries\sffamily\Huge F256 SuperBASIC Reference Manual}} \\
3232
}
3333

3434
\vfill

reference/source/introduction.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ \section{Introduction}
44

55
This document is not a tutorial and assumes the reader has some knowledge of programming in general and BASIC in particular. \\
66

7-
If you want to learn programming, I would advise you try learning using one of the numerous courses available. The course in the Vic20 manual is highly regarded and can be used with an emulator such as Vice, and much of the knowledge will transfer directly.\\
7+
If you want to learn programming, I would advise you try learning using one of the numerous courses available. The course in the Vic20 manual is highly regarded and can be used with an emulator such as "Vice", and much of the knowledge will transfer directly.\\
88

9-
F256's SuperBASIC is a modernised BASIC interpreter for the 65C02 processor. It currently occupies 4 pages (32k) of Flash, mapped into 2 pages (16k) of the 65C02 memory space. At present, this is from $8000-$BFFF.\\
9+
F256's SuperBASIC is a modernised BASIC interpreter for the 65C02 processor. It currently occupies 4 pages (32k) of Flash mapped into 2 pages (16k) of the 65C02 memory space. At present, this is from $8000-$BFFF.\\
1010

11-
Currently editing is still done using line numbers, however it is possible to cross-develop without line numbers, there are some examples of such at the primary github at http://github.com/paulscottrobson/superbasic under the 'games' directory.\\
11+
Currently editing is still done using line numbers, however it is possible to cross-develop without line numbers. There are some examples of such at the primary github at http://github.com/paulscottrobson/SuperBASIC under the 'games' directory.\\
1212

1313
However, there is no requirement to actually use them in programs. GOTO, GOSUB and RETURN are supported but this is more for backwards compatibility with older programs. It is advised to use Procedures, For/Next, While, Repeat and If/Else/Endif commands for better programming and clarity.\\
1414

@@ -32,7 +32,7 @@ \section{Memory usage}
3232

3333
\section{Memory usage elsewhere}
3434

35-
SuperBasic uses memory locations outside the normal 6502 address space as well. \\
35+
SuperBASIC uses memory locations outside the normal 6502 address space as well. \\
3636

3737
If you use a bitmap, it will be placed at \$10000 in physical space and occupy 320x240 bytes.\\
3838

reference/source/procedures.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
\chapter{Structured Programming}
22

3-
SuperBasic is designed for better and more readable programs. If you learnt BASIC on another machines, you will mostly have used GOTO, GOSUB and RETURN.\\
3+
SuperBASIC is designed for better and more readable programs. If you learnt BASIC on another machines, you will mostly have used GOTO, GOSUB and RETURN.\\
44

55
These are terrible.\\
66

7-
SuperBasic does support these, but it is strongly advised you do not use them. However, they can be useful for running old code. SuperBasic is not Microsoft BASIC compatible, but is close enough so that code will normally work with minor alterations.
7+
SuperBASIC does support these, but it is strongly advised you do not use them. However, they can be useful for running old code. SuperBASIC is not Microsoft BASIC compatible, but is close enough so that code will normally work with minor alterations.
88

99
\section{Named procedures}
1010

reference/source/programs.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ \chapter{Writing Programs in SuperBASIC}
77

88
It is easy to cross develop in SuperBASIC (see later), writing a program on your favourite text editor, and squirting it down the USB cable using the Python script fnxmgr , or the Foenix IDE. It is also possible to develop without line numbers and have them added as the last stage before uploading.\\
99

10-
Upper and Lower case is considered to be the same, so variable myName and MYNAME and MyName are all the same variable. The only place where case is specifically differentiated is in string constants.\\
10+
Upper and Lower case is considered to be the same, so variable myName, MYNAME and MyName are all the same variable. The only place where case is specifically differentiated is in string constants.\\
1111

1212
Programs can be loaded or saved to SD Card or to an IEC type drive (the 5 pin DIN serial port) using the SAVE and LOAD command.\\
1313

1414
There is also currently a VERIFY command whose purpose it is to check files have been saved correctly. While the SD Card and IEC code has been seen to be reliable in practice, the code is still relatively new ; so when saving BASIC programs in development, I recommend saving them under incremental names (e.g. prog1.bas, prog2.bas) , verifying them, and periodically backing up your SD card.\\
1515

1616
This may seem slightly long winded, but is a good defensive measure as there may be bugs in the kernel routines, or the BASIC routines which handle program editing. \\
1717

18-
The documents directory in the SuperBasic github, which is publicly accessible, has a simple syntax highlighter for the Sublime Text editor.\\
18+
The documents directory in the SuperBASIC github, which is publicly accessible, has a simple syntax highlighter for the Sublime Text editor.\\

reference/source/reference.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ \section*{!}
1313
40 a!b=12
1414
\end{verbatim}
1515

16-
\section*{' and Rem}
16+
\section*{' and rem}
1717
Comment. ‘ and rem are synonyms. The rest of the line is ignored. The only difference between the two is when listing, ‘ comments show up in reverse to highlight them. Remarks should be in quotes for syntactic consistency.
1818

1919
\example{Simple comments}

0 commit comments

Comments
 (0)