Up! back to 2017.
The game compare the position of the lemming with a variable memory f774(exit horizontal position) f775 (exit vertical position).
When he compare the register de e=&f774 and d= &7775 in ram &a725..The game considerer the lemming is in the exit and enter it.
In the case of mayhem 12 the value in &f774/f776 is &2750
When the lemming is in front of the exit they send to register de=5427 and compare it with 5027 and he conclude is four pixels down of the exit.
So simply putting &2754 in &f774/75 make the lemmings go in to the exit.
Mayhem 11 should be the same, but i unkwon the value first i need go to the exit XDDDD.
Put a breakpoint in &a72b, play mayhem 11 and when the lemming cross in front in the exit winape emerge the breakpoint. The content of register de is the content should be &f774/5 in these level to the lemmning enter normally.
O.k, i go to exit using pokes infinite builders/time etc etc... in mayhem 11 to test it.
Its the same. lemmings reports he is coordinates 4803 in the exit where is programmed to enter in 0344 So is 4 pixels same is mayhem 12
Change f775 from vertical 44 cordinate to vertical 48 and voila.
I think for some obscure reason the programmer copy bad the exit coordinates, or the level editor they use,have a bug displaying the graphical coordinates not match internally Game coordinates.
Anyway It appears a simple error with easy fix.
About time. Each level can be modified inicial time. But i take a look if i can make clock more slow to match spectrum.
edit: o.k i have it
. Slowdown the clock for all levels is easy to.
The game have a subrutine in &b822 call b6de that controls the clock. Inside her he only enter the part decrease one second 1 of 9 times he enter in the subrutine.
This is controled by the cp 32 located in &b6e6. In each call to subrutine A increases. If a>32 then clock is down one second.
So to slowdown the clock only is necesary change the 32 to other values. More high, more slowdown,more low, more faster
So poke &b6e7 >32.
. This affect all levels, load diferent levels not modifiy the speed.
The only question who is the perfect number to match spectrum speed. The .sna is a example wiith 64.