logoalt Hacker News

djmipstoday at 6:26 AM1 replyview on HN

In the old days of making 8 bit video games we used BRADs of 0-255 - worked well and the wrap was easy.


Replies

burnt-resistortoday at 8:01 AM

Oh yeah, in the era of ¼ circle trig tables (cos and maybe tan; inverse (arc) versions as needed) in ROM or Taylor/Maclaurin approximation (with fast integer division) when FPUs were rare. Such tables and tricks mostly fell by the wayside when the 80486DX, 68040, and N64 (VR4300) arrived and SIMD/MIMD systems followed.

I miss strict, deterministic unsigned addition overflow. In many modern languages, all kinds of verbose hoops are required to get this behavior and there's a chance it will generate terrible machine code.