02.07.2013 Views

Type III C lass A Program

Type III C lass A Program

Type III C lass A Program

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

area following the characters read is set to blanks (hex<br />

'40') if U or S is specified. The X option returns the line<br />

exactly as typed. U is the default option.<br />

Note:<br />

The number of bytes read field is in the low-order three<br />

bytes of a full word. For example" if the label specified<br />

is LAB. the number may be obtained by a LOAD HALF<br />

instruction from LAB+1.<br />

Examples:<br />

a. RD TYPIN BUFF1. LNGTH<br />

NEXT LH 2"LNGTH+1<br />

BUFF1 DS CL130<br />

This sequence reads a line from the terminal into BUFFl.<br />

Since no ED= option is specified, U is assumed. Delete<br />

characters are interpreted, the length adjusted, lowercase<br />

letters translated to uppercase!, and the buffer behind the<br />

line set to blanks before control is returned at NEXT,. The<br />

LB instruction places the number of characters read into<br />

Register 2.<br />

b. GET TYPIN B,ED=X<br />

B DS 33F<br />

This macro reads a terminal line into B. The X option<br />

indicates that no editing is to be performed on the line.<br />

TYPIN Macro 291

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!