Hello everyone,
In my version of the textbook I have the following psuedo code for the Skipcond command.
if IR[11-10] = 00 then
if AC < 0 then PC <- PC+1
else if IR[11-10] = 01 then
if AC = 0 then PC <- PC+1
else if if IR[11-10] = 10 then
if AC > 0 then PC <-PC + 1
So when I run the simulator and write my own assembly program I don't get results that are consistent with the textbook. For example my program uses Skipcond 001 and during execution the next instruction is skipped as if AC = 0 but in reality there is a negative integer value in AC. And when I use Skipcond 000 or Skipcond 010 I get equivalent behavior even though they should be exclusive operations.
Has anyone been using the simulator successfully? Is the ISA different in more recent versions of the textbook?
Thanks.
-Eddie