You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sicp-all-tasks/sicp/5_002e18

8 lines
447 B

Exercise 5.18: Modify the make-register
procedure of 5.2.1 so that registers can be traced. Registers
should accept messages that turn tracing on and off. When a register is
traced, assigning a value to the register should print the name of the
register, the old contents of the register, and the new contents being
assigned. Extend the interface to the machine model to permit you to turn
tracing on and off for designated machine registers.