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.

        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.
Posted on 2007-03-06 17:14:24 by concorde
Hm, which assembler is that written for? Pretty funky syntax.
Posted on 2007-03-06 17:25:59 by f0dder
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.
Posted on 2007-03-06 17:35:40 by concorde

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 ;)
Posted on 2007-03-06 17:36:36 by SpooK
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.
Posted on 2007-03-16 20:35:32 by tenkey