Ugh, bit manipulation in JS is a pain. I was getting negative hex numbers from `.toString(16)`. It turns out using `| 0` coerces to a signed int, but if you want to coerce to an unsigned int you need to use `>>> 0`. I hate these shenanigans.
I've been a fan of Randall Hyde's @nostarch books for a while now. For anyone interested in low-level programming, "The Art of 64-Bit Assembly" is 25% off with discount code PREORDER. It comes with an ebook pdf & epub.
@b_garcia has a WAT Tetris clone
wasm4.org/play/watris/
It's pretty sweet. At the moment it could use a down arrow key to drop the puzzle piece, but he's got the code on GitHub and it uses palette cycling.
Pretty Awesome!
#wasm#webassembly