
Code listing:
-------------

; A sample PC 231 program to multiply inputs by 72
; Fritz Ruehr # CS 231 # Fall 1998

  000  00             C00  READ   R0,DD       ; Read into R0 using decimal
  001  01             901  COPY   R0,R1       ; Another copy of input into R1
  002  02             50D  SHIFT  R0,-6       ; Multiply R0 by 64
  003  03             51A  SHIFT  R1,-3       ; Multiply R1 by 8
  004  04             601  ADD    R0,R1       ; Add together to get x 72
  005  05             D10  WRITE  R1,DD       ; print out answer in decimal
  006  06             000  HALT               ; all done

; End of mult72 program


Hex machine code listing:
-------------------------

C00 901 50D 51A 601 D10 000 
