>>21I don't give a shit about any calling conventions. Those are for the mindless HLL sheep. Another way to say it is, the only calling convention I care about is the one
I make up, the one that fits the situation the best.
More importantly, you moved the goalposts. The code in
>>11 uses an integer, you used a string. But two can play at that game...!
xor ecx, ecx
salc
dec ecx
repnz scasb
mov eax, [edi-3]
sub al, ah
ret
12 bytes.
Your move.