values is larger LDJ A SBJ B /Subtract B from A SIP J /Test for A positive JMP BRAN /No! B > A LDJ ABCST /Yes! A > B SKIP /Skip next instruction BRAN, LDJ BACST / /Set up and output expression / JPS OUT STOP JMP START / /Working or data storage area / A, 0 /Constant A B, 0 /Constant B ABCST, AB /Address of A > B literal BACST, BA /Address of B > A literal C260, 260 /ASCII zone constant / /Input routine + ASCII zone strip / Input, 0 /Entry point TIS JMP .-1 TRF TCP /Echo input at teletype TOS JMP .-1 SBJ C260 JMP@ INPUT / /Output routine - Output ASCII expression / Out, 0 /Entry point STJ LOOP+1 LDJ C5 /Set number of character constant STJ CTR / /Output data loop / Loop, TWLDJ 0 TCP TOS JMP .-1 ISZ LOOP+1 DSZ CTR /Test for all characters out JMP LOOP /No JMP@ Out /Return C5, 5 CTR, 0 / /Output messages / AB, 215 212 301 /A 276 /> 302 /B BA, 215 212 302 /B 276 /> 301 /A $ /End character NUTRAN NUTRAN, a conversational, FORTRAN-like language, was provided. NUTRAN was intended for general scientific programming. A sample of NUTRAN is shown below: 1 PRINT 'INPUT VALUES FOR X AND Y' 2 INPUT X,Y 3 Z=X+Y 4 PRINT 'X+Y= ',Z 5 STOP An example of the conversational nature of NUTRAN is shown below. > is the command prompt and : is the input prompt. >1.G INPUT VALUES FOR X AND Y :3 :2 X+Y= .5000000E 1 > Instruction formats The instruction set consists of single and double word instructions. Operands can be immediate, direct or indirect. Immediate operands are encoded directly in the instruction as a literal value. Direct operands are encoded as the address of the operand. Indirect operands encode the address of the word containing a pointer to the operand. Single word instructions The displacement and sign bit allow single word instructions to address locations between -63 and +63 of the location of the instruction. Bit 4 of the instruction allows for a choice between indirect and direct addressing. When the displacement is used as an indirect address, the contents of the location which is +/-63 locations from the instruction location is used as a pointer to the actual operand. Many single word instructions do not reference memory