[net.micro.pc] printing hex data

pateccles.es@PARC-MAXC.ARPA (12/20/83)

Does anyone know how to send hex data to a printer?  Print commands in the
BASICA environment sends out the character representation of the hex value.
The PRINT command in the OS sends out the hex data in a file but appends
what looks like a file header to the data.  The file header plus the hex data is
sent to the printer in data monitor mode.  How do I send just the hex data in
my file?

cms%mit-pamela@sri-unix.UUCP (12/20/83)

From:  Chris Schmandt <cms@mit-pamela>

You can send hex data to the printer as follows:
(I assume that you want the actual bits sent, as opposed
to printing "A" for bits "1010")

>From basic:
	lprint chr$(hex_value);  

the ; prevents a <cr>

chr$ converts an integer to equivalent character

Alternatively, put the hex value in the DL register and use
DOS function call 5. All DOS function calls are documented in
an appendix to the DOS manual.