MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

arcadegamenut
MAME Fan
Reged: 06/06/06
Posts: 39
Send PM
Re: Writing My Own Emulator From Scratch
01/16/08 06:27 PM


Well so far not much has been done except for a lot of reading, jotting down notes, etc.

I did find a free direct x component for Delphi last night and managed to get that installed.

I then created a new test project to test a few ideas.

The first thing I did was to create a direct draw surface on the form. From there, I added in code to switch between the window and full screen. As I test, I wrote out "Delphipede" on the surface. That seemed to work well enough.

For the next part, I created a new unit in order to begin the 6502 emulator. I have a very good idea how this will work, it's just a matter of doing all the tedious typing. To start with, I just wrote part of the init and reset procedures (enough to where I could test the first instruction $4C anyway ). I then wrote a rom load routine and and processed that first description. At this point I didn't actually perform the instruction, but rather just looked up the cycle count, instruction and address mode for the opcode I found and printed it on the screen.

So what remains for me to investigate?

1. How, when I need to refresh the screen, the directdraw surface interacts with the video ram. I was hoping I could just split the directdraw surface into a grid (240x256) and then "write" out the data from the video array as needed. I'll need to read more about how direct x works.

2. The pokey chip...though I may save this for the very very end.

3. Something else I was thinking about when I started typing this....but then forgot as it took me almost 30 minutes to type this (happens when you keep getting interrupted at work ).

ArcadeGamenut







Entire thread
Subject Posted by Posted on
* Writing My Own Emulator From Scratch arcadegamenut 01/10/08 07:15 AM
. * Centipede Documentation arcadegamenut  02/01/08 10:19 PM
. * Re: Centipede Documentation Phil Bennett  02/01/08 11:59 PM
. * Progress arcadegamenut  01/22/08 06:25 PM
. * Re: Progress arcadegamenut  01/30/08 12:40 AM
. * Re: Progress Lord Nightmare  01/30/08 01:43 AM
. * Re: Progress R. Belmont  01/30/08 02:34 AM
. * Re: Progress arcadegamenut  01/30/08 04:27 AM
. * Re: Progress Anonymous  02/04/08 02:28 AM
. * Baby Steps arcadegamenut  01/18/08 11:43 PM
. * Re: Baby Steps R. Belmont  01/20/08 12:33 AM
. * Re: Baby Steps Anonymous  01/20/08 12:38 AM
. * Re: Baby Steps R. Belmont  01/20/08 03:38 AM
. * Re: Baby Steps arcadegamenut  01/20/08 04:13 AM
. * Re: Baby Steps arcadegamenut  01/20/08 01:34 AM
. * Re: Baby Steps R. Belmont  01/20/08 03:37 AM
. * Re: Writing My Own Emulator From Scratch arcadegamenut  01/16/08 06:27 PM
. * Re: Writing My Own Emulator From Scratch arcadegamenut  01/11/08 07:09 PM
. * Re: Writing My Own Emulator From Scratch Anonymous  01/14/08 02:12 PM
. * Re: Writing My Own Emulator From Scratch arcadegamenut  01/14/08 09:20 PM
. * Re: Writing My Own Emulator From Scratch Anonymous  01/15/08 01:30 AM
. * Re: Writing My Own Emulator From Scratch R. Belmont  01/10/08 07:48 AM
. * Re: Writing My Own Emulator From Scratch arcadegamenut  01/10/08 06:26 PM
. * Re: Writing My Own Emulator From Scratch Stolistic  01/10/08 08:27 PM
. * Re: Writing My Own Emulator From Scratch arcadegamenut  01/11/08 12:10 AM
. * Re: Writing My Own Emulator From Scratch R. Belmont  01/11/08 01:10 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 13 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5502