=L.A.= (09.01.2016 23:14, просмотров: 286) ответил fk0 на У арма вообще таких команд нет. Ты о чём? "Bit Clear" это Y = X and not C. Так там есть инструкция OR для установки битов. Но все эти инструкции работают с маской, а не с номером бита. Маску можно вычислить в этой же инструкции (см. таблицу
PM0215, Programming manual, The STM32 Cortex-M0 instruction set , стр 32,стр 51 BICS
bit clear.
Syntax
BICS {Rd,} Rn, Rm
where:
œ eRdf is the destination register
œ eRnf is the register holding the first operand and is the same as the destination register.
œ eRmf is the second register.
Operation
The BIC instruction performs an AND operation on the bits in Rn with the logical negation of
the corresponding bits in the value of Rm.
The condition code flags are updated on the result of the operation, seeThe condition flags
on page 39.
**********************
ANDS, ORRS, EORS and BICS
Logical AND, OR, exclusive OR and bit clear.
Syntax
ANDS {Rd,} Rn, Rm
ORRS {Rd,} Rn, Rm
EORS {Rd,} Rn, Rm
where:
œ eRdf is the destination register
œ eRnf is the register holding the first operand and is the same as the destination register.
œ eRmf is the second register.
Operation
The AND, EOR, and ORR instructions perform bitwise AND, exclusive OR, and inclusive OR
operations on the values in Rn and Rm.