2 ms·
I love AVR8 assembly so much and how AVR8 is so much better than any of the 8-bit micros in so many ways except for the small RAM size (though it does make it u
by PaulHoule 2y ago
I love AVR8 assembly so much and how AVR8 is so much better than any of the 8-bit micros in so many ways except for the small RAM size (though it does make it up in ROM)
- Lerc 2y agoMe too, I made a silly fantasy console using it https://k8.fingswotidun.com/static/ide/?gist=78d170a65bc6c9ddaecefa4424915ac3 https://k8.fingswotidun.com/static/ide/?gist=78d170a65bc6c9d... In hindsight, it's not the best for emulation, I think most of the emulator time goes into extracting the bits from instructions. I really should make a translator that turns it instruction by instruction into something easier to decode.
- wk_end 2y agoOn a CPU with 8- or even 16-bit instructions, if at all possible (I don't know much about AVR8) it's probably better to use jump tables than to try to decode bit-wise when emulating I think.
- PaulHoule 2y agoI’ve thought about making an AVR-8 emulator in AVR-8 assembly language that would let me run tiny programs out of RAM where the emulator (host) would use some of the registers and the others would be be available to the guest. This way you could upload a function over the serial port and run it. I figured it would be a good way to really master AVR-8 assembly. The ESP32 has a huge amount of potential for emulating other things, see https://github.com/breakintoprogram/agon-vdp https://github.com/breakintoprogram/agon-vdp For a display controller implemented for ESP32.