I would like to learn how to write a small emulator/virtual machine. Does anyone know a good tutorial or a simpler project than qemu/virtualbox?
Thx
I would like to learn how to write a small emulator/virtual machine. Does anyone know a good tutorial or a simpler project than qemu/virtualbox?
Thx
Anthony Green did a blog series on coming up with an instruction set, porting binutils, gcc, newlib and so on, as well as setting up sim, and qemu to emulate a machine with this new instruction set. The posts (and patches) are all linked from http://spindazzle.org/ggx/. There are a handful of posts that aren't linked from there about various tangential issues.
Check out my tutorial on how to write your own virtual machine from scratch at http://www.icemanind.com
Its a complete tutorial that will walk you through building a virtual machine and assembler in C#.