Assembly Language Programming

Assignment #1

Be sure you can answer all of these questions without the use of a calculator. Proper use of a calculator on this assignment would be to check your work.

  1. Express the following decimal values in binary and hexadecimal notation: 153, 65535, and 65536.
  2. Express the following values in decimal: 10111110B, 0A73H, and 0FFFH.
  3. Determine the sequence of bytes stored in memory by a C program when strcpy(x,"abc") is executed. Assume ASCII codes are in use. Your answer should be a list of consecutive byte values expressed in hexadecimal.
  4. If the IP contains 023FH and a 3 byte instruction is fetched, what will the IP contain?
  5. If the code segment register contains 034CH and the data segment register contains 0300H, what actual address is specified by an offset into the code segment of 0C31H? What offset into the data segment would specify the same actual address?
  6. Memory location 0F2C5 is to be accessed via an offset in register BX. If BX contains 0235, what segment address must be contained in DS so the segment specified by DS plus the offset in BX gives the desired address?