Hacker News new | past | comments | ask | show | jobs | submit login

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?



Yeah, think you're right. I'm out of spec there. That's what you get for trying to be cute. Fixed now.


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.


There's a check in the writeback phase that prevents that.


Ah-ha, yes there is. Sorry.


He needs 'lit' so dcpu_opr() can uniformly return a pointer for all results, including literal values.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: