; ---------------------------------------------------------- ; One of a series of sample PC-231 programs to print strings ; Version #1: printes a fixed string which is "baked in" to ; the program; straight-line use of DATA and WRITE instructions. ; ; by Fritz Ruehr # CS 231 # Fall 1998 DATA 'G' ; put first letter into DR WRITE DR,D2 ; echo ASCII character to display DATA 'o' ; more data WRITE DR,D2 ; print again DATA 'o' ; more data WRITE DR,D2 ; print again DATA 'd' ; more data WRITE DR,D2 ; print again DATA 'b' ; more data WRITE DR,D2 ; print again DATA 'y' ; more data WRITE DR,D2 ; print again DATA 'e' ; more data WRITE DR,D2 ; print again HALT ; end of program ; --- End of print1 program ---