Join Nostr
2026-02-24 06:00:50 UTC
in reply to

slembcke on Nostr: nprofile1q…l5h35 An interesting read. For all the time I've spent on A2's, I've ...

An interesting read. For all the time I've spent on A2's, I've never actually done high res graphics.

Though this does remind me of the fast divide by 16 bit 240 code I wrote for NES scrolling. https://github.com/slembcke/GGJ-NES-template/blob/GGJ2X/ext/pixler/lib/nmi.s#L15

Similar to the divide by 9 trick with base 10 numbers. I _think_ to divide an 8 bit number by 7 comes down to a couple shifts, and add, and a branch/inc. Though a 256 entry table isn't that big I guess. (shrug)