.TITLE FORE ; ; The following programs are used in the RT-11 User and RT-11 ; Programmer self paced instruction courses for RT-11 V4.They are also ; similar to programs used in the Programming with RT-11 series for ; RT-11 V5.0 or later. The name of the files are as specified in the ; self paced course. ; ; The code is supplied as a service as Digital does not supply these ; on diskette. ; Any copyright is the property of Digital Equipment Corporartion ; ; ; PROGRAM WILL PRINT "HELLO FROM THE FOREGROUND" ; EVERY FIVE SECONDS ; .MCALL .PRINT,.TWAIT,.EXIT LOOP: .PRINT #HELLO ;PRINT MESSAGE .TWAIT #AREA,#TIME ;WAIT BCC LOOP ;DO AGAIN IF .TWAIT SUCCESSFUL .PRINT #QERR ;ELSE PRINT ERROR MESSAGE .EXIT HELLO: .ASCIZ /HELLO FROM THE FOREGROUND/ QERR: .ASCIZ /?NO QUEUE ELEMENT AVAILABLE?/ .EVEN AREA: .BLKW 2 ;EMT AREA TIME: .WORD 0,60.*5 ;FIVE SECONDS WORTH OF TICKS .END LOOP