Consider a program that uses absolute physical memory references meaning that each reference refers to a specific physical memory location. One part of such a program is below: movl ($0x100), ($0x104), seax, Sebx, teax movl Bebx movl movl ($0x104) ($0x100) This program works fine when it is loaded at address Ox0, but not when it is loaded at address 0x1000. Why not? Re-write the above code so the program works when it is loaded at memory address 0x1000.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 4PE
icon
Related questions
Topic Video
Question
Consider a program that uses absolute physical memory references meaning that each reference refers to a specific physical memory location. One part of such a program is below:
( $0x100),
( $0x104),
%eax,
movl
%eax
movl
%ebx
($0x104)
($0x100)
movl
movl
%ebx,
This program works fine when it is loaded at address 0x0, but not when it is loaded at address 0x1000. Why not?
Re-write the above code so the program works when it is loaded at memory address 0x1000.
Transcribed Image Text:Consider a program that uses absolute physical memory references meaning that each reference refers to a specific physical memory location. One part of such a program is below: ( $0x100), ( $0x104), %eax, movl %eax movl %ebx ($0x104) ($0x100) movl movl %ebx, This program works fine when it is loaded at address 0x0, but not when it is loaded at address 0x1000. Why not? Re-write the above code so the program works when it is loaded at memory address 0x1000.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning