AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages! You are not logged in. Login here for full access privileges. |
Previous Message | Next Message | Back to BAT Magic <-- <--- | Return to Home Page |
|
||||||
From | To | Subject | Date/Time | |||
Visitor | JOOST BERKHOUT | Print ESC |
November 5, 1995 2:55 PM * |
|||
JB> Hi everybody, JB> Does anyone know how you can send ESC-codes to the printer and do I JB> have to choose Hex. of Dec. numbers? Because both numbers are in the JB> manual of the printer. This is very nice for linefeeds, formfeed al JB> that kind of things in batch-files --[Cut here]---------------------------------------------------------- n ESC.COM e100 31 D2 B8 1B 0 CD 17 BB 80 0 8A F 30 ED E3 F 43 49 E3 B 43 8A 7 31 e118 D2 30 E4 CD 17 E2 F5 CD 20 Rcx 21 W Q --[Cut here]---------------------------------------------------------- Save the script between the hash marks to an ASCII file. At the DOS prompt enter, "DEBUG < filename" where "filename" is the name of the saved ASCII file. This little program uses the decimal numbers to send <Esc> sequences to the printer. For example, <Esc>x1 sets NLQ mode on my printer. So to turn on NLQ mode I enter "ESC x1" at the DOS prompt or as a line in a batch file. Should you be interested in the source code: seg000 segment byte public 'CODE' assume cs:seg000 org 100h ;--------------------------------------------------------- assume es:seg000, ss:nothing, ds:seg000 start: xor dx, dx mov ax, 1Bh int 17h ; PRINTER - OUTPUT CHARACTER ; AL = character, DX = printer port (0-3) ; Return: AH = status bits mov bx, 80h mov cl, [bx] xor ch, ch jcxz Finish inc bx dec cx jcxz Finish print: inc bx mov al, [bx] xor dx, dx xor ah, ah int 17h ; PRINTER - OUTPUT CHARACTER ; AL = character, DX = printer port (0-3) ; Return: AH = status bits loop print Finish: int 20h ; DOS - PROGRAM TERMINATION ; returns to DOS--identical to INT 21/AH=00h ;--------------------------------------------------------- seg000 ends end start ___ Blue Wave/QWK v2.12 |
||||||
|
Previous Message | Next Message | Back to BAT Magic <-- <--- | Return to Home Page |
Execution Time: 0.0136 seconds If you experience any problems with this website or need help, contact the webmaster. VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved. Virtual Advanced Copyright © 1995-1997 Roland De Graaf. |