/******** ICE-5100 EMULATOR (DOS) TUTORIAL FEATURE MODULE SCREEN #G.5 **********/ menu = 1 define literally PR = 'include scrG.4 nolist' define literally R = 'include scrG.5 nolist' define literally N = 'include scrG.6 nolist' define literally M = 'include FMOD nolist' DEFINE WORD VAR1 cls /******************************************************************************/ ' ---------------------------' 'The REPEAT .. END construct executes statements | SCRG5: DEBUG PROCs 5 |' 'WHILE or UNTIL a specified condition is TRUE. | N = Next Screen |' ' | R = Rewrite SCRG5 |' 'In the following example, VAR1 is set to zero, | PR = Previous screen |' 'then incremented until it is equal to 5. Enter | M = Go to features menu |' 'the following PROC. Enter: | Q = Quit tutorial |' ' | RTN = Return to main path |' ' DEFINE PROC INCVAR = DO | SCR# = Screen desired |' ' VAR1 = 0 ---------------------------' ' REPEAT ' ' VAR1 = VAR1 + 1 ' ' WRITE ''VAR1 ='',VAR1 ' ' UNTIL VAR1 == 5 ' ' END ' ' END ' ' ' 'Now invoke the PROC. Enter: ' ' ' ' INCVAR ' ' ' 'Now remove the proc by entering:' ' REMOVE INCVAR ' '-------------Enter N to continue with this Feature Module--------------'