I am fairly new to assembly programming. I am a fairly experienced in a few higher level languages, most notable is java. I have a small program that can basically echo the contents of a file back to me, but I would like it to echo each character on a new line.
I was wondering what the code was to start a new line after each character is printed.
READ GET INDCB,REC
WTO REC1
CVD R2,COUNT
ED RESULT,COUNT+6
B READ
I was wondering what the code was to start a new line after each character is printed.
Hm, which assembler is that written for? Pretty funky syntax.
It is what we are being taught at school.
http://math-cs.cns.uni.edu/~okane/041/041.html <= scroll down until you find simulator in the left side of the table.
I guess this is for an S/390 IBM series.
http://math-cs.cns.uni.edu/~okane/041/041.html <= scroll down until you find simulator in the left side of the table.
I guess this is for an S/390 IBM series.
Hm, which assembler is that written for? Pretty funky syntax.
Looks like IBM OS/390 or z/OS (zSeries) mainframe stuff? Can anyone verify this??? Looks like I posted that a bit too late :P
I have no further knowledge on this subject myself.
Most people here are x86 types, but I hope someone can answer your question ;)
I suspect you will need to issue a new "write" command for each line.
When I left the IBM mainframe world many, many years ago, the systems had only record-oriented I/O. For text I/O, that meant each line was a separate record. We did not use a control command, nor an end-of-line character. For printers, you could specify with JCL that you had one "control character" at the beginning of each line.
When I left the IBM mainframe world many, many years ago, the systems had only record-oriented I/O. For text I/O, that meant each line was a separate record. We did not use a control command, nor an end-of-line character. For printers, you could specify with JCL that you had one "control character" at the beginning of each line.