If you mean displaying data on paper in HEX I'm not sure that's
something your 4M can.
I seem to remember you did that on dot matrix printers, but would have
to check.
The Laserjet has got "Display Functions Mode"
Description:
Used to debug graphics and macro control sequences, by printing the
commands rather than executing them.
EscY enables, EscZ disables.
Enable DFM should be preceeded with "End of Line Wrap" command to
prevent lines of function commands from extending over the right margin
of the page and being clipped.
Usage:
Esc&s0C Enable line wrapping
EscY Start display mode
DATA Graphics or macro data
EscZ End display mode
Esc&s1C Disable line wrapping
Below a little MASM program I made in the early nineties to be used on
my Laserjet 4+
TITLE DISPLON.ASM
;Displays codes send to printer
;--------------------------------------
CODE SEGMENT 'CODE'
ASSUME DS:CODE,SS:CODE
ORG 0100H
.RADIX 10H
MAIN PROC FAR
CALL WRITE
DOS_EXIT: MOV AX,4C00 ;Terminate program
INT 21 ;DOS
MAIN ENDP
WRITE PROC NEAR
MOV AH,40 ;Write file or device
MOV BX,0004 ;Handle device PRN
MOV CX,WRITE_LEN ;Bytes to write
MOV DX,OFFSET WRITE_DATA ;Offset raster
INT 21 ;DOS
RET
WRITE ENDP
;-----------------------------------------
WRITE_DATA LABEL BYTE
DB 1B,"&s0C"
DB 1B,"Y"
WRITE_LEN EQU $-OFFSET WRITE_DATA
CODE ENDS
END MAIN