<div dir="ltr"><div class="gmail_extra">Hi Eliot</div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-27 0:25 GMT+01:00 Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>So the code to change the number of arguments is fine.  What&#39;s wrong is the code to store the error code.  That comes /after/ the three byte call primitive bytecode at the start of the method.  So it should read</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="white-space:pre-wrap">        xpc := self initialPC + 3.</span></div><div><span style="white-space:pre-wrap">        &quot;long store temp&quot;</span></div><div><span style="white-space:pre-wrap">        (self at: xpc) = 129 </span><span style="white-space:pre-wrap">ifTrue:</span></div><div><span style="white-space:pre-wrap">                [self at: xpc + 1 put: (16r40 + numArgs).</span></div><div><span style="white-space:pre-wrap">                 self at: xpc + 3 put: (16r10 + numArgs)]</span></div></blockquote><div></div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Is there any solution to make it working?<br></div></div></blockquote></div><div class="gmail_extra"><br></div>The above should work.  But there&#39;s a much easier way</blockquote></div><br>This works. Thank&#39;s. I will try your attachment later. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,</div><div class="gmail_extra">Denis</div></div>