home *** CD-ROM | disk | FTP | other *** search
-
- This documentation describes CLOCK.ASM and CLOCK.COM, a sample program
- written for upcoming DEBUG and MASM conferences. This program is written
- in IBM MACRO ASSEMBLER (MASM), and uses the file ASSEMBLE.MAC for the
- macro library. The program is not elegant; rather I did my best to write
- a program and macro library which would be a good example for beginning
- A/L programmers. The macros make use of conditional assemblies, and are
- (hopefully), well enough documented to be used by beginning programmers.
- some of them (like LOCATE and CLS) are very useful in making the program
- easier to write. others, like DOSCALL, are just to make the program
- easier to understand.
-
- - This program intercepts interrupt 23h (control-break).
- - There are DOS calls for date and time, there are examples of table
- lookups.
- - The month and day names are ASCIIZ strings (standard ASCII strings
- ending with 00h), and DOS calls are used to display data on the screen.
- - Some of the macros in the macro library are not used, but are there for
- your use and modification. CLOCK.COM will currently run only on an 80
- column screen. To run CLOCK.COM on a 40 column screen, change the
- equate columns from 80 to 40. The program initialization phase can be
- modified to get the attributes from a call to BIOS. I leave that up to
- you as an exercise in modifying the program.
-
- - CLOCK.ASM is set up to run as a .COM file. Note that there is no stack
- segment and the program starts at xxxx:0100H (an ORG 100H preceeds the
- first executable statement). This program will not run as an .EXE file
- and must be run through EXE2BIN.EXE. The following proceedure will
- allow you to assemble, link, and convert CLOCK.ASM to CLOCK.COM. This
- proceedure assumes you have a disk with CLOCK.ASM and ASSEMBLE.MAC in
- drive B and MASM.EXE, LINK.EXE and EXE2BIN.EXE on a disk in drive A.
-
- B>A:MASM CLOCK,,;
-
- THE IBM PERSONAL COMPUTER MACRO ASSEMBLER
- VERSION 1.00 (C)COPYRIGHT IBM CORP 1981
-
- WARNING SEVERE
- ERRORS ERRORS
- 0 0
-
- B>A:LINK CLOCK;
-
- IBM PERSONAL COMPUTER LINKER
- VERSION 1.10 (C)COPYRIGHT IBM CORP 1982
-
- WARNING: NO STACK SEGMENT
-
- THERE WAS 1 ERROR DETECTED.
-
- B>A:EXE2BIN CLOCK CLOCK.COM
-
- B>
-
- At this time, you will have the following files on your diskette:
-
- CLOCK.ASM
- CLOCK.OBJ
- CLOCK.LST
- CLOCK.EXE
- CLOCK.COM
-
- CLOCK.OBJ and CLOCK.EXE are intermediate files, they can be erased.
- CLOCK.ASM is, of course, still our input file, CLOCK.LST is the ASSEMBLER
- OUTPUT listing, and CLOCK.COM is the ready to run file.
-
-