home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / assemutl.zip / CLOCK.DOC < prev    next >
Text File  |  1985-05-11  |  3KB  |  68 lines

  1.  
  2.     This documentation describes CLOCK.ASM and CLOCK.COM, a sample program
  3.  written for upcoming DEBUG and MASM conferences.  This program is written
  4.  in IBM MACRO ASSEMBLER (MASM), and uses the file ASSEMBLE.MAC for the
  5.  macro library.  The program is not elegant; rather I did my best to write
  6.  a program and macro library which would be a good example for beginning
  7.  A/L programmers.  The macros make use of conditional assemblies, and are
  8.  (hopefully), well enough documented to be used by beginning programmers.
  9.  some of them (like LOCATE and CLS) are very useful in making the program
  10.  easier to write.  others, like DOSCALL, are just to make the program
  11.  easier to understand.
  12.  
  13.   - This program intercepts interrupt 23h (control-break).
  14.   - There are DOS calls for date and time, there are examples of table
  15.     lookups.
  16.   - The month and day names are ASCIIZ strings (standard ASCII strings
  17.     ending with 00h), and DOS calls are used to display data on the screen.
  18.   - Some of the macros in the macro library are not used, but are there for
  19.     your use and modification.    CLOCK.COM will currently run only on an 80
  20.     column screen.  To run CLOCK.COM on a 40 column screen, change the
  21.     equate columns from 80 to 40.  The program initialization phase can be
  22.     modified to get the attributes from a call to BIOS.  I leave that up to
  23.     you as an exercise in modifying the program.
  24.  
  25.   - CLOCK.ASM is set up to run as a .COM file.    Note that there is no stack
  26.     segment and the program starts at xxxx:0100H (an ORG 100H preceeds the
  27.     first executable statement).  This program will not run as an .EXE file
  28.     and must be run through EXE2BIN.EXE.  The following proceedure will
  29.     allow you to assemble, link, and convert CLOCK.ASM to CLOCK.COM.  This
  30.     proceedure assumes you have a disk with CLOCK.ASM and ASSEMBLE.MAC in
  31.     drive B and MASM.EXE, LINK.EXE and EXE2BIN.EXE on a disk in drive A.
  32.  
  33. B>A:MASM CLOCK,,;
  34.  
  35. THE IBM PERSONAL COMPUTER MACRO ASSEMBLER
  36. VERSION 1.00 (C)COPYRIGHT IBM CORP 1981
  37.  
  38. WARNING SEVERE
  39. ERRORS    ERRORS
  40. 0    0
  41.  
  42. B>A:LINK CLOCK;
  43.  
  44. IBM PERSONAL COMPUTER LINKER
  45. VERSION 1.10 (C)COPYRIGHT IBM CORP 1982
  46.  
  47.   WARNING: NO STACK SEGMENT
  48.  
  49. THERE WAS 1 ERROR DETECTED.
  50.  
  51. B>A:EXE2BIN CLOCK CLOCK.COM
  52.  
  53. B>
  54.  
  55. At this time, you will have the following files on your diskette:
  56.  
  57. CLOCK.ASM
  58. CLOCK.OBJ
  59. CLOCK.LST
  60. CLOCK.EXE
  61. CLOCK.COM
  62.  
  63.     CLOCK.OBJ and CLOCK.EXE are intermediate files, they can be erased.
  64.  CLOCK.ASM is, of course, still our input file, CLOCK.LST is the ASSEMBLER
  65.  OUTPUT listing, and CLOCK.COM is the ready to run file.
  66.  
  67.  
  68.