Question

Could you please help me doing this?

Slide #14:

ARM Assembly Language label mnemonic operand1, operand2, operand3 comments R2+R1->R3 Loc ADD R3, R2 R1 Label is a symbolic reference to this instructions address in memory. Mnemonic represents the operation to be performed .The number of operands varies, depending on each specific instruction. Some instructions have no operands at all. operand1 is typically the destination register, and operand2 and operand3 are source operands. operand2 is usually a register. operand3 can represent many different things, depending on instruction. .Everything after the semicolon is a comment, which is ignored by the assembler. We will discuss this in more detail later. This is just to get us going Lecture #3 14

Slide #15

Load-Modify-Store Example (just for fun) Algebraic statement Assume the x is stored in memory and the ; memory_address of x is_storedin r1 LDR re, ADD re, re,#1 ; … + 1 #means immediate STR re, [r1 store new value of x into memory rrij#1 ; load value of x from memory Lecture #3 15

The question:

3. In Slide #14, what is the smallest value that label Size could be given?O In slide #15, what is the smallest value that label Size could be given? 4.

0 0
Add a comment Improve this question Transcribed image text
Answer #1


TABLE 6-10 Hexa decimal Character Code Character Code Character Code Character Code 9 space CR 0D (carriage return)

Above table in image is for basic computer. For an label, one character can represent with 8-bits and in Slide #14 the label given as "LOC" each character is of 8-bits so minimum bits required is 24 bits and if we include space "LOC " that minimum required 32-bits.

In slid #5 there is no label mention in program so required 0 bits.

Add a comment
Know the answer?
Add Answer to:
Could you please help me doing this? Slide #14: Slide #15 The question: ARM Assembly Language...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at...

    Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper 1. (5 marks) Consider the following assembly instruction STMFD r13!, (r5-6} Before executing this instruction, registers hold the following values: Register Value Register r9 Value r4 0x00400040 0x00000000 r5 r10 0x11223344 0x00800080 r6 0x55667788 r11 0x10001000 r7 0x99aabbcc r12 0x20002000 r8 exddeeff00 r13 ex40004000 What memory locations are affected after executing the above instruction? In a table, with a...

  • Implement the following statements using MS430 assembly instructions. You may use more than one, ...

    Implement the following statements using MS430 assembly instructions. You may use more than one, but you should minimize the number of instructions required. You can use both native and emulated instructions. Use hex notation for all numbers 1. (a) Move the word located in register R14 to R15 (b) Increment the word in R6 by 2. (c) Perform a bitwise ANDing of the word located at address 0x0240 with the datum in R15, placing the results in R15. (d) Rotate...

  • Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4...

    Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4; I2: ADD R4 - R5+R6 I3: LDW R2MEMIR3100]; 14: LDW R2 = MEM [R2 + 0]; 15: STW MEM [R4 + 100] = R3 ; I6: AND R2R2 & R1; 17: BEQ R9R1, Target; I8: AND R9 R9&R1 Consider a pipeline with forwarding, hazard detection, and 1 delay slot for branches. The pipeline is the typical 5-stage IF, ID, EX, MEM, WB MIPS...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT