Question

In the following memory dump file there is a 6 wor
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given image contains the memory dump from the address of CS:270 and here each byte holds two digits (4 bits +4 bits). Now considering the value at address CS:0286 = 14 and from here we need to consider 6 Words and as we already know that 1 Word = 2 Bytes and so 6 Words includes all the location values from

CS:0286, CS:0287, CS:0288, CS:0289, CS:028A, CS:028B, CS:028C, CS:028D, CS:028E, CS:028F, CS:0290, CS:0291

=> 14 00 1D 00 F2 FF 23 00 FC FF 1B 00

These values which are considered as 6 words (6 *2 = 12 Bytes) from the address CS:0280 and now these values are to be converted to decimal from the hexadecimal notation..

Converting hexadecimal number to decimal:

consider XY is the number represented in hexadecimal then to convert it into decimal first write the 4-bit representation for each digit and then convert the obtained binary value into decimal by multiplying with powers of 2

CS:0286 value= 14 in hexadecimal notation

0001 0100 in binary notation

2^7*0+2^6*0+2^5 *0+2^4 *1 +2^3 *0+ 2^2 *1+2^1 *0+2^0 *0

=16+4=20 in decimal notation

CS:0287 value=00 in hexadecimal notation

0000 0000 in binary

00 in decimal notation

CS:0288 value=1D in hexadecimal notation

0001 1101 in binary notation

  2^7*0+2^6*0+2^5 *0+2^4 *1 +2^3 *1+ 2^2 *1+2^1 *0+2^0 *1

=29

CS:0289 value =00 in hexadecimal notation

0000 0000 in binary notation

00 in decimal notation

Cs:028A value=F2 in hexadecimal notation

11110010 in binary notation

  2^7*1+2^6*1+2^5 *1+2^4 *1 +2^3 *0+ 2^2 *0+2^1 *1+2^0 *0

242 in decimal notation

CS:028B value=FF in hexadecimal notation

1111 1111 in binary notation

  2^7 *1+2^60 *1+2^5 *1+2^4 *1 +2^3 *1+ 2^2 *1+2^1 *0+2^0 *1

255 in decimal notation

CS:028C value=23 in hexadecimal notation

0010 0011 in binary notation

  2^7*0+2^6*0+2^5 *1+2^4 *0 +2^3 *0+ 2^2 *0+2^1 *1+2^0 *1

35 in decimal notation

CS:028D value=00 in hexadecimal

0000 0000 in binary

00 in decimal

CS:028E value=FC in hexadecimal

1111 1100 in binary

  2^7*1+2^6*1+2^5 *1+2^4 *1 +2^3 *1+ 2^2 *1+2^1 *0+2^0 *0

252 in decimal

CS:028F value=FF in hexadecimal

1111 1111 in binary

2^7*1+2^6*1+2^5 *1+2^4 *1 +2^3 *1+ 2^2 *1+2^1 *1+2^0 *1

255 in decimal

CS:0290 value= 1B in hexadecimal

0001 1011 in binary

2^7*0+2^6*0+2^5 *0+2^4 *1 +2^3 *1+ 2^2 *0+2^1 *1+2^0 *1

27 in decimal

Cs:0291 value=00 in hexadecimal

0000 0000 in binary

00 in decimal

So all the 6 words from address location CS:0286 are converted into decimal values

Add a comment
Know the answer?
Add Answer to:
In the following memory dump file there is a 6 word array starting from CS:0286, mark...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Two arrays are defined by the following directives. _DATA SEGMENT WORD PUBLIC 'DATA' ARRAY DW 3412h,0001h,...

    Two arrays are defined by the following directives. _DATA SEGMENT WORD PUBLIC 'DATA' ARRAY DW 3412h,0001h, 2000h, 5678h, 4000h ARRAYB DB -10d, 20d, 10d, -20d _DATA ENDS After linking, the MAP file shows the start offset of _DATA segment is 0232. Make a memory dump file to show these two arrays.

  • 4. Assemble the following instruction sequence into the memory starting at address CS: 100 and th...

    please provide screenshots using dos debug. 4. Assemble the following instruction sequence into the memory starting at address CS: 100 and then verify their machine code in the memory. a. ADD AX, 00FFH b. ADC SI, AX c. INC BYTE PTR [0100H] d. SUB DL, BL e. SBB DL, [0200H] f. DEC BYTE PTR [DI+BX] g. NEG BYTE PTR [DIJ+0010H h. MUL DX i. IMUL WORD PTR [BX+SI] j. DIV WORD PTR [SI]+0030H k. IDIV WORD PTR [BX]ISI]+0030HS. How many...

  • This lab will combine reading data from a file and searching the array to find a...

    This lab will combine reading data from a file and searching the array to find a specific value. Assignment Write a program that reads in a file full of strings into an array, and prompts the user for a string to find in the array. The program should loop until a sentinel value (such as -1) is entered. After looping in main() for the input, write a search function, with the following prototype: int findWord(string [], int, string); with arguments...

  • Come up with an algorithm that searches for the minimum integer in 100 memory locations starting...

    Come up with an algorithm that searches for the minimum integer in 100 memory locations starting from 0x5a00, and sets R7 to the minimum integer. Your solution should use a looping construct. Note: Both positive and negative integers are allowed. a) Show the algorithm as a flowchart by decomposing it into its basic constructs. (4 points) b) Convert the above algorithm to an LC-3 program. Write the program in LC-3 binary code. Comment each line of code and submit the...

  • .MODEL FLAT INCLUDE io.h i header file for input/output STACK 4096 .DATA word1 word 1234 result byte 6 dup(?), e .C...

    .MODEL FLAT INCLUDE io.h i header file for input/output STACK 4096 .DATA word1 word 1234 result byte 6 dup(?), e .CODE MainProc PROC wtoa result, word1 exit with return code e mov eax, ret MainProc ENDP END Assume you set a break point in ret statement and look at the memory that starts from the address of result. Write what your expect to see in the next 6 bytes starting from result. .MODEL FLAT INCLUDE io.h i header file for...

  • Consider the the following array of length 6. Elements from the array are added, in the...

    Consider the the following array of length 6. Elements from the array are added, in the given order, to a min heap. The heap is initially empty and stored as an array. A (59,15,4,49,39,29 What will be parent of 59 in the heap Check

  • Create a Word doc file (name of the file: numbers) using Python. Write the following numbers...

    Create a Word doc file (name of the file: numbers) using Python. Write the following numbers to the Word document as shown below and read these numbers from the file and calculate and print the sum and average of these numbers. 9 5 7 6 3 After that, read these values from the file and calculate the sum and average of these numbers.   I have wrote this so far, but doesnt work! def numbersfile(): f = open("numbers.docx, "w") for i...

  • C++ Lab 1. Read in the contents of a text file up to a maximum of...

    C++ Lab 1. Read in the contents of a text file up to a maximum of 1024 words – you create your own input. When reading the file contents, you can discard words that are single characters to avoid symbols, special characters, etc. 2. Sort the words read in ascending order in an array (you are not allowed to use Vectors) using the Selection Sort algorithm implemented in its own function. 3. Search any item input by user in your...

  • The following C program fill in an array C with the larger elements from another two...

    The following C program fill in an array C with the larger elements from another two arrays A and B. Convert the code to its RISC-V assembly code. For reference to array elements A[i], you can use A(i) as its base+offset representation in the LW/SW instruction, e.g. to load an integer from A[i], you can use LW x5, A(i); Use register t0 and t1 for storing i and N respectively. int i; for (i=0; i < N; i++) {    ...

  • JAVA - Natural Quick Sort .txt and Return ----------------------------------------------------------------------------- The program should input a .txt file...

    JAVA - Natural Quick Sort .txt and Return ----------------------------------------------------------------------------- The program should input a .txt file like below and must use a Quick sort Algorithm ================ 6 10 4 19 10 12 8 6 0 1 2 3 ================ The first number "6" represents the index of the element to return after sort the second number on the top "10" represents the number of elements or size of array. The following numbers and lines are the elements that need to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT