402 ; Following is a minimal program for sending a sequence of bytes to the ; PRN printer-device. The codes that are sent appear in the DB statement ; following the label CODES. PRINT_CODES: ; mov dx,fname ; mov ax,03c00 ; int 33 MOV DX,CON_NAME ; point to the screen's device name MOV AX,03D01 ; MSDOS codes for "open for writing" INT 33 ; call MSDOS to open the screen device XCHG BX,AX ; swap the screen's open-file handle into BX MOV DX,CODES ; point to the codes we are outputting MOV CX,LENGTH ; load the number of code bytes MOV AH,040 ; MSDOS code for "write" INT 33 ; write the codes to the sceen MOV AX,04C00 ; MSDOS codes for "successful process termination" INT 33 ; go back to the operating system CON_NAME: DB 'CON',0 ;fname: ; db 'c:\test.fil',0 CODES: DB "Hej du, jag „r en gammal idiot...",13,10,13,10,0 ; single form-feed for the PAGE program LENGTH EQU $-CODES . 0