code    segment
assume  cs:code, ds:code
        org     100h
start:
        mov     ah, 40h
        mov     bx, 4
        mov     cx, 2
        mov     dx, offset draft_cmd
        int     21h
        jc      error
        mov     dx, offset ok_msg
        xor     al, al
        jmp     exit
error:
        mov     dx, offset notok_msg
        mov     al, 1
exit:
        push    ax
        mov     ah, 09h
        int     21h
        pop     ax
        mov     ax, 4C01h
        int     21h

draft_cmd  db 1Bh, 'H'

ok_msg    db 0Dh, 0Ah, "Printer set for Draft Quality", 0Dh, 0Ah, '$'
notok_msg db 0Dh, 0Ah, "NLQ: Can't access printer", 0Dh, 0Ah, '$'

code    ends
        end start
