MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

JHake
MAME Fan
Reged: 01/27/21
Posts: 8
Send PM
MAME programming starter pack?
01/27/21 10:56 PM


I want to start hacking MAME, but before I dive-in blind and end up lost and frustrated I want to say out loud where I want to begin and throw the question open to guidance from forum members. FYI: I am already a programmer, just not one with experience using emulators.

The first thing I wanted to do is to write a program which records a controller stream from a game being played and writes it to a file, and it can also feed a controller stream to a game loaded from such a file.

I intend to use a basic ASCII readable RLE format like:

50 n
200 u
10 f

(For 50 frames of neutral then 200 frames of UP then 10 frames of Fire).

Ideally, I'd like the data to be fed in by something which traps controller-port read operation in the game, ie something which traps the operations which load the controller status and feeds them data directly.

On a Commodore 64 for example, this would trap any LDA $DC01 and feed it controller port data sequentially.

The basic question then is:

I want to transparently trap controller-port reads in Mame, where do I start?

Thanks, I hope that's clear.

Edited by JHake (01/28/21 02:07 PM)







Entire thread
Subject Posted by Posted on
* MAME programming starter pack? JHake 01/27/21 10:56 PM
. * Re: MAME programming starter pack? Olivier Galibert  02/01/21 09:40 AM
. * Re: MAME programming starter pack? Vas Crabb  01/28/21 05:51 AM
. * Re: MAME programming starter pack? JHake  01/28/21 12:33 PM
. * Re: MAME programming starter pack? Haze  01/28/21 01:08 PM
. * Re: MAME programming starter pack? JHake  01/28/21 02:09 PM
. * Re: MAME programming starter pack? Haze  01/29/21 12:06 AM
. * Re: MAME programming starter pack? Vas Crabb  01/28/21 04:04 PM
. * Re: MAME programming starter pack? JHake  01/28/21 05:22 PM
. * Re: MAME programming starter pack? mhoes  02/02/21 03:28 PM
. * Re: MAME programming starter pack? smf  01/29/21 12:12 PM

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