TITLE "A Hello-World Program with a loop" USE "hawk.h" USE "monitor.h" ARSIZE = 4 INT MAIN S MAIN MAIN: ; entry point STORES R1,R2 ADDI R2,R2,ARSIZE ; --- begin aplication code --- LIS R8,5 ; count = 5 LOOP: ; loop { LOAD R3,PHELLO LIL R1,PUTS JSRS R1,R1 ; puts(HELLO) ADDSI R8,-1 ; count = count - 1 BZR LOOP ; } while (count != 0) ; --- end aplication code --- ADDI R2,R2,-ARSIZE LOADS R1,R2 JUMPS R1 ; return ; --- begin aplication constants --- HELLO: ASCII "Hello world! ",0 ALIGN 4 PHELLO: W HELLO END