Input loop: Difference between revisions
Content added Content deleted
(Example added in PDP-10 assembly (MACRO-10/TOPS-20).) |
m (Fixed typo in comment of MACRO-10 example.) |
||
Line 2,055: | Line 2,055: | ||
MOVE T1,IN.JFN ;Read from IN.JFN (opened file) |
MOVE T1,IN.JFN ;Read from IN.JFN (opened file) |
||
HRROI T2,IN.BUF ;and write into IN.BUF. |
HRROI T2,IN.BUF ;and write into IN.BUF. |
||
MOVNI T3,MAXCHR ; |
MOVNI T3,MAXCHR ;Read maximum of MAXCHR characters. |
||
SIN% ;Read string from file. |
SIN% ;Read string from file. |
||
ERCAL [ MOVE T1,IN.JFN ; Error occured... |
ERCAL [ MOVE T1,IN.JFN ; Error occured... |