Hello,
My name is ultimate_coder. I am 13 and me and two of my friends have started making a new NES emulator. It's made in C and it's called UltiNES. Our goal is 100% compatibility and support for OpenGL. We need some help with sound, but my cousin knows how to make MIDI files, so he'll probably write that part.
We started the day after Christmas. My friend showed me an emulator, nestopia, and I knew we could make a better one. We got pretty far since then but need just a little bit of help. Can someone tell me where we should go from here? This is a part of our code. This is the part that does the emulating (but I didn't show our cpu code because it's super-fast and I think we're going to sell it to other emulator coders:
We made a ppu but it didn't work well, so we're going to start over. Can someone send us some sample code? We looked at other emulator source code, but they're way too complex. How do I get in touch with Loopy and Brad Taylor. I think they can help.
Also, I don't think our cpu is working right yet, but it makes my task manager show high cpu usage, so it must be working correctly. Does anyone have any ideas?
Oh if you want to join our team, we're looking for good developers. Let me know and we'll look at your code to see if you're good enough for the team.
bye!
My name is ultimate_coder. I am 13 and me and two of my friends have started making a new NES emulator. It's made in C and it's called UltiNES. Our goal is 100% compatibility and support for OpenGL. We need some help with sound, but my cousin knows how to make MIDI files, so he'll probably write that part.
We started the day after Christmas. My friend showed me an emulator, nestopia, and I knew we could make a better one. We got pretty far since then but need just a little bit of help. Can someone tell me where we should go from here? This is a part of our code. This is the part that does the emulating (but I didn't show our cpu code because it's super-fast and I think we're going to sell it to other emulator coders:
Code:
FILE *fp;
fp = fopen("mario.nes", "r");
{
printf("File is open\r\n");
//ignore ines header because it doesn't work for
//so many games. hx0r is writing ZapFC support
fseek(fp, 16, SEEK_SET);
do {
//read in operation code and next parameters
//void execute_operation_code(int *code, int *next_byte1, int *next_byte2)
int code = fgetc(fp);
int next_byte1 = fgetc(fp);
int next_byte2 = fgetc(fp);
execute_operation_code(&code, &next_byte1, &next_byte2);
if (code == 'H' && next_byte1 == 'L' && next_byte2 == 'T')
return -1;
//this doesn't do anything yet. we're going to need a couple of more days
//to write 100% accurate graphics.
execute_ppu_integrated_circuit();
if (artificial_intelligence == 4/1)
autoplay_mario();
get_keyboard_presses();
draw_to_opengl();
//my cousin will write this
//play_sound();
} while (true);
}
fp = fopen("mario.nes", "r");
{
printf("File is open\r\n");
//ignore ines header because it doesn't work for
//so many games. hx0r is writing ZapFC support
fseek(fp, 16, SEEK_SET);
do {
//read in operation code and next parameters
//void execute_operation_code(int *code, int *next_byte1, int *next_byte2)
int code = fgetc(fp);
int next_byte1 = fgetc(fp);
int next_byte2 = fgetc(fp);
execute_operation_code(&code, &next_byte1, &next_byte2);
if (code == 'H' && next_byte1 == 'L' && next_byte2 == 'T')
return -1;
//this doesn't do anything yet. we're going to need a couple of more days
//to write 100% accurate graphics.
execute_ppu_integrated_circuit();
if (artificial_intelligence == 4/1)
autoplay_mario();
get_keyboard_presses();
draw_to_opengl();
//my cousin will write this
//play_sound();
} while (true);
}
We made a ppu but it didn't work well, so we're going to start over. Can someone send us some sample code? We looked at other emulator source code, but they're way too complex. How do I get in touch with Loopy and Brad Taylor. I think they can help.
Also, I don't think our cpu is working right yet, but it makes my task manager show high cpu usage, so it must be working correctly. Does anyone have any ideas?
Oh if you want to join our team, we're looking for good developers. Let me know and we'll look at your code to see if you're good enough for the team.
bye!