Before trying it I hit “About” and it opened a new page which says: > 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 J…
Unfortunately this practice has been happening with a lot of websites, and many companies are not complaining with the cookie law https://www.cnil.fr/en/refusing-cookies-should-be-easy-accep...
Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
31–40 of 56 posts
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#32Thanks for sharing, it does makes me miss DEFCON, maybe next year...
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#33wow, you can even remap the keys!
It also works with USB gamepads! At DEF CON where we will have this set up in-person tomorrow, we will have people playing on a USB Dance Dance Revolution floor pad.
Another thing to make the entry easier: Create a "Memory" label for the memory area. You mention it in the intro text but color it in the R12 address color which was confusing for me.
Missed that memory space totally while playing the first two times.
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#34Very cool concept, but my assembly understanding is really poor :) It says that my score is stored in R12, but then why do I have a score of 16 of R12 is zero? https://imgur.com/a/RY5jhTu
R12 contains the address of your score. In this case, that is address 0 - the start of the data segment. The score register is yellow, and the corresponding memory region it points to (the actual bytes of your score) are also yellow.
If you'd like to do a video tutorial how to play this well that could be a great resource to learn assembly intuitively.
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#35Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#36Before trying it I hit “About” and it opened a new page which says: > 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 J…
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#37This is so clever, I couldn't help but smile when I saw "Your score is stored in memory at the address pointed to by R12" :) Thanks for sharing, it does makes me miss DEFCON, maybe next year...
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#38This is so clever, I couldn't help but smile when I saw "Your score is stored in memory at the address pointed to by R12" :) Thanks for sharing, it does makes me miss DEFCON, maybe next year...
Is the reason for R12 making you smile something you could share?
They could have easily made score be handled outside the game and you get a point per every executed statement within the time limit etc – but that would not be as fun
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#39This is so clever, I couldn't help but smile when I saw "Your score is stored in memory at the address pointed to by R12" :) Thanks for sharing, it does makes me miss DEFCON, maybe next year...
As someone who has very little idea of what instructions or addresses are, what is this a reference to?
Edit: I had the page loaded before your reply, so I didn't see it until I replied, reloading the page lol
Re: Show HN: Tetris, but the blocks are ARM instructions that execute in the browser
#40- Spray PC into as many registers as possible, try to add those registers together as many times as possible, and store the sum at zero (or wherever the score ends up)
- Load an assembled instruction from an old value of PC as an int into a register, then do some subtraction to make it non-negative (since it's usually negative in my experience), then store in the score location
I'm curious what other strategies people have tried?