Examples
These are the example programs of the manual. Each is a
directory with its source files and a build file, BUILD.BAT, that
assembles and links it; reading the build file first, then the source,
is the intended order.
On the MSX they go into A:\TATARA\EXAMPLES, one directory each, with
the names below: A:\TATARA\EXAMPLES\HELLO, and so on. DIRS has
subdirectories of its own, LIB and SRC\INC, which must be kept.
Each file can be downloaded on its own; they are MSX text files and
should be copied to the MSX unchanged.
A build file sets the TATARA environment variable to
A:\TATARA\INCLUDE while it runs and clears it afterwards. If Tatara
is installed elsewhere, change that line in the build file.
HELLO
The smallest complete program: one source file to one .COM, the whole cycle in two commands.
TWOMOD
A program in two modules: PUBLIC and EXTRN across two source files, linked from a link file.
BUILD.BAT(819 bytes)MAIN.AS(506 bytes)PUTSTR.AS(692 bytes)TWOMOD.LNK(503 bytes)
LAYOUT
Code, data, and a transient segment whose groups of variables share the same memory.
DIRS
A project in several directories: the three places an INCLUDE is looked for, and the TATARA environment variable.
BUILD.BAT(1036 bytes)LIB\SYSMSG.INC(306 bytes)SRC\MAIN.AS(1447 bytes)SRC\INC\MSG.INC(295 bytes)SRC\INC\TEXT.INC(369 bytes)
MACROS
MACRO, LOCAL, REPT and IRP, and the listing modes.
NAMES
48-character names, and one source file assembled with and without case-sensitive names.
BINARY
ASEG and the /B option: a .BIN file that MSX-BASIC loads with BLOAD.
ROM
A 16 KB ROM cartridge that prints a line and never returns. Its result is seen by loading it in an emulator.