DECsystem-10 Structured Programming Macros The rules for structured programming show that only three structures of flow are needed to flowchart or program any problem. The problem with this is that no facilities are available to the assembler programmer on most machines to make use of the structured programming techniques directly. This is what prompted the development of this set of structured programming macros for the DECsystem-10. Five structures are implemented: 1. WHILE / ENDWHILE %WHILE ; DO (code) %ENDWHILE 2. IF / ELSE / ENDIF %IF ; THEN (true code) %ELSE (false code) %ENDIF - OR - %IF ; THEN (true code) %ENDIF 3. REPEAT / UNTIL %REPEAT (code) %UNTIL 4. CASE / WHEN / ENDCASE %CASE %WHEN ; DO (code) %WHEN ; DO (code) %ENDCASE 5. LOOP / EXITIF / ENDLOOP %LOOP (code) %EXITIF (code) %ENDLOOP STRUCTURED PROGRAMMING MACROS Page 2 R.P.NIX 11/21/78 is defined as: <,AND,> <,OR,> > instr is defined as a SKIP, CAI, or another instruction which skips on condition met, and accepts an opcode extension giving the condition to be met. cond is defined as the opcode extension (E, N, LE, L, etc.) to be used with instr. E.G. <<>,AND,>,OR,> If any improvments or additions are made to these macros, any errors are found, or a set of similar macros are desired for IBM 370 series computers, please write to: Robert P. Nix AMAX Coal Company 105 S. Meridan Street Indianapolis, Indiana 46225 For the IBM macros, please send a magtape, and I will return it with the IBM assembler macros in DEC-10 backup/interchange format, 1600 or 800 bpi, 9trk.