<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>duh, finally, got it. parameters being passed in the wrong order -- left to right instead of right to left.<BR>
should have read the assembly of some multi parameter function calls...<BR>
<BR>
PROCEDURE RTLinker_PutInt (i: INTEGER; width := 0) =<BR> VAR<BR> num : ARRAY [0..30] OF CHAR;<BR><STRONG> len := FromInt (ADR (num[0]), i, 10);<BR></STRONG> BEGIN<BR> FOR i := 1 TO width - len DO PutChar (' ') END;<BR> PutChars (ADR (num[0]), len);<BR> END RTLinker_PutInt;<BR><BR><BR>Dump of assembler code for function RTLinker__RTLinker_PutInt:<BR>0x005de25f <RTLinker__RTLinker_PutInt+0>: push %ebp<BR>0x005de260 <RTLinker__RTLinker_PutInt+1>: mov %esp,%ebp<BR>0x005de262 <RTLinker__RTLinker_PutInt+3>: sub $0x38,%esp<BR>0x005de265 <RTLinker__RTLinker_PutInt+6>: mov 0x8(%ebp),%edx<BR>0x005de268 <RTLinker__RTLinker_PutInt+9>: sub $0x4,%esp<BR>0x005de26b <RTLinker__RTLinker_PutInt+12>: lea 0xffffffd9(%ebp),%eax<BR>0x005de26e <RTLinker__RTLinker_PutInt+15>: push %eax<BR>0x005de26f <RTLinker__RTLinker_PutInt+16>: push %edx<BR><STRONG>0x005de270 <RTLinker__RTLinker_PutInt+17>: push $0xa<BR></STRONG>0x005de272 <RTLinker__RTLinker_PutInt+19>: call 0x5de345 <RTLinker__FromI<BR>nt><BR>
<BR>
and I AVed writing to the address 0xA..<BR>
<BR>
- Jay<BR><br /><hr />Connect and share in new ways with Windows Live. <a href='http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008' target='_new'>Get it now!</a></body>
</html>