奔图m6505打印机驱动

  • 奔图m6505打印机驱动已关闭评论
  • A+
所属分类:远程维修
摘要

节请参考如下M6505驱动程序:;*************************************************************;*M6505PrinterDriver*;*************************************************************

请参考如下M6505驱动程序:

;************************************************************* ;* M6505 Printer Driver * ;************************************************************* ;* Programmer: ___________________________ * ;* Date Written: _________________________ * ;************************************************************* ;* Program Description: * ;* This driver is used to control a M6505 Printer. * ;************************************************************* ; DS:0000 ; Set DS to 0000h MOV AX, @data ; Get offset of data segment MOV DS, AX ; Set DS to data segment MOV DX, 0040h ; Get base address of printer MOV AL, 02h ; Set printer mode OUT DX, AL ; Send to printer DEC DX ; Subtract 1 from DX MOV AL, 00h ; Set line spacing to 0 OUT DX, AL ; Send to printer MOV AX, 0DE00h ; Set page length to 220 OUT DX, AL ; Send to printer XOR BX, BX ; Clear BX for loop MOV CX, 10h ; Set CX to 10h LOOP: MOV DI, LINE ; Get offset of line MOV AL, 10h ; Initialize line MOV AH, 0 ; counter OUT DX, AL ; Send line to printer INC BX ; Increase BX XiLoop: MOV AL, [DI] ; Get character at DI INC DI ; Increment DI DEC AH ; Decrement line counter CMP AH, 0 ; Is AH equal to 0? JE PrintLF ; If so, print linefeed INC AL ; Increment AL JMP XiLoop ; Otherwise, repeat PrintLF: MOV AL, 0AH ; Set linefeed character OUT DX, AL ; Send linefeed to printer LOOP LOOP ; END OF DRIVER ; LINE DB 'THIS IS A TEST$' ; 10 Characters, termination ; character $ ; End of program

另外,还可以参考M6505驱动程序的官方文档,以确保程序的正确性。

  • 微信在线客服
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 扫一扫码上服务
  • weinxin