Source code for Dream MSX has been released, you can grab it here. The fastest way to learn how to program embedded systems (game consoles) is to take a look at what other people are doing with their source codes. This DreamMSX source adds to the abundance of already available open source, so for all you prospective emulator porters, this is something to take a look at.