Page 1 of 1

Moon Patrol

Posted: Sat Feb 05, 2005 10:22 am
by kfx

Posted: Sat Feb 05, 2005 8:41 pm
by Chad
playsback to 137860 in mame62 with sound and xp, doesn't appear to go out of synch, 40byte framesize.

Posted: Sun Feb 06, 2005 6:00 am
by kfx
How can you tell that it will work in 62 or do you just try diferent versions?

Posted: Sun Feb 06, 2005 12:48 pm
by Chad
I tried different versions (82 80 72 62) but since i can determine it's a 40 frame size frame from inspecting the binary of the inp you can use this chart Barry posted this in the Best recordings thread:::
The size of the INP changed over the years, but basically a set amount of bytes are read or written for each frame. This varies from version to version.

Prior to 0.35b1 (I think) frames were 16 bytes.
From 0.35b1 to 0.36b15, frames were 32 bytes.
From 0.36b15 to 0.72, frames were 40 bytes.
From 0.72 to 0.84u3, frames were 60 bytes.
From 0.84u4 to 0.87, frame size cannot be determined, due a bug in the input port "rewrite" (should be 120 bytes)
From 0.87u1 on, frame size is 120 bytes.
Add 2 bytes per frame for TGMAME or WolfMAME Plus 0.84 or earlier.
Add 4 bytes per frame for WolfMAME Plus 0.84u4 or later.

Also, remember to subtract 32 bytes for the header, unless the INP is older 0.35b1 (the header was added somewhere around there), or if it was made using MacMAME.

And also note that games that use analogue controls will read/write extra ports as and when the game requests it. This means that for analogue games (including lightgun games) the framesize may vary from frame to frame.