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

ShimaPong
MAME Fan
Reged: 03/12/05
Posts: 783
Send PM
Re: MAME 0.141
01/04/11 03:38 PM Attachment: denjinmk.png 81 KB (1 downloads)


> - Where is first parameter?
> - Why does param0 recieve second parameter?
> - What parameter is recieved by param1 instead of second parameter?


I find problem on debug/express.c:1646


Code:


case TVL_COMMA:
if (!token->is_function_separator())
{
pop_token_rval(t2); pop_token_rval(t1);
push_token(t2);
}
break;



"pop(t2)->pop(t1)->push(t2)" causes two problems.

- younger stack is overwritten by older stack
- stack pointer is different after this sequence.

I guess that it is "swapping younger and older stack" when ',' is found in the expression function and expected sequence is "pop(t2)->pop(t1)->push(t2)->push(t1)".
In this way, younger and older stacks are swapped and stack pointer is the same between before and ago.

So I put "push_token(t1)" then try again...

...???
All parameters will be recieved in function entry but still unexptected value.
It seems that the order of parameters are completely wrong. Left (and first) parameter value is accepted as param3 instead of param0 and second = param0, third = param1 and forth = param2.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

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







Entire thread
Subject Posted by Posted on
* MAME 0.141 ShimaPong 01/01/11 04:52 AM
. * Re: MAME 0.141 ShimaPong  01/02/11 04:09 PM
. * Re: MAME 0.141 ShimaPong  01/03/11 05:05 PM
. * Re: MAME 0.141 ShimaPong  01/04/11 03:38 PM
. * Re: MAME 0.141 ShimaPong  01/05/11 03:25 PM
. * Re: MAME 0.141 SmitdoggAdministrator  01/03/11 05:27 PM
. * Re: MAME 0.141 Shoegazr  01/01/11 05:31 PM
. * Re: MAME 0.141 Cyberzinho Punk  01/01/11 03:56 PM
. * Mambo A Go-Go ShimaPong  01/01/11 03:37 PM
. * Re: Mambo A Go-Go Alexis B.  01/01/11 05:44 PM
. * Re: MAME 0.141 CptGuapo  01/01/11 06:01 AM
. * Re: MAME 0.141 redk9258  01/01/11 06:54 AM
. * Re: MAME 0.141 R. Belmont  01/01/11 05:07 AM
. * Re: MAME 0.141 krick  01/01/11 09:30 AM
. * Re: MAME 0.141 AaronGiles  01/01/11 09:43 PM
. * Re: MAME 0.141 sev  01/02/11 12:44 PM
. * Re: MAME 0.141 R. Belmont  01/01/11 07:56 PM
. * Re: MAME 0.141 AaronGiles  01/01/11 09:37 PM
. * Re: MAME 0.141 Derrick Renaud  01/01/11 11:26 PM
. * Re: MAME 0.141 R. Belmont  01/02/11 02:07 AM
. * Re: MAME 0.141 gregf  01/01/11 08:54 AM
. * Re: MAME 0.141 R. Belmont  01/01/11 09:01 AM
. * Re: MAME 0.141 tamalmalamarrado  01/01/11 05:28 AM
. * Re: MAME 0.141 abelenki  01/01/11 04:59 AM
. * Re: MAME 0.141 redk9258  01/01/11 05:31 AM
. * Re: MAME 0.141 hap  01/01/11 04:53 PM

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