;; This program read in 3 numbers, outputs 1 if the product of ;; the first two equals the third, and outputs -1 otherwise. ;; ;; Date Written: 2008/02/13 ;; Author: SS read 0 ; first input number read 1 ; second input number read 2 ; third input number mul 3, 0, 1 seq 4, 3, 2 li 5, 9 jeqz 4, 5 write 4 halt li 4, -1 write 4 halt