Question

Example the Pep/9 system contains the following four hexadecimal values register A: 25B6 register X: AE20...

Example the Pep/9 system contains the following four hexadecimal values

register A: 25B6

register X: AE20

Mem[091D]: 0FF0

Mem[0A71]: 301D

If these are the values before each of the following instructions executes, indicate which of these values is changed when each statement is executed, and show the new value. If a register or a memory location shown above is unchanged by the instruction, don't show its contents; only show the item that changed and what the new 16-bit value of that item would be. Note: reset the contents of the registers and memory locations to the given values above before executing each of the following instructions (in other words, these instructions are independent of each other.

1. C1091D
2. D1091D
3. F90A71
4. 69091D
5. 990A71
6. 08

Explain please

Homework Answers

Answer #1

Greetings!!

Machine code represents the following instructions:

1. C1091D - represent the instruction LDWA 0X091D,D
2. D1091D - represent the instruction LDBA 0X091D,D
3. F90A71 - represent the instruction STBX 0X0A71,D
4. 69091D - represent the instruction ADDX 0X091D,D
5. 990A71 - represent the instruction ORX 0X0A71,D
6. 08 - represent the instruction NEGA

Execution:

For the purpose of execution the following memory addresses are considered.

0x0007 instead of 0x091D and is loaded with given value 0FF0

0x0009 instead of 0x0A71 and is loaded with given value 301D

Execution screenshot:

Register A and X are loaded with 25B6 and AE20

1. LDWA instruction load one word data from address 0007 to register A and it replaces the content of register A with 0FF0

2. LDBA instruction loads one byte of data from memory address 0007 into A by keeping the 0F in the register A itself. Now A contains 0F0F

3. STBX stores the lower byte of data in the X register to memory address 0009. ie 20 is stored at memory address 0009.

4. ADDX add the content of memory address 0007(0FF0) to its previous content AE20 and generate the answer as BE10.

5. ORX instruction does OR operation with BE10 and the content of address 0009 which is 201D and generate an answer BE1D

6. NEGA instruction negates the content of register A

Hope this helps

Know the answer?
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
Similar Questions
I. What value will be in register r2 after execution of the following instructions? Show your...
I. What value will be in register r2 after execution of the following instructions? Show your work with the register values after executing each instruction. MOV r2, #0x0 LDR r1, =0xCF MOVS r1, r1, LSR #1 ADC r2, r2, #0 MOVS r1, r1, LSR #1 ADC r2, r2, #0 II. Assume a 32 bit register holds a data of four bytes as B3B2B1B0. Write a sequence of ARM instruction that takes this data as input and swaps the bytes 0...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime and criminology? a. Law in action departs substantially from the ideal behavior of the law. b. Focusing only on legally criminalized behavior makes it impossible to consider the impact of gender, race, age and ethnicity. c. Legalistic definitions ignore acts that cause great harm. d. The legalistic model suggests that these are absolute standards for judging right and wrong. e. All of the above....
Which of the following best describes a project management plan? The project charter, WBS, and project...
Which of the following best describes a project management plan? The project charter, WBS, and project scope statement The schedule, management plans, and budget A formal, approved document used to control the project The project manager's plan for managing and controlling the work The engineering department wants the project objective to be a 10 percent improvement in throughput. The information technology department wants no more than 5 percent of its resources to be used on the project. Management, who is...