OIC: difference


# ``sub 0,1,2'' instruction:  mem[2] = mem[0] - mem[1];
# inputs are x and y in locations 0 and 1 respectively
	move 0,2	# mem[2] = mem[0] = x
			# see move macro
			# we assume an otherwise unused scratch memory
			# location is used in the move macro.
	subz 2,1,next	# mem[2] = mem[2]-mem[1] = x - y

[ CSE 80 | ACS home | CSE home | CSE calendar | bsy's home page ]
picture of bsy

bsy@cse.ucsd.edu, last updated Wed Oct 16 22:37:36 PDT 1996.

email bsy