Home / Expert Answers / Computer Science / question-1-embedded-assembly-and-c-programming-35-marks-q1-1-analyse-the-following-assembly-code-pa911

(Solved): Question 1: Embedded Assembly and C Programming (35 marks) Q1.1 Analyse the following assembly code ...



Question 1: Embedded Assembly and C Programming (35 marks) Q1.1 Analyse the following assembly code and give the content of register A in hex format: MOV A. 1234 MOV B,

#21

DIV AB Q1.2 From Question 1.1, analyse the assembly code and give the content of register

B

in hex Q1. 3 Analyse the following assembly code and give the content of register B in hex format: MOV B,

#0\times 37

MOV 0x 30, #0x03 MOV A,B Loop: RLA DJNZ 0x30,Loop MOV B,A Q1.4. Analyse the following assembly code and give the content of register A in hex: MOV B, ,

H0\times 33

XRL

A,B

Q1.5. Calculate the execution tim of the following code (Fosc

=12

MHz ): MOV A, #0x07 MOV B,

10\times 50

MUL AB SWAPA Q1.6. From Question 1.5, calculate how many bytes will be occupied in program memory Q1.7. Analyse the following assembly code and give the content of register A in hex format: CLRC MOV A,

+0\times 57

MOV B,H0x42 SUBB A,B



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe