What's new

Help

refraction

PCSX2 Coder
MXP said:
I m a beginner i dont know where to start coding and emu what emu should i code first

hello world

http://www.cplusplus.com

they have a very good tutorial on it. when youve done that move on to windows api or MFC, can be found at these addresses

http://devcentral.iticentral.com/default.php <---MFC
http://www.winprog.net <-- API

Then learn SDL or OpenGL, they can be found here

http://www.libsdl.org <--- SDL
http://nehe.gamedev.net <---- OpenGL

Then when your satisfied with that, read the chip8 thread ;)

Alternatively you can get away with just reading the cplusplus tutorial and a document on Emulator programming (there should be some in the chip8 thread) then make a dos version of a chip8 emulator, itll be slow but itll work.
 
OP
MXP

MXP

MXP
refraction said:
hello world

http://www.cplusplus.com

they have a very good tutorial on it. when youve done that move on to windows api or MFC, can be found at these addresses

http://devcentral.iticentral.com/default.php <---MFC
http://www.winprog.net <-- API

Then learn SDL or OpenGL, they can be found here

http://www.libsdl.org <--- SDL
http://nehe.gamedev.net <---- OpenGL

Then when your satisfied with that, read the chip8 thread ;)

Alternatively you can get away with just reading the cplusplus tutorial and a document on Emulator programming (there should be some in the chip8 thread) then make a dos version of a chip8 emulator, itll be slow but itll work.
i know almost every thing u named so my question still stands there what emulator is the simplest (game consoles) please reply ASAP
\
 

mesman00

What's that...?
MXP said:
i know almost every thing u named so my question still stands there what emulator is the simplest (game consoles) please reply ASAP
\

if you are a beginner then you don't know all that. so either
a: you're full of shit and *think* you know all of that, but don't.
or
b: you're not a beginner.
 

refraction

PCSX2 Coder
and c. he has no common sense, i didnt say look at the chip 8 thread for my health!!

chip8 is the place to start, its the easiest machine to emulate.
 
OP
MXP

MXP

MXP
Sorry

refraction said:
and c. he has no common sense, i didnt say look at the chip 8 thread for my health!!

chip8 is the place to start, its the easiest machine to emulate.
sorry iread that thread later and look i made an emulater just in 2 days...
how can i optimize it and what emu should i code next
(P.S. I haven't programmed controllers correctly) :evil:
 

aprentice

Moderator
MXP said:
sorry iread that thread later and look i made an emulater just in 2 days...
how can i optimize it and what emu should i code next
(P.S. I haven't programmed controllers correctly) :evil:

dont upx compress files unless you have something to hide, such as a virus or so.
 

smcd

Active member
It doesn't look like he's hiding anything suspicious (I unpacked the file & poked around a bit). Perhaps he just uses UPX to save space, as I do?
 

smcd

Active member
On a side note, how do you run stuff in your emulator? (if indeed that is what it is ;-)) I tried "mychip8.exe pong.ch8" and it doesn't do anything, and with no documentation well that's just wonderful...
 
OP
MXP

MXP

MXP
Running ROM and More help

sethmcdoogle said:
On a side note, how do you run stuff in your emulator? (if indeed that is what it is ;-)) I tried "mychip8.exe pong.ch8" and it doesn't do anything, and with no documentation well that's just wonderful...
Well finally i am into that sea of emulation ....
To run a ROM (of chip 8 offcourse) put it into same dir as that of :paperbag: myChip8.exe and rename it 'inv' (without commas,was acctually for testing) it will work i will soon give code as well (as soon it gets neat and under stand able)

I need some tutorials on Direct X can some one help me :alien2:
 
Last edited:
OP
MXP

MXP

MXP
MFC problem

:borg: Q1:
---
I have problem in creating window via MFC take a look at my code :

//drived form CWinApp

BOOL MyApp::InitInstance() {
m_pMainWnd = new MyWindow();

if(m_pMainWnd->SetTimer(0,1,NULL) !=1 ) return FALSE;

m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}

//drived form CFrameWnd the constructor of the class i made

MyWindow::MyWindow(){
if(!InitMemory()){
MessageBox("Memory Allocation Failed\n\
Program Now Terminates...","Memory Error");
exit(0);
}

InitCPU();

romLoaded=loadRom();

invOP=false;

Create(NULL,"Chirp",WS_SYSMENU,
CRect (20,20,350,210),NULL,"MYMENU");
}

My programme crashes whats problem .... :down:
When I debuged it showed me problem on statement of show timer...

Every thing is perfect why program crashes

:borg: Q2:
---

I need help for jump table ,... a complete refrence (for C language of course:baaa: )
 

Doomulation

?????????????????????????
Awww, get off his back! MFC isn't that bad, really.
Unfortunaly, this project seems built on a non-dialog source, as which I really never use. If you're creating anything but editors n' stuff, a dialog app should work for you.

Btw, switch statements are automatically translated into jump tables by the ms compiler.
 

refraction

PCSX2 Coder
learning how to use jump tables can be handy, i imagine the jump tables converted from switch tables arent as efficient as doing them yourself, which would explain why most emu authors still use them ;)

theres a tutorial written be a friend of mine HERE

its not perfect, if you get any problems it may take you a while to work out but youll get there eventually :)
 

Mr Dragon

New member
Well I'd think that starting off with MFC isn't a great idea if you are a beginner. For an emulator you'd just want a quick window and then get straight into DirectX or OpenGL. MFC is just another hurdle that you don't need to jump, especially now MS has committed completely to .net.

To his original question though. I don't think there is an *easy* machine to emulate. Even something simple like a Nes has the headache of mappers and things like a 2600 don't have a bitmapped display. Every machine has its gotcha's.

Of course it'd be best to emulate a machine he already owns by using legal backup roms of games he owns right ? :eek:)
 

refraction

PCSX2 Coder
well if he really wants a challenge he could try emulating a 16bit machine like snes or megadrive(genesis), but if hes still quite new to it id chose an 8bit machine to go for, maybe nes or gameboy or something like that, or ones that are very often forgotten, the ZX Spectrum and Commadore 64, i dont think they're 8bit but i can imagine it being a pain to do.
 
OP
MXP

MXP

MXP
What is it

Well look my emulater is ready and will be on air , I am currently facing a strange problem when I build exe in debug mode it works fine but when build exe in release mode and exetcute it ,it crashes ... I have uploaded the exe try to run it on your system and tell me wether it works fine if not that what can go wrong...
Please quick response required ,this is window version with everything you can imagine
 
OP
MXP

MXP

MXP
First version release of my emu is ready so here it is ...

I also have question..
Which put pixel will be faster Simple MFC or DX based :party: :santa: :bunny: :icecream:
 

Top