Re:C-based Virtual Machine for Notch's DCPU-16
by a1k0n on Wednesday April 04, 2012 @01:38PM
(#3798750)
And I'm pretty sure the O register isn't supposed to be set in all cases. And what was lit[] supposed to be for?
[ Parent
| on HN ]
Re:C-based Virtual Machine for Notch's DCPU-16
by swetland on Thursday April 05, 2012 @12:36AM
(#3801325)
Yeah, think you're right. I'm out of spec there. That's what you get for trying to be cute. Fixed now.
Re:C-based Virtual Machine for Notch's DCPU-16
by a1k0n on Thursday April 05, 2012 @12:07PM
(#3803187)
I think your lit table also implies you can write to literals. So I can 'SET 2, 0x1f; SET A, 2' and now A is 0x1f.
Re:C-based Virtual Machine for Notch's DCPU-16
by swetland on Thursday April 05, 2012 @01:48PM
(#3803685)
There's a check in the writeback phase that prevents that.