   0 ;;  test assembly file for as2
   0 .s
   0 print 1	  ;; special trap to print R[0]
   0 stop 0
   0 temp 101
   0 one 102
   0 array 103
   0 base 5
   0 idx 6
   0 .a 10
  10 .c
  10 :start	ld r1 one	;; absolute address
  11 	ld r2 @10 r3	;; displacement address
  12 	ld r1 +base idx	;; index address
  13 	ld r1 #temp
  14 	st array r1
  15 	st @one base r1
  16 	st +r2 r3 r1
  17 	jmp eq loop
  18 	jal r3 sub1
  19 	jmp always start  ;; jump uncondition
  20 :loop	add r1 r3 #4	;; immediate address
  21 	add r1 r2 r3
  22 	or r1 r2 r0	;; move r1 <- r2
  23 	xor r1 r2 #-1	;; r1 = complement r2
  24 	mul r1 r2 r3
  25 :sub1	shl r3 r4
  26 	jr r3		;; return from subroutine
  27 	trap print r0
  28 	trap stop r0
  29 :data			;; data segment
  29 .w 11 22 33		;; size word
  32 .e
