我需要创建 MAL 的扩展。所以,首先我尝试添加 mic1sim.mal
MAR = SP = SP + 1; rd // read top of the stack
H = TOS // H will be a SP
MDR = H = H >> 1; wr // SHIFT 1 and write on MDR
MDR = H = H >> 1; wr // SHIFT 1 + 1 = 2
MDR = H = H >> 1; wr // SHIFT 1 + 1 + 1 = 3
MDR = H = H >> 1: wr // 4th shift
TOS = MDR; goto Main1 // TOS updated
但不起作用!有人可以解释我哪里错了吗?