News for hackers. Stuff that matters.
Re:A Great Old-Timey Game-Programming Hack by dkersten on Tuesday December 17, 2013 @09:24AM (#6921204)
This is why I love microcontroller programming (but not Arduino, which loses the magic to "high level"). I wrote some PIC24 code where I needed some very fast deterministic interrupt handler[1], so I dropped down to assembly and cycle-counted my way to success. It was nothing nearly as fancy as the article describes. It was really just the ability to accurately count cycles.

[1] I was basically sharing buffers between SPI send/recv interrupts and the code that used them, so I needed a way to lock buffers. I later replaced the code with much simpler, much slower synchronous code.. :-/

There are no comments on this comment yet.