Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

[02) 4 The following statement show its ARM assembler machine code as the follow

ID: 3698441 • Letter: #

Question

[02) 4 The following statement show its ARM assembler machine code as the following AND R2, R2, OxFFFFFFFD ARM assembler code: 00001008 : E3C22002 AND R1, R1, OxFFFFFFFD Questions 1. Is the above statement is valid ARM instruction? [1] 2. For the both answers in 1 (valid or non-valid), explain why? [1] 3. Is this a pseudo-instruction?[1] 4. Justify (The Data processing instruction format is shown below. [1] 31 28 25 20 16 1512 11 0 SI Rn Rd rand 2 Operation Code 0000 = AND 0001 EOR 0010 SUB 0011 RSB 0100 = ADD 0101=ADC 0110-SBC 0111-RSC 1000 = TST 1001-TEQ 1010=CMP 101 1 =CMN 1100-ORR 1101-MOV 1110.BIC 1111 = MVN

Explanation / Answer

1)
No,the above statement is invalid ARM instruction

2)
Invalid because in order to use a immediate value the operand with immediate value should follow with #

so valid statement is :-

AND r2,r2,#0xFFFFFFFD

3)
No, AND is not a pseudo instruction

4)

28 - 31 - conditions - ARM instructions are conditionally executed depending on a condition specified in the instruciton

27-21 - opcode - ARM instruction function is decoded from this opcode (i.e what to do)

20 - S - supress flags - whether the istruction should effect the flag or not is determined here

19-16 - Rn - Source register operand 1

15 - 12 - Rd - destination register

11 = 0 - operand 2

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote