Index of /examples/library
Name Last modified Size Description
Parent Directory 04-Jul-2006 13:55 -
colorsq.asm 24-Mar-2003 21:00 13k
colorsq_clip.asm 24-Mar-2003 21:00 7k
colorsq_sv.asm 24-Mar-2003 21:00 7k
dec16dec32.asm 24-Mar-2003 21:00 23k
dec16only.asm 24-Mar-2003 21:00 14k
dist_fast.asm 24-Mar-2003 21:00 10k
dividivu.asm 24-Mar-2003 21:00 16k
fastdivu.asm 24-Mar-2003 21:00 12k
fillmem.asm 24-Mar-2003 21:00 4k
gimini.asm 24-Mar-2003 21:00 38k
hex16.asm 24-Mar-2003 21:00 5k
hexdisp.asm 24-Mar-2003 21:00 6k
ic_banksw.asm 24-Mar-2003 21:00 12k
memcmp.asm 24-Mar-2003 21:00 6k
memcpy.asm 24-Mar-2003 21:00 7k
memset.asm 24-Mar-2003 21:00 5k
memunpk.asm 24-Mar-2003 21:00 7k
print.asm 24-Mar-2003 21:00 12k
prnum16.asm 04-Jul-2006 13:56 15k
prnum32.asm 04-Jul-2006 13:56 16k
rand.asm 24-Mar-2003 21:00 7k
sqrt.asm 24-Mar-2003 21:00 9k
This directory contains a variety of functions and definitions that could
be considered "library" functions. Several of the examples include these
files directly to access various functions, such as the random number
generator, the string-printing routines, and so on.
You are encouraged to use these routines in your programs, either by
INCLUDEing the file or copying the routine inline. Take note, however,
that these routines are placed under the GNU General Public License
(GPL). Therefore, if you include this routine in your program (either
by inlining it or by INCLUDEing it), you must abide by the GPL when
distributing the result.. Please read the file "COPYING.txt" that was
included with SDK-1600 to find out more about the GNU GPL.
The documentation for each function is contained within the source file
itself. Please consult the individual files for details.
dec16dec32.asm DEC16 and DEC32 routines
dec16only.asm DEC16 with DEC32 support removed for saving codesize
dividivu.asm Signed and unsigned divide
fastdivu.asm Unsigned divide only
dist_fast.asm Fast Euclidean distance estimation
fillmem.asm FILLMEM, FILLZERO and CLRSCR routines
gimini.asm Various constants and masks useful for Intellivision
hex16.asm HEX16 routine alone
hexdisp.asm HEX16 thru HEX4 and HEX12M thru HEX4M routines.
ic_banksw.asm Intellicart bank-switching support routines
memcmp.asm MEMCMP routine
memcpy.asm MEMCPY routine
memset.asm MEMSET routine (similar to FILLMEM)
memunpk.asm MEMUNPK routine
print.asm PRINT.xxx string display routines
rand.asm RAND random number generation routine
sqrt.asm SQRT square-root routine
colorsq.asm Baseline colored-squares routines
colorsq_sv.asm PUTPIXELS/GETPIXELS wrappers on PUTPIXEL/GETPIXEL
colorsq_clip.asm Clipping versions of PUTPIXELS/GETPIXELS
You may find it convenient to "INCLUDE" these files in your program,
rather than copying the source-code inline. To do this, simply add
a line in your program such as the following: (Note the use of
forward-slashes for path separators. This works identically under
both Unix and DOS/Windows.)
INCLUDE "/full/path/to/library/function.asm"
OR
INCLUDE "../relative/path/to/library/function.asm"
Alternately, rather than hardcoding the path to the library in
the source code, you can use AS1600's Include Path facility to
specify places to search for INCLUDE files. The Include Path
can be specified two ways:
-- On the command line, with "-i /path/to/directory." You may
have as many -i arguments as you can fit on the commandline.
-- With the AS1600_PATH environment variable. You can specify
multiple directories to search in the one variable. The
names for the individual directories are separated by ';'
characters (semicolons).
The assembler will always search for include files in the following
order:
1. The current directory.
2. Any directories specified on the commandline, in the order
they were specified.
3. Any directories specified in the AS1600_PATH listing.