Hi, I am curious as to how to make an emulator from the top-down (no pun intended). Also, what is a good reference for making a GUI for my emulator? Muchas Gracias. Fish Man
[b][red]This message was edited by the Haroldo_o_p at 2002-6-11 4:17:27[/red][/b][hr] : Hi, : I am curious as to how to make an emulator from the top-down (no pun intended). : Also, what is a good reference for making a GUI for my emulator? : Muchas Gracias. : Fish Man :
For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven). BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding.
: [b][red]This message was edited by the Haroldo_o_p at 2002-6-11 4:17:27[/red][/b][hr] : : Hi, : : I am curious as to how to make an emulator from the top-down (no pun intended). : : Also, what is a good reference for making a GUI for my emulator? : : Muchas Gracias. : : Fish Man : : : : For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven). : BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding. : : :
couple of ?'s for you...
with an emulator is it basically a case of understanding how to program the emulated cpu, then write some code to grab code out of the say rom file workout the say pc equivelant and run that code instead? that doesnt make much sense does it. hope you understand.
secondally what does IMHO mean??? i have been trying to figure it out for months. ill have a stab at in my honest opinion???
: : [b][red]This message was edited by the Haroldo_o_p at 2002-6-11 4:17:27[/red][/b][hr] : : : Hi, : : : I am curious as to how to make an emulator from the top-down (no pun intended). : : : Also, what is a good reference for making a GUI for my emulator? : : : Muchas Gracias. : : : Fish Man : : : : : : : For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven). : : BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding. : : : : : : : : couple of ?'s for you... : : with an emulator is it basically a case of understanding how to program the emulated cpu, then write some code to grab code out of the say rom file workout the say pc equivelant and run that code instead? that doesnt make much sense does it. hope you understand. :
Well, you could do it that way (the method you described is called dinamic recompilation). The other way would be simply interpret the code: fetch one instruction, run the routine that emulates this instruction, then fetch the next instruction, and so on...
: secondally what does IMHO mean??? i have been trying to figure it out for months. ill have a stab at in my honest opinion??? :
Comments
: Hi,
: I am curious as to how to make an emulator from the top-down (no pun intended).
: Also, what is a good reference for making a GUI for my emulator?
: Muchas Gracias.
: Fish Man
:
For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven).
BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding.
: : Hi,
: : I am curious as to how to make an emulator from the top-down (no pun intended).
: : Also, what is a good reference for making a GUI for my emulator?
: : Muchas Gracias.
: : Fish Man
: :
:
: For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven).
: BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding.
:
:
:
couple of ?'s for you...
with an emulator is it basically a case of understanding how to program the emulated cpu, then write some code to grab code out of the say rom file workout the say pc equivelant and run that code instead? that doesnt make much sense does it. hope you understand.
secondally what does IMHO mean??? i have been trying to figure it out for months. ill have a stab at in my honest opinion???
cheers.
: : : Hi,
: : : I am curious as to how to make an emulator from the top-down (no pun intended).
: : : Also, what is a good reference for making a GUI for my emulator?
: : : Muchas Gracias.
: : : Fish Man
: : :
: :
: : For a start, you could download the source code for some emulator (I think I saw some emulator source code here, in programmer's heaven).
: : BTW, I personally don't think that doing an emulator from the top-down perspective would work: what use is to have a nice-looking GUI, if you can't get even the CPU emulation working? IMHO, you should start by doing the CPU emulation, then make some basical graphics emulation (don't do anything too complex, you don't need to emulate all the features yet, just enough to see that your emulator is working), but let the sound emulation for later. Then, after building this strong foundation, you can start the top-down coding.
: :
: :
: :
:
: couple of ?'s for you...
:
: with an emulator is it basically a case of understanding how to program the emulated cpu, then write some code to grab code out of the say rom file workout the say pc equivelant and run that code instead? that doesnt make much sense does it. hope you understand.
:
Well, you could do it that way (the method you described is called dinamic recompilation). The other way would be simply interpret the code: fetch one instruction, run the routine that emulates this instruction, then fetch the next instruction, and so on...
: secondally what does IMHO mean??? i have been trying to figure it out for months. ill have a stab at in my honest opinion???
:
It means "In My Humble Opinion".
See ya.