Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old April 7th, 2004   #1 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
programming my first emu

im starting on a Chip8 emu as most people seem to suggest and i was wondering if this was a good idea:-

I dont really know C++ (but i want to learn it) same with emulation techniques, but im quite key'd up on vb, so would it be worth me coding the emu in VB (to get the idea on how emulation works weighed off) then code the same emu again in C++ to help me learn the language. i know it wount be the easiest of tasks but at least if i do it on vb first ill get the general idea on how i want to do it on VC++ 6. Got loads of tutorials n that ive been reading and im starting to understand it quite quickly.

what do you other programmers recon?
refraction is offline   Reply With Quote
Old April 7th, 2004   #2 (permalink)
Emu author
 
zenogais's Avatar
 
Join Date: Aug 2003
Location: Victorville(Near Los Angeles or LA for those who are on the DL)
Posts: 839
Umm, I would say learn C++, but thats just my personal preference. But emulation is generally not a very good project for a person fairly new to programming to start with. I would say invest a very decent amount of time in just becoming comfortable with the language. Emu's can be done in VB, but its generally easier to use a language that has more capabilities such as C++/C.
__________________
-----------------
Emu Tinkerer and C++ Programmer
zenogais is offline   Reply With Quote
Old April 7th, 2004   #3 (permalink)
I Need a Weapon
 
FLaRe85's Avatar
 
Join Date: Oct 2001
Location: Omaha, NE
Posts: 4,321
moomoomoo coded a Chip8 emu in VB. He's in France atm, but I'll direct him to this thread whenever he gets back. He could probably give you some pointers.
__________________
.: Flaretech.Net :: Flaretech.Biz Web Hosting :: H3 Stats :: My Blog :.



.: Mac Pro :: Dual Quad-Core Intel Xeon 5400s :: 6 GB 800MHz DDR2 ECC FB-DIMMs :: NVIDIA GeForce 8800 GT 512 MB GDDR3 :.
.: Macbook Pro 17" :: 2.33 GHz Intel Core 2 Duo :: 2 GB 667 MHz DDR2 :: ATI Radeon X1600 :.
.: Home Server :: 2.41 GHz AMD Opteron 180 :: 4 GB DDR400 :: Windows Server 2003 Enterprise R2 :.
FLaRe85 is offline   Reply With Quote
Old April 7th, 2004   #4 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
cool cheers, well i was thinking of the VB side just to give me the overview on how emulation works as such, i know that David Winter guy made a chip8 emu in VB, but im not just gonna copy all his code, cos that kinda defeats the point in it!

but yeh cool if you could get me some pointers eventually i will work it out on C++, im quite a fast learner, and im not afraid to try new things so ill probably pick C up quite fast

cheers lads
refraction is offline   Reply With Quote
Old April 8th, 2004   #5 (permalink)
Administrator
 
Chrono Archangel's Avatar
 
Join Date: Dec 2001
Location: Montreal, Canada
Posts: 7,228
hmmm i was just wondering if anyone ever made a NES emu in VB? or any other kind of emu for that matter
Chrono Archangel is offline   Reply With Quote
Old April 8th, 2004   #6 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
yes its called BasicNES, its not a bad emu, but it tries to emulate sound by using midi sounds, so the sound emulation is beyond crap. plus theres a few graphical problems in some games.
refraction is offline   Reply With Quote
Old April 8th, 2004   #7 (permalink)
A1C
 
Ramsus K's Avatar
 
Join Date: Jan 2004
Location: California
Posts: 230
If you want to see what's been done using Visual Basic, just take a look at Zophar's Domain. You'll find a number of console emulators were written in Visual Basic (some should have downloadable source code too), although they tend to be much slower than their C/C++/Assembly counterparts.

I would use C or C++, since emu programming is a pretty low-level task. However, the concepts are more important when it comes to learning new things, since concepts will always stay with you, while the languages you use will change. With that in mind, you should try to learn new concepts using the language you feel most comfortable with if it's possible.
Ramsus K is offline   Reply With Quote
Old April 8th, 2004   #8 (permalink)
RIVAL FORCE
Guest
 
Posts: n/a
Quote:
Originally Posted by Chrono Archange
hmmm i was just wondering if anyone ever made a NES emu in VB? or any other kind of emu for that matter
well i made a gameboy emu about a year ago but never posted my work and got deleted and i also lost my backup of the source. the emu was called bad_boy and it only played super mario,super mario 2 for gameboy and wario world it had no sound and was very slow.
  Reply With Quote
Old April 8th, 2004   #9 (permalink)
Emu author
 
mikeshoup's Avatar
 
Join Date: Aug 2001
Location: Englewood, CO, USA
Posts: 292
Quote:
Originally Posted by RIVAL FORCE
well i made a gameboy emu about a year ago but never posted my work and got deleted and i also lost my backup of the source. the emu was called bad_boy and it only played super mario,super mario 2 for gameboy and wario world it had no sound and was very slow.
Wow. Oh, and I coded a perfect Sega Dreamcast emu, lost the code, and never released it. Betcha believe me now.
__________________
Awards stink like poo.
mikeshoup is offline   Reply With Quote
Old April 8th, 2004   #10 (permalink)
RIVAL FORCE
Guest
 
Posts: n/a
Quote:
Originally Posted by mikeshoup
Wow. Oh, and I coded a perfect Sega Dreamcast emu, lost the code, and never released it. Betcha believe me now.
Dude thats not cool making fun of other ppls hard work you should know your a emu author as well as i am. shame on you. plz have more respect for other ppls efforts.

BTW a pefect DC emu ??? that was very "Tacky" its not possible and they call you a emu author.

Last edited by RIVAL FORCE; April 8th, 2004 at 05:04.
  Reply With Quote
Old April 8th, 2004   #11 (permalink)
Emu author
 
mikeshoup's Avatar
 
Join Date: Aug 2001
Location: Englewood, CO, USA
Posts: 292
You missed my point. I'm just showing how easy it is to just say you did something with no proof to back up.

I was just satirizing you.
__________________
Awards stink like poo.
mikeshoup is offline   Reply With Quote
Old April 8th, 2004   #12 (permalink)
RIVAL FORCE
Guest
 
Posts: n/a
Quote:
Originally Posted by mikeshoup
You missed my point. I'm just showing how easy it is to just say you did something with no proof to back up.

I was just satirizing you.
i see your point. there for im sorry for not having proof and my post was completely pointless. i wish i could show you a screenshot.
  Reply With Quote
Old April 8th, 2004   #13 (permalink)
Da Ultimate Noob Molester
 
_hyde_'s Avatar
 
Join Date: Sep 2003
Location: Los Angeles - CA
Posts: 125
Quote:
Originally Posted by refraction
yes its called BasicNES, its not a bad emu, but it tries to emulate sound by using midi sounds, so the sound emulation is beyond crap. plus theres a few graphical problems in some games.
You might wanna try some of the emu's that came from BasicNES, like LissNES (the one I use for a lot of the NES deving I do, though I know that it is not the most accurate).

If you are going to be coding an emu, you might as well have some fun with it. If learning C++ seems like a pain in the ass (which really isn't true), code the whole thing in VB.

Regardless of what you do, good luck!
__________________
_hyde_ is offline   Reply With Quote
Old April 8th, 2004   #14 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
cheers i think ill do what i said i recon, just to give me an overview on how to structure the emulator to make it work!! then when i know C++ a bit better (which shouldnt be too long) ill remake it in there, then do like a gameboy emu or somet in c++ instead of messing around with vb
refraction is offline   Reply With Quote
Old April 8th, 2004   #15 (permalink)
Emu author
 
mikeshoup's Avatar
 
Join Date: Aug 2001
Location: Englewood, CO, USA
Posts: 292
Quote:
Originally Posted by refraction
cheers i think ill do what i said i recon, just to give me an overview on how to structure the emulator to make it work!! then when i know C++ a bit better (which shouldnt be too long) ill remake it in there, then do like a gameboy emu or somet in c++ instead of messing around with vb
'too long' in C++ terms is like 1 year. Most people don't seem to grasp this, that when you first learn c/c++ you're doing a lot of 'DOS' apps. You can't even start touching win32 API until after that.
__________________
Awards stink like poo.
mikeshoup is offline   Reply With Quote
Old April 8th, 2004   #16 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
aye i understand im not gonna manage it over night! but ive seem some good tutorials, like the ones at http://www.cplusplus.com/ i just have to put nose to the grindstone now!
refraction is offline   Reply With Quote
Old April 8th, 2004   #17 (permalink)
Registered User
 
hoyoyo80's Avatar
 
Join Date: Apr 2001
Location: Darkside Of Xeen
Posts: 1,124
Refraction,it is nice to be ambitious,i learn vb too and BASIC too,but C++ take time(i also learning it now),if i manage to finish learning off my c++ book,in 3-4 month i will start making some stupid prog(start small),but maybe for you it not the same since u already code emu b4,but for me beginner better start small...
__________________
*Signature filesize too large*
hoyoyo80 is offline   Reply With Quote
Old April 8th, 2004   #18 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
well mate remember dont just read the book, make listtle programs using the bit your learning, however pointless, it will make the learning curve much easier!
refraction is offline   Reply With Quote
Old April 9th, 2004   #19 (permalink)
Registered User
 
hoyoyo80's Avatar
 
Join Date: Apr 2001
Location: Darkside Of Xeen
Posts: 1,124
Of coz,programming is no theory,more on practical
__________________
*Signature filesize too large*
hoyoyo80 is offline   Reply With Quote
Old April 9th, 2004   #20 (permalink)
PCSX2 Coder
 
refraction's Avatar
 
Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,819
Quote:
Originally Posted by hoyoyo80
Of coz,programming is no theory,more on practical

exactly, and thats what ive been doing as i go along, making up little programs to stick the coding in my head! ;p ill get there eventually hehe.

thanks for the advice everyone. oh btw, ive seen a few tutorials on how to simply make a window in win32 apps. any chance someone could do one explaining each part and why you need it etc?
refraction is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:33.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5