# ``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
bsy@cse.ucsd.edu, last updated