MAMEWorld >> News
View all threads Index   Flat Mode Flat  

ShimaPong
MAME Fan
Reged: 03/12/05
Posts: 783
Send PM
Re: MAME 0.141u1 out.
01/24/11 04:13 PM Attachment: bullet.png 57 KB (1 downloads)


=== cheat3.c ===
- Followed 0.141u1 update and supported shortname if softlist is found (Untested)
If no softlist, try to use default (long) name. But crc attribute on "mamecheat" node is checked even in both cases.

- Added new action tag "write"
This action generates valid expression from some keywords (cpu, address, space, size).
"cpu" is option (default : first cpu)
"address" is always required.
"space" is option (default : "r")
"size" is option. But if no "size", cheat system counts value strings automatically and set appropriate size expression.

For example :

Code:


<write address="1234">99 AA BB CC</write>



Value stiring "99AABBCC" has 8 characters so that calculate the size as "d".
And generated expression will be "maincpu.rd@1234=99AABBCC"

Also it recognizes "3 bytes" (bw), "6 bytes" (wd) and "16 bytes" (qq).
In this case, it generates two expression and the address for second expression is auto calculated from address and value strings.

For example :

Code:


<write address="123456">4EB9 0078 9ABC</write> <!-- jsr $00789abc.l -->



Generated expression is "maincpu.rw@123456=4EB9,maincpu.rd@123458=00789ABC".
Current expression doesn't support these sizes directly but you can write a seamless code in the file.

And it has little endianness adjuster.
If target cpu has little endianness, auto adjusted value to write with big endianness.

For exampe :

Code:


<:write address="5678">CD 4523</write> <!-- call $2345 -->



Generate expression is "maincpu.rw@5678=2345,maincpu.rb@567A=CD"


=== expression.c ===
- Hacked infix_to_postfix() to recognize function separator.
It requires to convert the parameter for expression function.

[ATTACHED IMAGE]

Attachment


"Any company has no power to stop people emulating"
MAME is the emulator of no giving in the pressure from any company even if they don't allow

Edited by ShimaPong (01/24/11 04:13 PM)







Entire thread
Subject Posted by Posted on
* MAME 0.141u1 Cypress 01/24/11 08:51 AM
. * Re: MAME 0.141u1 ShimaPong  02/07/11 03:38 PM
. * show us the code -nt- Vas Crabb  02/08/11 12:49 PM
. * he'll never show it. it's easier to ban this troll [nt] abelenki  02/08/11 04:30 PM
. * Re: he'll never show it. it's easier to ban this troll [nt] hap  02/09/11 06:24 PM
. * Re: he'll never show it. it's easier to ban this troll [nt] franciscohs  02/09/11 02:49 AM
. * Re: he'll never show it. it's easier to ban this troll [nt] Foxhack  02/09/11 03:44 AM
. * Re: he'll never show it. it's easier to ban this troll [nt] SmitdoggAdministrator  02/09/11 03:37 AM
. * Re: he'll never show it. it's easier to ban this troll [nt] franciscohs  02/09/11 01:41 PM
. * Re: he'll never show it. it's easier to ban this troll [nt] R. Belmont  02/09/11 05:24 PM
. * Re: he'll never show it. it's easier to ban this troll [nt] Roman  02/09/11 09:34 AM
. * Re: he'll never show it. it's easier to ban this troll [nt] SmitdoggAdministrator  02/09/11 09:40 AM
. * just ignore him as most people do at this point *nt* etabeta  02/08/11 06:05 PM
. * Re: MAME 0.141u1 CiroConsentino  01/25/11 07:43 PM
. * Re: MAME 0.141u1 etabeta  01/25/11 08:07 PM
. * Re: MAME 0.141u1 CiroConsentino  01/25/11 08:46 PM
. * Re: MAME 0.141u1 etabeta  01/25/11 10:29 PM
. * Re: MAME 0.141u1 CiroConsentino  01/26/11 12:13 AM
. * Re: MAME 0.141u1 Cyberzinho Punk  01/25/11 03:48 AM
. * Re: MAME 0.141u1 bdam  01/25/11 02:21 AM
. * Re: MAME 0.141u1 StilettoAdministrator  01/25/11 05:04 AM
. * Thanks Stiletto - NT bdam  01/25/11 02:45 PM
. * Re: MAME 0.141u1 Naoki  01/25/11 12:11 PM
. * Re: MAME 0.141u1 krick  01/25/11 08:48 AM
. * Re: MAME 0.141u1 russ h.  01/24/11 09:08 PM
. * Re: MAME 0.141u1 TafoidAdministrator  01/24/11 09:27 PM
. * Re: MAME 0.141u1 Derrick Renaud  01/24/11 09:58 PM
. * Re: MAME 0.141u1 russ h.  01/25/11 03:41 PM
. * Re: MAME 0.141u1 AnimalBear  01/24/11 07:40 PM
. * Re: MAME 0.141u1 out. pongplaya  01/24/11 04:56 PM
. * Re: MAME 0.141u1 out. ShimaPong  01/24/11 04:13 PM
. * Excuse me, what the f**k... Lord Nightmare  01/25/11 05:02 AM
. * Re: Excuse me, what the f**k... CrapBoardSoftware  01/25/11 04:13 PM
. * Re: Excuse me, what the f**k... pongplaya  01/25/11 06:54 PM
. * Re: MAME 0.141u1 out. AntoPISA  01/24/11 03:20 PM
. * Re: MAME 0.141u1 out. CiroConsentino  01/24/11 07:51 PM
. * Re: MAME 0.141u1 out. TafoidAdministrator  01/24/11 08:15 PM
. * Re: MAME 0.141u1 out. CiroConsentino  01/25/11 12:28 AM
. * Re: MAME 0.141u1 out. TrevEB  01/24/11 05:26 PM
. * Re: MAME 0.141u1 out. TafoidAdministrator  01/24/11 05:43 PM
. * Re: MAME 0.141u1 out. BIOS-D  01/24/11 09:24 PM
. * Re: MAME 0.141u1 out gregf  01/24/11 12:53 PM
. * Re: MAME 0.141u1 out R. Belmont  01/24/11 05:44 PM
. * Re: MAME 0.141u1 out Ziggy100  01/24/11 06:17 PM
. * MAME0141u1b redk9258  01/24/11 10:26 AM
. * MAME0141u1b_64bit redk9258  01/24/11 10:16 AM
. * Re: MAME0141u1b_64bit Cypress  01/24/11 10:30 AM
. * Re: MAME0141u1b_64bit T-2000  01/24/11 10:57 AM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 176 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 10178