Hello world/Line printer: Difference between revisions

Content deleted Content added
Edmund (talk | contribs)
Line 8: Line 8:
A [[wp:line printer|line printer]] was an older-style printer which prints one line at a time to a continuous ream of paper.
A [[wp:line printer|line printer]] was an older-style printer which prints one line at a time to a continuous ream of paper.
With some systems, a line printer can be any device attached to an appropriate port (such as a parallel port).
With some systems, a line printer can be any device attached to an appropriate port (such as a parallel port).

=={{header|360 Assembly}}==
<lang 360asm>HELLO CSECT
PRINT NOGEN
BALR 12,0
USING *,12
OPEN LNPRNTR
LA 6,HW
PUT LNPRNTR
CLOSE LNPRNTR
EOJ
LNPRNTR DTFPR DEVADDR=SYSLST,IOAREA1=L1
L1 DS 0CL133
HW DC C'Hello world!'
END HELLO</lang>


=={{header|Ada}}==
=={{header|Ada}}==
Line 31: Line 46:
end Print_Line;
end Print_Line;
</lang>
</lang>

=={{header|ALGOL 68}}==
=={{header|ALGOL 68}}==