input
contents ::
  emulator2.c
  e1
  input
  simple

% Compute x^y

         INP R1                  % Read x
         INP R2                  % Read y
         MOV R3, 1
LOOPTOP:
         BLT END, R2, 1%A legel but ugly commment
         MUL R3, R3, R1
         SUB R2, R2, 1
         BRU LOOPTOP
END:
         OUT R3
         HLT

#
-2
5
#
#

James Little