dcpu16 icon indicating copy to clipboard operation
dcpu16 copied to clipboard

DIV behavior incorrect - EX

Open gatesphere opened this issue 12 years ago • 0 comments

The behavior of the EX register when performing a DIV is incorrect. EX should be set to ((b<<16)/a) & 0xffff as per the spec, rather than (b/a) << 16 & 0xffff, which will always be zero in 16 bit division.

gatesphere avatar Apr 27 '12 21:04 gatesphere