@@ -35,6 +35,7 @@ Currently, FastBasic support:
35
35
- Minimal string support.
36
36
- Arrays with "word" and "byte" types.
37
37
- User defined procedures.
38
+ - Compilation to binary loadable files.
38
39
39
40
40
41
First Steps
@@ -46,20 +47,21 @@ prompt. This will load the IDE and
46
47
present you with a little help text:
47
48
48
49
--D:HELP.TXT-------------------0--
49
- ' FastBasic - (c) 2017 dmsc
50
+ ' FastBasic FP - (c) 2017 dmsc
50
51
'
51
52
' Editor Help
52
53
' -----------
53
- ' Ctrl-A : Move to beg of line
54
- ' Ctrl-E : Move to end of line
55
- ' Ctrl-U : Page up
56
- ' Ctrl-V : Page down
57
- ' Ctrl-Z : Undo (only curr line)
58
- ' Ctrl-Q : Exit to DOS
59
- ' Ctrl-S : Save file
60
- ' Ctrl-L : Load file
61
- ' Ctrl-N : New file
62
- ' Ctrl-R : Parse and run program
54
+ ' Ctrl-A : Move to beg of line
55
+ ' Ctrl-E : Move to end of line
56
+ ' Ctrl-U : Page up
57
+ ' Ctrl-V : Page down
58
+ ' Ctrl-Z : Undo (only curr line)
59
+ ' Ctrl-Q : Exit to DOS
60
+ ' Ctrl-S : Save file
61
+ ' Ctrl-L : Load file
62
+ ' Ctrl-N : New file
63
+ ' Ctrl-R : Parse and run program
64
+ ' Ctrl-W : Compile to binary file
63
65
'
64
66
'- Press CONTROL-N + ESC to begin -
65
67
@@ -77,11 +79,12 @@ first column of the first line of the
77
79
file being edited.
78
80
79
81
As the help text says, just press the
80
- ` CONTROL ` key and the letter N (at the
81
- same time) to begin editing a new file.
82
- The editor asks if you want to save the
83
- current file (the help text) to disk,
84
- to skip saving simply type ` ESC ` .
82
+ ` CONTROL ` key and the letter ` N ` (at
83
+ the same time) to begin editing a new
84
+ file. The editor asks if you want to
85
+ save the current file (the help text)
86
+ to disk, to skip saving simply type
87
+ ` ESC ` .
85
88
86
89
Now, you can start writing your BASIC
87
90
program. Try the following example,
@@ -117,6 +120,35 @@ instead of running the cursor will be
117
120
moved to the line and column of the
118
121
error so you can correct it and retry.
119
122
123
+ Remember to save often, pressing the
124
+ ` CONTROL ` and ` S ` keys, you need to
125
+ supply a filename. Delete the old file
126
+ with ` BACKSPACE ` and type the name of
127
+ your new program, and ` ENTER ` to save.
128
+ As with any prompt, you can press ` ESC `
129
+ to cancel the save operation.
130
+
131
+
132
+ Compiling the program to disk
133
+ =============================
134
+
135
+ One of the After you are satisfied with
136
+ your program, you can compile to a disk
137
+ file, producing a program that can be
138
+ run directly from DOS.
139
+
140
+ Press the ` CONTROL ` and ` W ` key, and
141
+ type a name for your compiled program.
142
+ It is common practice to name your
143
+ compiled programs with an extension of
144
+ ".COM" or ".XEX", also with ".COM"
145
+ files you don't need to type the
146
+ extension in some DOS.
147
+
148
+ Compiled programs include the full
149
+ runtime, so you can distribute them
150
+ alone without the IDE.
151
+
120
152
121
153
About the syntax
122
154
================
0 commit comments