Question: Need help with mips assembly language problems. 1. Assume the following data segment declarations and that the label mem1 represents the address 0xA0000008 . .data
Need help with mips assembly language problems.
1.
Assume the following data segment declarations and that the label mem1 represents the address 0xA0000008. .data mem1: .word 0 mem2: .space 2 mem3: .word 4 Answer the following using hex notation: a) What is the virtual address of mem2? the physical address?
b) What is the virtual address of mem3? the physical address?
2.
Assume the following data segment declarations and that the label mem1 represents the address 0xA0000020. .data mem1: .space 2 mem2: .byte 0x45 mem3: .word 6 Answer the following: a) What is the virtual address of mem2? the physical address? b) What is the virtual address of mem3? the physical address?
3.
Assume the following data segment declarations and that the label mem1 represents the address 0xA0000020. .data mem1: .half 0x1234 mem2: .space 5 mem3: .byte 6 Answer the following: a) What is the virtual address of mem2? b) What is the virtual address of mem3?
4.
Assume the following data segment declarations and that the label mem1 represents the address 0xA0000020. .data mem1: .word 0x12 mem2: .space 3 mem3: .half 0x4 Answer the following: a) What is the virtual address of mem2? b) What is the virtual address of mem3?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
