ASM-ban miert -25 ?
HWSW Famulus
hwsw at famulus.hu
Sat Jun 7 22:09:57 CEST 2003
Biztos a meleg teszi, de nam latom be ...
Miert 25-t ill. 32-t von le az sbiw
amikor a C kod azt mondja --
Miert nem egyet?!
Van koze hozza, hogy sbiw csak 63 -ig ismeri
a kivonandot?
Raadasul ugy erzem emiatt tenyleg gyorsabb is a ciklus......
KJ
{
uint16_t u1;
for (u1=10000; u1>0; u1--);
ca: 80 e1 ldi r24, 0x10 ; 16
cc: 97 e2 ldi r25, 0x27 ; 39
ce: 49 97 sbiw r24, 0x19 ; 25
d0: f1 f7 brne .-4 ; 0xce
}
d2: 08 95 ret
{
uint16_t u1;
for (u1=256; u1>0; u1--);
ca: 80 e0 ldi r24, 0x00 ; 0
cc: 91 e0 ldi r25, 0x01 ; 1
ce: 80 97 sbiw r24, 0x20 ; 32
d0: f1 f7 brne .-4 ; 0xce
}
d2: 08 95 ret
More information about the Elektro
mailing list