Вот даже пример из моего любимого проца (+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

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

Отправлено SM 28 января 2005 г. 13:04
В ответ на: :)) отправлено ы 28 января 2005 г. 13:02

[1] BCNT ACx, ACy, TC1, Tx
[2] BCNT ACx, ACy, TC2, Tx

Opcode: TC1 0001 000E xxSS 1010 SSdd xxx0
TC2 0001 000E XXSS 1010 SSdd xxx1

Operands: ACx, ACy, Tx, TCx

Description: This instruction performs bit field manipulation in the D-unit shifter. The result is stored in the selected temporary register (Tx). The A-unit ALU is used to make the move operation.
Accumulator ACx is ANDed with accumulator ACy. The number of bits set to 1 in the intermediary result is evaluated and stored in the selected temporary register (Tx). If the number of bits is even, the selected TCx status bit is cleared to 0. If the number of bits is odd, the selected TCx status bit is set to 1.


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

Ответы



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

E-mail: info@telesys.ru