home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
asm
/
wasm
/
samples.doc
< prev
next >
Wrap
Text File
|
1988-03-07
|
6KB
|
164 lines
Description of Wolfware Assembler Sample Programs
Wolfware Assembler comes with numerous sample programs. These
programs can be looked at, modified, assembled, and executed on
your computer. Routines listed separately and individual sections
of code within the sample programs may be used in your own
programs.
If you are new to assembly language, it might be wise to look at
the simple programs first. Generally speaking, the smaller a
program is, the simpler it is, for example PRES is a very simple
program, while SHOW87 is fairly complex.
Two separate "libraries" are implemented. By library, I mean a
single set of routines that may be used by different programs.
The first is the "IO runtime library." This library uses some
fancy coding to implement separately assembled modules which are
loaded transparently during execution. The library also includes
a macro interface. The second library consists of several include
files that were written to be used with specific programs, but are
general enough to be used by any program. These include files
consist of CONVERT1.INC, CONVERT2.INC, VIDEO1.INC, VIDEO2.INC, and
FILE1.INC.
The following is a summary of the sample programs. See also the
files IO.DOC, FILT.DOC, and SHOW87.DOC for a more thorough
description of some of the programs.
Files marked with \IO deal with the IO runtime library and may be
in a subdirectory named IO. Files marked with \8087 deal with the
8087 coprocessor and may be in a subdirectory named 8087. Files
marked with \FILT deal with the text filter program and may be in
a subdirectory named FILT.
BIN2DAT.ASM, binary file to data statements (\IO)
This is a stand-alone program to convert any binary file to
BASIC data statements. Useful for imbedding machine language
subroutines directly in BASIC programs.
BOOT.ASM, software initiated reboot
This is a stand-alone program that initiates a warm or cold
boot.
BTYPE.ASM, binary type
This is a stand-alone program to display the contents of ANY
file to the screen. No interpretation of control characters is
carried out, including carriage returns, linefeeds, bells, etc.
All characters are displayed just as the screen controller sees
them.
CASE.ASM, set case of string
This is a Turbo Pascal (3.0) subroutine to set the case of a
string to all upper, all lower, or capitalized (first character
upper and remaining lower).
CLP.ASM, clear partial screen
This is a BASIC subroutine to clear or scroll any or all of the
screen.
CONVERT1.INC, integer conversion routines (\8087)
CONVERT2.INC, real number conversion routines (\8087)
These are some string conversion routines. Used by SHOW87.ASM
and FACTOR.ASM.
DISPATCH.ASM, dispatch code (\IO)
This is a program fragment to help implement separately
assembled libraries. See IO.DOC.
DOS.MAC, common DOS functions (\IO)
These are some macros to implement a few common DOS functions.
FACTOR.ASM, factorial calculator (\8087)
This is a stand-alone program that calculates the factorial of
numbers using the 8087 coprocessor.
FILE1.INC, file routines (\FILT)
This is some sequential buffered file i/o routines. Used by
FILT.ASM.
FILT.ASM, text filter (\FILT)
FILT1.ASM, additional FILT source code (\FILT)
This is a stand-alone program to perform some simple text
filtering functions. See FILT.DOC.
IO.ASM, basic input and output routines (\IO)
IO.MAC, macro front end for IO.ASM (\IO)
IO.RED, redirection table for IO.ASM (\IO)
IO.BIN, runtime library assembly of IO.ASM (\IO)
These are a set routines to assist in performing standard input
and output functions. See IO.DOC.
KEY.ASM, key reassignment
This is a stand-alone program to reassign the meaning of any key
via ANSI escape sequences. Requires ANSI.SYS or a compatible
device driver be installed.
LIBRARY.ASM, library code (\IO)
This is a program fragment to help implement separately
assembled libraries. See IO.DOC.
PRES.ASM, printer reset
This is a stand-alone program that uses the BIOS printer
interface to do a low level printer reset. This program resets
the printer to its default state.
PRIMES.ASM, generate prime numbers (\IO)
This is a stand-alone program that generates all the prime
numbers between 1 and 65535 and sends them to the standard
output device.
PTEST.ASM, printer test
This is a Turbo Pascal (3.0) subroutine to determine if a
printer is connected and ready.
RTIME.ASM, resident time display
This is memory resident program that shows the active time in
the upper right corner of the screen. The display can be
enabled or disabled from the keyboard.
SHOW87.ASM, shows 8087 state (\8087)
This is a memory resident program that shows the present state
of an installed 8087 coprocessor chip. The information is
displayed in the upper half of the screen. See SHOW87.DOC.
SOUND.ASM, make sounds on the speaker (\IO)
This is a stand-alone program the allows you to make various
sounds on the speaker. Requires the IO.BIN runtime library for
execution and ANSI.SYS or a compatible device driver be
installed.
VIDEO1.INC, low (BIOS) level display (\8087)
VIDEO2.INC, high-level/formatted display (\8087)
These are some screen display routines. VIDEO1 contains low
level, BIOS compatible routines. VIDEO2 contains higher level,
formatted display routines. Used by SHOW87.ASM.