6. Determine the result of executing each of the following assembly instructions
ID: 3672713 • Letter: 6
Question
6. Determine the result of executing each of the following assembly instructions. Identify the results register and the value it holds (e.g., R1-0xF2). To keep these example values simple enough to work with manually, assume you have an 8-bit microcontroller with 8-bit ALU and 8-bit CPU registers. Assume the initial register values below for each instruction (do not carry your results into the next instruction). Express your answer in both binary and hex R0=2 0000.0000 (0x80) R1-21111.1111 (OxFF) R2-2_0000.1111 (0xOF) R3 2_1111.0000 (0xFO) a) ANDS R3, R2 b) EORS R1, R3 c) ORRS RO, R3 d) BICS R2, R3 e) BICS R1, R2 f) LSLS R1, R2, #0x4 g) ASRS R3, #2 h) LSRS R1, ROExplanation / Answer
6.First take the 4 values and convert in to binary and hexa decimal.How to convert is in binary divide with 2 i.e.left side part and right side multiply with 2 apply the same procedure in hexa decimal also.Then see the options and convert them then we get the answer ie,a option.
7.c option because cmp means compare the register values r1 and r2.
8.flag bits arises when carry bit is accepted but in the problem they have given i.e, neglect the carry bit
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.