Category : Assembly Language Source Code
Archive   : R42MAC.ZIP
Filename : TEST.MLC

 
Output of file : TEST.MLC contained in archive : R42MAC.ZIP
SAMPLEIO BEGIN
OPEN INFILE
OPEN OUTFILE
MAINLOOP BAL 8,READREC
READRTN MVC OUTREC,EBCBLANK
* CLI INCODE,CRCTCODE
* BE GOODCODE
* MVC OTMESG,CODEERR
* B OUTPUTIT
B WRITEREC
WRTRTN B MAINLOOP
*
READREC MVC INREC,ASCBLANK
GET INFILE,INREC
LA R1,INREC
LA R2,L'INREC
SVC ASCEBC
BR 8
*
WRITEREC MVC OUTREC,EBCBLANK
MVC OUTREC,INREC
LA R1,OUTREC
LA R2,L'OUTREC
SVC EBCASC
PUT OUTFILE,OUTREC
B WRTRTN
*
EOJ CLOSE INFILE
CLOSE OUTFILE
RETURN
R1 EQU 1
R2 EQU 2
ASCEBC EQU 12
EBCASC EQU 13
INFILE DCB DDNAME=C:\AUTOEXEC.BAT,
DSORG=S,
LRECL=80,
RECFM=T,
MACRF=G,
EODAD=EOJ

OUTFILE DCB DDNAME=CON,
DSORG=S,
LRECL=82,
RECFM=T,
MACRF=P

ASCBLANK DC X'20'
INREC DS CL80

EBCBLANK DC X'40'
OUTREC DS CL80
DC X'0D0A'
END SAMPLEIO


  3 Responses to “Category : Assembly Language Source Code
Archive   : R42MAC.ZIP
Filename : TEST.MLC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/