Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

DEF SEG and Lprinting multible printers.

marcotheumarcotheu Member Posts: 7
Hi,

I'm working on a installation which consists of one computer with three matrix printers connected to it (parallel port extension cards). See how it will work at http://www.mohr-i.nl/~marco/4kleuranni!.html
I know how I can peek and poke to the three different memory adresses.

DEF SEG &h0040
LPT1% = (peek(&h0009) * 256) + peek(&h0008)
LPT2% = (peek(&h000B) * 256) + peek(&h000A)
LPT3% = (peek(&h000D) * 256) + peek(&h000C)
DEF SEG
(thanks to ben lunt)
But I don't know how to sent text data to the three different printers.
Does annybody have some clues?

Regards

Marco
Marco@mfa.mohr-i.nl
http://www.mohr-i.nl/~marco/index.htm

Comments

  • mstechcamstechca Member Posts: 64
    : Hi,
    :
    : I'm working on a installation which consists of one computer with three matrix printers connected to it (parallel port extension cards). See how it will work at http://www.mohr-i.nl/~marco/4kleuranni!.html
    : I know how I can peek and poke to the three different memory adresses.
    :
    : DEF SEG &h0040
    : LPT1% = (peek(&h0009) * 256) + peek(&h0008)
    : LPT2% = (peek(&h000B) * 256) + peek(&h000A)
    : LPT3% = (peek(&h000D) * 256) + peek(&h000C)
    : DEF SEG
    : (thanks to ben lunt)
    : But I don't know how to sent text data to the three different printers.
    : Does annybody have some clues?
    :
    : Regards
    :
    : Marco
    : Marco@mfa.mohr-i.nl
    : http://www.mohr-i.nl/~marco/index.htm
    :

    Find the port addresses of 3 printers and use them with OUT statements.

    For example, if printer 1 uses a data port 57 hex, printer 2, 58 hex, and printer 3, 59 hex, and each printer is to put on spaces then you would type:

    out &H57,32
    out &H58,32
    out &H59,32

    Why 32? because 32 is ascii for space.
    email: mstechcae@webcity.ca

Sign In or Register to comment.