English
Language : 

NSB8 Datasheet, PDF (141/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
APPENDIX A: COMMAND FILE FOR GDOS 80
If you need to create a command file (a directly executable program) for the GDOS 80 operating
system, starting from a source program written for NSB8, the following steps must be performed.
This methods is similar to the personalization process above described, and you can configure a copy
of BASIC so that a BASIC program begins automatically as soon as BASIC itself is up and
running. This is especially desirable when you want to create an automatic software system intended
for use by persons who are unfamiliar with BASIC or GDOS operation, or in embedded systems.
a) The NSB8 program must be created and completely tested in all its parts ensuring that any syntax
and logical errors are eliminated. In other words you must obtain the final version of your program.
b) Inside NSB8 environment, with the tested program already loaded, type the command:
PSIZE<CR>
that shows the program length in blocks of 256 bytes. Call SIZE_APPL the shown value and use
it in the following steps.
c) Execute the following commands by directly using the BASIC on line interpreter:
FILL 3599,00<CR>
FILL 256,195<CR>
FILL 257,00<CR>
FILL 258,14<CR>
This commands set the autostart flag (address 3599 = E0FH) and put a jump to NSB8 default entry
point (address E00H) at the beginning of GDOS 80 command file.
d) Type BYE in order to return to the GDOS 80, indicated by the proper prompt ABACO(r)>
representation.
e) Type the GDOS direct comand:
SAVE nn <drive:filename.G80><CR>
where nn correspond to the result of the sum 67+SIZE_APPL in hexadecimal.
At this point, when the operating system prompt is redisplayed, the command file has been created
and it is the file filename.G80 created on the specified drive. This file can be directly tested thanks
to operating system capability to load and execute a command file:
<drive:filename><CR>
For example to create a GDOS 80 autorun program on target card RAM disk, with a BASIC
program length SIZE_APPL=3, the command:
SAVE 46 M:AUTORUN.G80<CR>
must be typed. At the following reset or power on the card will automatically execute the program.
NSB8
Rel. 5.10
Page A-1