home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / wasm202.zip / PRES.ASM < prev    next >
Assembly Source File  |  1986-12-25  |  1KB  |  45 lines

  1.  
  2.  Title 'Wolfware Sample Program', 'Printer Reset'
  3.  
  4. ;===============================================;
  5. ;           Printer Reset Version 1.10          ;
  6. ;                                               ;
  7. ; Initialize first parallel printer through the ;
  8. ; BIOS printer routine. Once assembled, to      ;
  9. ; reset the printer, type:                      ;
  10. ;                                               ;
  11. ;   PRES                                        ;
  12. ;                                               ;
  13. ; This routine has the effect of initializing   ;
  14. ; the printer to its power on characteristics.  ;
  15. ;===============================================;
  16.  
  17.  Proc Far
  18.  
  19. ;----- equates
  20.  
  21. Port Equ 0              ;printer port to initialize
  22.  
  23. ;----- display message
  24.  
  25.  Mov Dx, Offset Presmess ;message location
  26.  Mov Ah, 9              ;string output
  27.  Int 21h                ;execute
  28.  
  29. ;----- reset printer port
  30.  
  31.  Mov Ah, 1              ;function number
  32.  Mov Dx, Port           ;printer port number
  33.  Int 17h                ;execute
  34.  
  35. ;----- exit
  36.  
  37.  Mov Ax, 4c00h          ;function and error code 0
  38.  Int 21h                ;exit
  39.  
  40. ;----- message
  41.  
  42. Presmess Db 10,'Printer ', Port + '0' + 1 ,' reset', 13,10,'$'
  43.  Endp                   ;main program
  44.  
  45.