Child's play.

Assuming BranchZ X means "goto X if the last math instruction resulted in 0"

Use subtranction to compare the numbers A & B

I'm guessing this pseudo machine LOADs X into an "internal register", then the math routines use that number in conjunction with the second number for that instruction

like to display the addition of what is in location 13 and 14 would work like

LOAD 13

ADD 14

PRINT

if A-B is 0 then they are equal, branchz to a spot where you can Print 0

otherwise print 1 and terminate

Last edited: Feb 12, 2004