simulator working for 1 instruction