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,
#21DIV AB Q1.2 From Question 1.1, analyse the assembly code and give the content of register
Bin hex Q1. 3 Analyse the following assembly code and give the content of register B in hex format: MOV B,
#0\times 37MOV 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 33XRL
A,BQ1.5. Calculate the execution tim of the following code (Fosc
=12MHz ): MOV A, #0x07 MOV B,
10\times 50MUL 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 57MOV B,H0x42 SUBB A,B
