La fonction de BruNews pourra t-être utile:
__declspec(naked) char* __fastcall bnultoa(unsigned int dwnum, char* szdst)
{
__asm {
or ecx, ecx
jnz short L1
lea eax, [edx+1]
mov byte ptr[edx], 48
mov byte ptr[eax], cl
ret 0
L1:
mov [esp-4], edi
mov [esp-8], edx
mov edi, edx
L2:
mov eax, -858993459
mul ecx
mov eax, edx
shr eax, 3
mov edx, ecx
lea ecx, [eax+eax*8]
add ecx, eax
sub edx, ecx
add dl, 48
mov [edi], dl
mov ecx, eax
inc edi
test eax, eax
jnz short L2
mov byte ptr[edi], al
mov [esp-12], edi
mov eax, [esp-8]
L3:
dec edi
mov dl, [eax]
mov cl, [edi]
mov [edi], dl
mov [eax], cl
inc eax
cmp eax, edi
jb short L3
mov eax, [esp-12]
mov edi, [esp-4]
ret 0
}
}