home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / sampler0 / draft.asm < prev    next >
Assembly Source File  |  1987-12-28  |  513b  |  32 lines

  1. code     segment
  2. assume     cs:code, ds:code
  3.     org    100h
  4. start:
  5.     mov    ah, 40h
  6.     mov    bx, 4
  7.     mov    cx, 2
  8.     mov     dx, offset draft_cmd
  9.     int    21h
  10.     jc    error
  11.     mov    dx, offset ok_msg
  12.     xor    al, al
  13.     jmp    exit
  14. error:
  15.     mov    dx, offset notok_msg
  16.     mov    al, 1
  17. exit:    
  18.     push    ax
  19.     mov    ah, 09h
  20.     int    21h
  21.     pop    ax
  22.     mov    ax, 4C01h
  23.     int    21h
  24.     
  25. draft_cmd  db 1Bh, 'H'
  26.  
  27. ok_msg      db 0Dh, 0Ah, "Printer set for Draft Quality", 0Dh, 0Ah, '$'
  28. notok_msg db 0Dh, 0Ah, "NLQ: Can't access printer", 0Dh, 0Ah, '$'    
  29.     
  30. code    ends
  31.     end start
  32.