ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
19 мая
180821 Топик полностью
Mikla (10.02.2010 11:08, просмотров: 544) ответил д__ на Use these instructions to change endianness of data:
Это ж где вы это выкопали, из какого мануала. RBIT этим занимается, а REV -порядок байт в слове меняет вот выдержки из armv7-m reference manual RBIT Reverse Bits reverses the bit order in a 32-bit register. Operation if ConditionPassed() then EncodingSpecificOperations(); bits(32) result; for i = 0 to 31 do result<31-i> = R[m]<i>; R[d] = result; REV Byte-Reverse Word reverses the byte order in a 32-bit register. Operation if ConditionPassed() then EncodingSpecificOperations(); bits(32) result; result<31:24> = R[m]<7:0>; result<23:16> = R[m]<15:8>; result<15:8> = R[m]<23:16>; result<7:0> = R[m]<31:24>; R[d] = result;