Ответ:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено RUAL 28 января 2004 г. 15:07
В ответ на: тут черточки перед и после rlc отправлено RUAL 28 января 2004 г. 14:56



#include
unsigned char _crol_ (unsigned char c, /* character to rotate left */
unsigned char b); /* bit positions to rotate */
Description:
The _crol_ routine rotates the bit pattern for the character c left b bits. This routine is implemented as an intrinsic function. The code required is included in-line rather than being called.

Return Value:
The _crol_ routine returns the rotated value of c.

Attributes:
reentrant, intrinsic

See Also:
_cror_, _irol_, _iror_, _lrol_, _lror_

Example
#include

void tst_crol (void) {
char a;
char b;

a = 0xA5;

b = _crol_(a,3); /* b now is 0x2D */

}
Top of Page
© 1997-2000 Keil Elektronik GmbH and Keil Software, Inc. All rights reserved.




Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru