Possible Duplicate:
How do emulators work and how are they written?
I know enough about the gameboy/advance hardware to make an emulator (I think). But I can't find any resources , sample code, tutorials , documentation , anything on the internet? Do I program an emulator like a game? i.e it runs in a game loop
while (isopen)
{
draw();
update();
display();
}
or like a gui? i.e an event handler?
switch(msg)
{
case DRAW_IMAGE:
draw();
break;
case KEYDOWN:
update();
break;
}
Do I use a third party graphics library or the windows GDI? There are so many questions but none are answered on any site i got when i googled.
NOTE: I am using C / C++ . (if you know any documentation on making one in C# you can give me that too.)