.he SYSLIB User and Reference Manual
fo Table of Contents TOC - #
pn 1
SYSLIB -- An Integrated Library of Assembly Language
Utility Subroutines for use with the Microsoft M80 Assembler
SYSLIB User and Reference Manual
for
SYSLIB Version 2.1
Table of Contents
Alphabetical Listing of SYSLIB Routines
Functional Listing of SYSLIB Routines
Distribution Statement and Listings of SYSLIB Files
1.0 Introduction 1
1.01 What is SYSLIB?
1.02 What is Needed to Use SYSLIB?
1.03 What Does SYSLIB Buy Me?
1.04 How Do I Assemble with SYSLIB?
1.05 How Do I Learn to Use SYSLIB Effectively?
1.06 Who May Use SYSLIB?
3.0 Numeric String Evaluation Routines 15
3.01 Evaluation of String in All Bases -- EVAL
3.02 Evaluation of String in Base 16 -- EVAL16
3.03 Evaluation of String in Base 10 -- EVAL10
3.04 Evaluation of String in Base 8 -- EVAL8
3.05 Evaluation of String in Base 2 -- EVAL2
4.0 Byte-Oriented File Input/Output Routines 18
4.01 Intro to Byte-Oriented File I/O Routines
4.02 Byte-Oriented Input and Output File Open
4.03 Byte-Oriented Input and Output File Close
4.04 Byte-Oriented Input and Output
4.05 Error Return Codes
Table of Contents Continued on Next Page
�
SYSLIB -- An Integrated Library of Assembly Language
Utility Subroutines for use with the Microsoft M80 Assembler
Table of Contents, Continued
5.0 CP/M File Input/Output Routines 23
5.01 Introduction
5.02 Open a File - F$OPEN and F$MOPEN
5.03 Close a File - F$CLOSE
5.04 Create a File - F$MAKE
5.05 Delete a File - F$DELETE
5.06 Rename a File - F$RENAME
5.07 Test for the Existance of a File - F$EXIST
5.08 Read a Block from a File - F$READ
5.09 Write a Block to a File - F$WRITE
6.0 File Name String Parser and FCB Init 28
7.0 Input Line Editors 30
8.0 String Output Routines 34
9.0 Numeri�Outpu� Routine� 35
9.01 Output HL as 4 Hexadecimal Characters
9.02 Output HL as 5 Decimal Characters
9.03 Output HL as Up to 5 Decimal Characters
with Leading Spaces
9.04 Output A as 2 Hexadecimal Characters
9.05 Output A as 3 Decimal Characters
9.06 Output A as Up to 3 Decimal Characters
with Leading Spaces
10.0 String and Value Comparison Routines 40
11.0 Character-Oriented Input/Output Routines 42
11.01 <CR> <LF> Output
11.02 Conditional Input
11.03 General Input Routines
11.04 General Output Routines
12.0 Math Routines 45
12.01 Introduction
12.02 Arithmetic Operations
12.03 Complement Operations
12.04 Rotate and Shift Operations
12.05 Logical Operations
13.0 CRC Routines 49
14.0 Random Number Generator Routines 52
15.0 User/Disk Manipulation Routines 54
Table of Contents Continued on Next Page
�
SYSLIB -- An Integrated Library of Assembly Language
Utility Subroutines for use with the Microsoft M80 Assembler
Table of Contents, Continued
16.0 Sort Routines 56
17.0 ZCPR2 Feature-Specific Routines 58
18.0 ZCPR2-Specific Named Directory Routines 63
19.0 Mis�ellaneous Routines 66
20.0 Cross-Reference Listing of SYSLIB Routines 72
21.0 Sample Programs Using SYSLIB 76
21.01 The Classic File Dump Program
21.02 Byte-Oriented File Input Demonstration
21.03 Directory Access Demonstration
21.04 Math Demonstration
21.05 Sort Demonstration
21.06 Random Number Generator Demonstration
21.07 ZCPR2-Specific Function Demonstration
Versio� Contro� fo� SYSLI� i� accomplishe� throug� th� �
VERSIO� subroutin� i� th� modul� name� SVERSION� Thi� subroutin� �
return� th� curren� versio� numbe� o� SYSLI� i� HL�� wher� Ƞ i� �
the major version number and L is the minor version number.