Re: Formatting in assembly
- From: "¬a\\/b" <al@xxx>
- Date: Fri, 31 Mar 2006 13:37:44 +0200
On Fri, 31 Mar 2006 10:45:20 +0200, "¬a\\/b" <al@xxx> wrote:
/* if return 1 OK, if return 0 error
itoa:
here everyone have to push ebx, edi, esi
j=[s+4]; a=[s+8]; c=[s+12]; b=10;
j=[s+4+4*3]; a=[s+8+4*3]; c=[s+12+4*3]; b=10;
c<>1; <#.ce; =#.c5;
.c0: { r=0; div b; /* r=a%10, a=a/10
rl+='0'; *j=rl; ++j; a==0#.c2;
.c1: --c#.c0;
}
.c2: i=[s+4]; B*j=0; c==0#.ce; --j;
#.c4;
.c3: {al=*i; *j<->al; *i=al; --j; ++i;
.c4: i<j#.c3
}
a=1;#.cf;
.c5: B*j=0;
.ce: a=0
.cf:
and pop here ebx, esi, edi
ret
NOT TESTED
.
- Follow-Ups:
- Re: Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- References:
- Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- From: ¬a\\/b
- Formatting in assembly
- Prev by Date: Re: Formatting in assembly
- Next by Date: Re: Why use assembly?
- Previous by thread: Re: Formatting in assembly
- Next by thread: Re: Formatting in assembly
- Index(es):
Relevant Pages
|