内容 5.2 A Register-Machine Simulator · 422
练习 自检推理
Exercise 5.13: Modify the simulator so that it
uses the controller sequence to determine what registers the machine has rather
than requiring a list of registers as an argument to make-machine.
Instead of pre-allocating the registers in make-machine, you can
allocate them one at a time when they are first seen during assembly of the
instructions.
练习 5.13:修改模拟器,使其通过控制器序列来确定机器拥有哪些寄存器,而不是要求在 make-machine 的参数中给出寄存器表。不必在 make-machine 中预先分配寄存器,而是在汇编指令时第一次遇到某寄存器时再为其分配。
我的笔记 自动保存