Hi all,
I've read tutorials on emulation programming and I have a fair knowledge of C to begin programming an emulator. There are a few things Im not too sure about though.
First of all, how do you start getting the OpCodes? What i mean is I know you read in the ROM into memory (The RAM i think) but how do you start getting input from the ROM on what to do? I know roughly how the CPU works. You fetch the opcode, determine the opcode and then execute it. The OpCodes are obviously the input into the emulator core but I dont understand how you get the OpCodes from the ROM.
Secondly im only going to code the core of the emulator to start with and not the Input Plugins, Video Plugins and Sound Plugins. I will use someone elses plugin so I know they work. How will the core communicate with the plugins?
Thanks for any help.
I've read tutorials on emulation programming and I have a fair knowledge of C to begin programming an emulator. There are a few things Im not too sure about though.
First of all, how do you start getting the OpCodes? What i mean is I know you read in the ROM into memory (The RAM i think) but how do you start getting input from the ROM on what to do? I know roughly how the CPU works. You fetch the opcode, determine the opcode and then execute it. The OpCodes are obviously the input into the emulator core but I dont understand how you get the OpCodes from the ROM.
Secondly im only going to code the core of the emulator to start with and not the Input Plugins, Video Plugins and Sound Plugins. I will use someone elses plugin so I know they work. How will the core communicate with the plugins?
Thanks for any help.