PDA

View Full Version : Emulation in Delphi



CPN
03-12-2003, 02:00 AM
Hi all, I am new to this board, and know almost nothing on game programming :'( however with the success of the Quake 2 Delphi project I began to wonder why there aint any Emulator to Delphi conversion project.

So I have decided to set up a sort of Emulation 2 Delphi project, so anyone with some C/C++ and Delphi knowledge interested drop me a mail at maniac_n@hotmail.com, or post to this topic (wich I will try to check often)

The main idea thus far is to convert emulators to Delphi, clean up the code, make them libraries and then make an all delphi emulator

Alimonster
03-12-2003, 08:09 AM
A lot of emulators use tons of assembly code, which means that they're not really "C++". ;) But I like this idea (no free time at the moment, though, so I can't help just now, but I do have C++ experience if you need it). Do you have any idea about what emulators to convert yet?

CPN
03-12-2003, 01:32 PM
Well I know of a couple wich use not too much assembler, however in any situation, assembler is handled perfectly by delphi :D I will write down your data cuz I am going to need many C++ and delphi seasoned programmers

As for wich emulators to convert well I have a couple of them in mind:

[list=1]
NES Emulation FCE Ultra (http://xodnizel.net/fceultra/)
SNES Emulation ZSNES (http://www.zsnes.com)
Gameboy, Gameboy Color, Gameboy Advance VisualBoy Advance (http://vboy.emuhq.com/)
Sega Genesis, Master System, Game gear Gens (http://gens.consolemul.com/)
[/list:o]

Alimonster
03-12-2003, 02:36 PM
This is slightly off-topic, but I've found a couple of Delphi emulators out there. One of them is pretty old and was on Turbo in days of yonder: WinNES (http://turbo.gamedev.net/wnnes006.zip). The other one looks to be active: http://imperiopso.brinkster.net/sayarx/

Not really relevant to what you want, I guess, but interesting nonetheless!

If I were to get involved then I'd definitely take dibs on Gens (note my avatar, after all ;)). I didn't even realise that it was open-sourced! But that's all hypothetical once again.

Ultra
03-12-2003, 08:34 PM
There's also a GameBoy emulator at http://www.stud.tu-ilmenau.de/~hackbart/written in delphi. :wink:

CPN
03-12-2003, 11:41 PM
I didnt know there were emus written in Delphi :D , I am checking on the info, the nes one seems to have the code available if it's not too much asmed (heavy assembler use) I think it could be used, but the Sega Master System one seems to be not opensource

Gadget
05-12-2003, 03:56 PM
I wrote a NES emulator in Delphi 4. It uses DirectX 7 and isn't particularly fast. It was my first emulation project and uses a simple case statement for the opcode emulation.

My site is down after changing ISP, but I can send you the files if you want?

The delphi OOP coding in there isn't great either as it was an early project.

EDIT: My old site is still there....

http://www.btinternet.com/~chris.r.millward/main.htm

Project was called CMNES. If you have any questions just fire em at me :)

CPN
05-12-2003, 11:21 PM
the project as far as I conceive it is to make robust emulators in delphi, thus I am interested in getting the nes emulator, and dont worry most of the emulators out there use case for opcodes unless they do it with assembler

Gadget
08-12-2003, 07:30 AM
the project as far as I conceive it is to make robust emulators in delphi, thus I am interested in getting the nes emulator, and dont worry most of the emulators out there use case for opcodes unless they do it with assembler

http://www.btinternet.com/~chris.r.millward/cmnes/options.htm

Just don't laugh at some of the code :P

There are also several problems identified since I wrote it, namely the fact that I used TWordArray as psuedo memory, yet for games larger than 32Kb this isn't sufficient. At the time I spent hours messing around trying to work out why certain memory mappers were not working and thats probably why :P

I got as far as starting the sound emulation, but as it was the first time I had emulated sound it was bloody hard :) The first sound channel is sort of emulated but very poorly and I can't remember if the last posted source contained the sound release or not.

EDIT: There is also a problem identified with DirectX compatibilty. I noticed that the executable wont run on newer versions of DirectX. It was coded around the time DX7 was the latest release. There was a bug either in the code itself, or in the headers from Clootie. If you load the source and change the DirectInput section to accomodate the DX8 interface it appears to work again.

Xorcist
31-12-2003, 07:22 PM
NESten (http://tnse.zophar.net/) was done in Delphi, so were a lot of other emluators like DPCE (a PC-Engine emulator), check out the link below for a quick emulator/language listing:

http://www.multiplayer.it/itaprogaming/tools/emulatori/emu_sorgenti.asp

P.S. I love the idea of a Delphi based emulation site. Especially if it will include examples and simple tutorials to get people started working on new emulation projects.

CPN
31-12-2003, 09:55 PM
NESten (http://tnse.zophar.net/) was done in Delphi, so were a lot of other emluators like DPCE (a PC-Engine emulator), check out the ]http://www.multiplayer.it/itaprogaming/tools/emulatori/emu_sorgenti.asp[/url]

P.S. I love the idea of a Delphi based emulation site. Especially if it will include examples and simple tutorials to get people started working on new emulation projects.

I too would love the idea, however I could not maintain such a task (I am not a pretty good webmaster :cry: )

BTW I have been checking loads of emulators source code and have come across a starling discoveries for christ sake howcome no one uses comments, it is painful to check some of the c source code.

Gadget
01-01-2004, 10:23 AM
I would be interested in a Delphi emulation site as well. Lets get one up!

If you want the source to CMNES you will have to pm me as my old BT webspace is no longer available. Just moved to ASP / SQL Server provider with 2Gb of space :O

CPN
01-01-2004, 10:42 PM
I would be interested in a Delphi emulation site as well. Lets get one up!

If you want the source to CMNES you will have to pm me as my old BT webspace is no longer available. Just moved to ASP / SQL Server provider with 2Gb of space :O

Thanks god that I downloaded the source and stored it in my sources hard, and I agree that the idea would be pretty good, we could set something up, with a forum, articles on emulation/directx/opengl/etc.

Gadget
04-01-2004, 07:45 AM
I would be interested in a Delphi emulation site as well. Lets get one up!

If you want the source to CMNES you will have to pm me as my old BT webspace is no longer available. Just moved to ASP / SQL Server provider with 2Gb of space :O

Thanks god that I downloaded the source and stored it in my sources hard, and I agree that the idea would be pretty good, we could set something up, with a forum, articles on emulation/directx/opengl/etc.

Do you want me to set up a forum?

CPN
05-01-2004, 08:15 PM
Yeah why not?

Xorcist
28-03-2004, 07:25 PM
So did this ever happen?