[an error occurred while processing this directive]
|
Писал когдато давно такое:
extern void ShlStr(char* str, unsigned char len);
ShlStr:
movw r30,r16
ld r16,Z
clc
sbrc r16,7
sec
andi r16,0x7F
st Z+,r16
tst r18
rjmp ShlStr2
ShlStr1:
ld r16,Z
rol r16
st Z+,r16
dec r18
ShlStr2:
brne ShlStr1
ret
E-mail: info@telesys.ru