Show HN: Tetris, but the blocks are ARM instructions that execute in the browser (opens in a new tab)ofrak.com
472 pointsIn the game, 32-bit, little-endian ARM assembly instructions fall, and you can modify the operands before executing them on a CPU emulator. There are two segments mapped – one for instructions, and one for data (though both have read, write, and execute permissions). Your score is a four byte signed integer stored at the virtual address pointed to by the R12 register, and the goal is to use the instructions that fall to make the score value in memory as high as possible. When it's game over, you can download your game as an ELF to relive the glory in GDB on your favorite ARM device.
The CPU emulator is a version of Unicorn (https://www.unicorn-engine.org/) that has been cross-compiled to WebAssembly (https://alexaltea.github.io/unicorn.js/), so everything on the page runs in the browser without the need for any complicated infrastructure on the back end.
Since I've only been working on this for a short period of time leading up to its debut at DEF CON, there are still many more features I'd eventually like to implement. These include adding support for other ISAs besides ARM, adding an instruction reference manual, and lots of little cleanups, bug fixes, and adjustments.
My highest score is 509,644,979, but my average is about 131,378.
I look forward to feedback, bug reports, feature requests, and strategy discussions!
Comments (53) 23 threads
Show all comments
Showing thread 8 of 23
> By continuing to use this site, you agree to the use of cookies.
You seem to be in violation of the GDPR. There must be a way to refuse the cookies that is as simple as accepting them. Especially since yours are not needed for the site to function:
> The Services use cookies and similar technologies such as pixel tags, web beacons, clear GIFs and JavaScript (collectively, “Cookies”) to enable our servers to recognize your web browser, tell us how and when you visit and use our Services, analyze trends, learn about our user base and operate and improve our Services. (…) We may also supplement the information we collect from you with information received from third parties, including third parties that have placed their own Cookies on your device(s).
https://ofrak.com/privacy/#tracking-tools-and-opt-out
Telling people to delete cookies via their browser settings (further down that page) is not an acceptable solution.
https://www.cnil.fr/en/refusing-cookies-should-be-easy-accep...
https://noyb.eu/en/5-years-litigation-meta-apparently-switch...
I was pleasantly surprised to see Apple’s cookie policy is considerably less intrusive than the submitted website’s.
https://www.apple.com/legal/privacy/en-ww/cookies/
It's easy to read the original comment as if you need to ask permission for any cookie usage. But that's not what they're saying. They're saying it applies for this site's cookies, as the site specify they use cookies in a way that GDPR would say you need consent for.