|
Home Work No.1
Please submit a HARD COPY of Your Report
on Aug 29, 2007
All variables are 32-bit integers, you may select any initial values ( you may use negative values as well).
No input/ouput is needed in this exercise.
- Compile the program
- Run the program in DEBUG mode! ( How to FIX ERROR MSG!)
- Use single step execution.
- Display the following windows:
- Disassembly window,
- Register window,
- Memory window
Please answer the following questions:
- After each step record the values of registers ( in hex and in Decimal) .
- Determine the memory addresses of variables f, i, k, h, g.
- Determine the values of variables f, i, k, h, g in memory ( in hex and in Decimal).
- What addressing mode is used to access these variables?
- Relative ( if relative , what is the name of the base register, its value, if you can, please specify the offset to each variable f, i, k, h, g in memory).
- Absolute ( if absolute, what is the segment and the address)?
- Where in memory these variables are stored?
- Determine the addresses of all machine instructions in your program.
- Please write down all machine instructions that correspond to your C code and store them in order in a separate file ( you will use it later).
|
|
|