                        ;; swap array
                        ;; A is at 100, length 10
                        
                        ;; let r2 = i, r3 = test, r4 = t, r5 = t2, r6 = i+1
                        
                        .symbol
                          A 100
                        .code 0
   0 L 5 2 0              mv r2 #0
                        :loop
   1 D 19 3 2 10          lt r3 r2 #10
   2 L 9 3 10             jf r3 exit
   3 D 2 4 2 100          ld r4 @A r2
   4 D 10 6 2 1           add r6 r2 #1
   5 D 2 5 6 100          ld r5 @A r6
   6 D 4 5 2 100          st @A r2 r5
   7 D 4 4 6 100          st @A r6 r4
   8 D 10 2 2 2           add r2 r2 #2
   9 L 6 0 1              jmp loop
                        :exit
  10 X 31 0 0 0 19        trap 0
                        .data 100
                          1 2 3 4 5 6 7 8 9 10
                        .end
