2 ms·
Here's my latest tentative approach to the values problem, where you use cpu[value_code] to get and set, dispatching being done behind the scenes. https://gith
by lloeki 15y ago
Here's my latest tentative approach to the values problem, where you use cpu[value_code] to get and set, dispatching being done behind the scenes.
https://github.com/lloeki/python-dcpu_16/blob/e78f4b8af895dba34627e4a3f57e6a8771460ee6/dcpu_16.py https://github.com/lloeki/python-dcpu_16/blob/e78f4b8af895db...
Note that this may cause some problems with evaluation order (notably in SET), as spec says a should always be evaluated before b.