Question

Consider the following machine language program in terms of the Pep/7. (description shown on board) 00001000 0000000000000011 0001 1000 0000000000000010 00010001 0001000100010001 00001001 0001000100010001 00000 0001000100010001. what are the contents of register A after the second instruction executes? O 0001 1000 0000000000000011 O 0000000000000101 O 1101 0000

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

option b) is the answer

after the execution of second instruction the register A will contains 0000000000000011

Add a comment
Know the answer?
Add Answer to:
Consider the following machine language program in terms of the Pep/7. (description shown on board) What...
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
  • Determine the output of the following machine-language program by running it in Pep/8. The left column...

    Determine the output of the following machine-language program by running it in Pep/8. The left column in each part is the memory address of the first byte on the line. Determine the output of the following machine-language program by running it in Pep/8. The left column in each part is the memory address f the first byte on the line: Address Instruction Description C10000C 18 F1000B 51000B 0003 0004 0007 000A 000B 000C FEDC A. Submit the code with comments...

  • Machine Language 2. (4pts) Consider the following assembly language instruction which is located in a program...

    Machine Language 2. (4pts) Consider the following assembly language instruction which is located in a program you wrote: MULTIPLY contents of Register 5 with the constant 6. This instruction will store the results back into Register 5. Assume this machine instruction is part of an assembly program that is stored on your hard disk and it is the next instruction to be invoked. Explain how this instruction is processed using the machine cycle. Include hard drive, de, and registers in...

  • A C program has been compiled into the Atmel AVR assembly language. The following instruction, which...

    A C program has been compiled into the Atmel AVR assembly language. The following instruction, which is located at address 0x002A, is executed: i.) What is the binary value contained in the instruction register (IR) when the instruction is executed? ii.) What is the hexadecimal value of the program counter (PC) when the instruction is executed? iii.) If register r1 = 0x40 and register r2 = 0x02 prior to executing the instruction, what are the contents of r1 and r2...

  • Write a machine language program to input two one-digit numbers ranging from 0 to 4 (using...

    Write a machine language program to input two one-digit numbers ranging from 0 to 4 (using the character input instruction), add them, and then output the single digit sum (using the character output instruction). Execute your program in the PEP/8 simulator. Example Input: 43 (this is the numbers 4 and 3. Remember, this is two ASCII characters when inputted into your program) Output: 7 (ASCII character 55dec)

  • Name B. (7 pts) MIPS short answer 1. (3pt) For the following MIPS assembly language program:...

    Name B. (7 pts) MIPS short answer 1. (3pt) For the following MIPS assembly language program: loop: addi Sto, $to,-1 bne $to, $zero, loop Translate the second instruction into MIPS machine language and write it in hex. 2. (2 pt) Which best describes the reason that we maintain the stack pointer in a register? (circle one) i. The hardware forces use of a stack pointer. ii. We need a local pointer because we are often limited to relative addressing. ili....

  • Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which ar...

    Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which are located in memory from address 0 through 15. Show the result of the MIPS instruction "lw Ss0,4(Sa0)" for machines in little-endian byte orders, where Sa0 4. Address Contents Address Contents 9b lb 2 4 6 10 b4 c5 12 13 14 15 3d 5f 70 7 8f (b) (10pts)Assume we have the following time, performance and architecture parameters in the specified units Ec-...

  • Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which...

    Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which are located in memory from address 0 through 15. Show the result of the MIPS instruction "lw Ss0,4(Sa0)" for machines in little-endian byte orders, where Sa0 4. Address Contents Address Contents 9b lb 2 4 6 10 b4 c5 12 13 14 15 3d 5f 70 7 8f (b) (10pts)Assume we have the following time, performance and architecture parameters in the specified units Ec-...

  • this is assembly language for HCS12 / 9S12 4. Consider the following assembly-language program. Starting values:...

    this is assembly language for HCS12 / 9S12 4. Consider the following assembly-language program. Starting values: [A] = $60, [B] = $80, [$C300] = $20, [$C301] = $40 (Hint: [$C300) means "contents of memory location $C300".) $C300 $C301 ADDA LDAB SBA BEO STAA STAB WAI X1 $1301 $C300 X1: ; "WAI" basically means "stop" What values are in A, B, memory location $C300, and memory location $C301 when the program finishes? [A] = — [B]= _ [$C300] = - [$C301)...

  • Consider the following pseudocode which uses dynamic scoping. What does the program print if the language...

    Consider the following pseudocode which uses dynamic scoping. What does the program print if the language uses shallow binding? What does it print with deep binding? x: integer//global procedure print_x write_integer (x) procedure first x:= x * 3 procedure second (F: procedure) x: integer x: = 5 F () print_x () x: = 7 second (first) print_x ()

  • Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which...

    Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which are located in memory from address 0 through 15, Show the result of the MIPS instruction "Iw Ss0, 4(Sa0)" for machines in little-endian byte orders, where Sa0 8 Address Contents Address Contents 4¢ 8 c5 6d 1 9 2 7e 8f 66 10 70 11 8a Oa 12 13 14 15 1b a3 b4 2c 6 3d 7 (b) (10pts)Assume we have the following...

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
ADVERTISEMENT