Re: Formatting in assembly
- From: Betov <betov@xxxxxxx>
- Date: 31 Mar 2006 09:40:21 GMT
"¬a\\/b" <al@xxx> écrivait news:ttqp22p28ckladfgq6d8hds09loujd844g@
4ax.com:
/* if return 1 OK, if return 0 error
itoa:
j=[s+4]; a=[s+8]; c=[s+12]; 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:
ret
NOT TESTED
:))
Too late for testing: The "test" was about readability...
:))
Betov.
< http://rosasm.org >
.
- References:
- Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- From: ¬a\\/b
- Formatting in assembly
- Prev by Date: Re: SpooK, its put up or shut up time.
- Next by Date: Re: SpooK, its put up or shut up time.
- Previous by thread: Re: Formatting in assembly
- Next by thread: Re: Formatting in assembly
- Index(es):