Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
a1k0n
· 14y ago · 0 comments
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?
Comments
[–]
swetland
14y ago
Yeah, think you're right. I'm out of spec there. That's what you get for trying to be cute. Fixed now.
[–]
a1k0n
OP
14y ago
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.
[–]
swetland
14y ago
There's a check in the writeback phase that prevents that.
[–]
a1k0n
OP
14y ago
Ah-ha, yes there is. Sorry.
[–]
jpd
14y ago
He needs 'lit' so dcpu_opr() can uniformly return a pointer for all results, including literal values.