what where does the assembler store somedata in the following code? relative addressing? relative to what?
.data
somedata: .word 0xDEADBEEF
.code
lw $s0 somedata
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
somedatais stored in the data segment, whose start address may vary with file format. Relative addressing is the addressing mode for I-type (branch) instructions. Relative addressing and data declarations aren’t related in any way.