Adsense

Write a ARM cortex M0+ assembly language code based on arithmatc and logical instructions.

 Problem 1: Implement following code conversions to convert binary no 0x89ABCDEF(32-bits) into

a) BCD (64-bits)  

b) Gray (32-bits)

Problem 2: Realize following boolean expressions for 32-bits input R1, R2 and R3.

Sum/ Diff  = R1 ^ R2 ^ R3

Carry = (R1 ^ R2) . R3 + R1 .R2

 Borrow = ( R1 ^ R2)' .R3  + ( R1') . R2

Problem 3: Write a assembly language code to multiply 32-bit data stored on R1 and R2 and 64-bit  result will generated and stored into R3(H) and R4(L). Please refer the below figure to implement the same.

 

 

Arithmetic instructions sample code: https://embedded4everyone.blogspot.com/2021/01/write-assembly-code-to-perform.html

Logical Instruction Sample code: https://embedded4everyone.blogspot.com/2021/01/write-assembly-code-to-perform-logical.html

Data transfer instruction with memory: https://embedded4everyone.blogspot.com/2021/01/write-assembly-language-code-to-program.html


Write a ARM cortex M0+ assembly language code based on arithmatc and logical instructions.

 Problem 1: Implement following code conversions to convert binary no 0x89ABCDEF(32-bits) into a) BCD (64-bits)   b) Gray (32-bits) Problem...