打印机的复位 上海 庄炯 1994-09-02 程序清单: LPT1 equ 0008h code segment assume cs:code,ds:code org 100h start: mov ax,j0040h mov ds,ax mov dx,ds:LPT1 ;dx=LPT1 data port inc dx ;dx=LPT1 state port  inc dx ;dx=LPT1 command port mov al,08h out dx,al  push dx  mov dx,0032h  mov cx,0000h  mov ah,86h  int 15h  pop dx  mov al,0Ch  out dx,al  int 20h code ends  end start (上海 庄炯)