Re: Formatting in assembly



"¬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 >




.