Re: Formatting in assembly
- From: "Dragontamer" <prtiglao@xxxxxxxxx>
- Date: 31 Mar 2006 06:13:56 -0800
Betov wrote:
"James Daughtry" <mordock32@xxxxxxxxxxx> écrivait
news:1143764835.713649.236330@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
atoi:
mov esi,D$esp+4 | mov ecx,D$esp+8
mov eax,0
L0: jecxz L1>
; Convert from ASCII, add to LSD
movzx ebx,B$esi | sub ebx,'0'
mov edx,10 | mul edx | add eax,ebx
inc esi | dec ecx
jmp L0<
L1:
ret
* "atoi" is not an acceptable name.
Why not?
I understand it perfectly: Ascii to Integer.
Certainly any C programmer will understand what it means; and
nearly everyone programs in C
--Dragontamer
.
- Follow-Ups:
- Re: Formatting in assembly
- From: Betov
- Re: Formatting in assembly
- References:
- Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- From: Betov
- Formatting in assembly
- Prev by Date: Re: Formatting in assembly
- Next by Date: Re: Formatting in assembly
- Previous by thread: Re: Formatting in assembly
- Next by thread: Re: Formatting in assembly
- Index(es):
Relevant Pages
|