Question

In: Computer Science

9- Show how the word ABCD H is stored in the memory starting at 0A002 H?...

9- Show how the word ABCD H is stored in the memory starting at 0A002 H?

11- How the decimal number 500 is stored in the memory?

13- Which two values are needed for memory address calculations?

15- What are the steps of an instruction execution? Briefly explain each step.

please answer all of them I will upvote!

19- Calculate the value of memory address in each case: a) 2000:33BB b) 0200:AA00 c) 0220:00BC

20- A data segment is to be located from A0000 to AFFFF H, which value is stored in DS?

Solutions

Expert Solution

Q 9

The character values are stored as their corresponding ASCII values

The ASCII values of A - 065 binary form 01000001

B - 066 binary form 01000010

C - 067 binary form 01000011

D - 068 binary form 01000100

A letter is stored in a single byte that is 8 bits.

So A B C D would get stored as

01000001 01000010 01000011 01000100

Q 11

The number 500 after converting into binary becomes

111110100 here we get a 9 bit number.

Assuming it as a 32 bit register

The remaining 23 bits are filled with 0.

Hence the value stored in memory is

00000000 00000000 00000001 11110100

Starting address would have 00000000

And then moving up to store the subsequent bytes.

Q 13

The segment and offset values are needed for calculating the physical memory address.

Note: illustrated with examples in Q 19

Q 19

a )Here the logical addres is specified as

2000: 33BB

The offset is 33BB and 2000 is the value of DS.

To calculate the effective address the following formula is used.

Starting address + offset

Starting address is obtained by appending the contents of segment register with 0H.

Appending 0H to 2000 we get 20000H

Now adding the offset we get 20000 + 33BB that is 233BB becomes the effective address.

b) 0200: AA00

Appending 0H to the segment value ==> 02000H

Effective address = 02000 + AA00 ==>CA00 H

c) 0220:00BC

Starting address = 02200Hb( appending 0H)

Effective address = starting address + offset = 02200+00BC = 22BC H

Q 20

The upper range of the data segment is AFFFF that is A0000+ FFFF.

The low range being A0000 + 0000

The value of the DS after removing 0H being A000 H

  


Related Solutions

The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show...
The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show the 16-bit unsigned binary representation of (1,036)10. Show the 4-digit unsigned hexadecimal representation of (1,036)10. The unsigned binary value of part (a) should be stored using two bytes of a byte-addressable memory at locations 400 and 401. Specify the hexadecimal value in each byte for a “big endian” instruction set architecture. Give your answer by showing a table like the one below.                                                                                               ...
Give an example of how information gets into memory, is stored over time, and is retrieved...
Give an example of how information gets into memory, is stored over time, and is retrieved when needed.
Consider G = (Z12, +). Let H = {0, 3, 6, 9}. a. Show that H...
Consider G = (Z12, +). Let H = {0, 3, 6, 9}. a. Show that H is a subgroup of G. b. Find all the cosets of H in G and denote this set by G/H. [Note: If x ∈ G then H +12 [x]12 = {[h + x]12?? | [h]12 ∈ H} is the coset generated by x.] c. For H +12 [x]12, H +12 [y]12 ∈ G/H define (H+12[x]12)⊕(H+12[y]12) by(H+12 [x]12)⊕(H+12 [y]12)=H+12 [x+y]12. d. Show that ⊕ is...
THE CODE IN THIS QUESTION IS STORED IN THE MEMORY FROM ADDRESS 0X1FFF000. SO TAKE THIS...
THE CODE IN THIS QUESTION IS STORED IN THE MEMORY FROM ADDRESS 0X1FFF000. SO TAKE THIS INTO CONSIDERATION. 1.     In the following MIPS assembly code, translate all the instructions to their corresponding machine code in hexadecimal format. This code is stored in the memory from address 0x1fff0000. Loop: sw $t1, 4($s0)        addi $t1, $t1, -1    sll $t1, $t1, 2        bne $t1, $s5, Exit    addi $s0, $s0, 4          j Loop Exit: … ********************************THE FOLLOWING...
What is Translatinal look-aside buffer (TLB)? What is it for? What is stored in this memory?...
What is Translatinal look-aside buffer (TLB)? What is it for? What is stored in this memory? How can yo distinguish TLB buffer from cache memory?
D-Latch is a simple clocked memory element in which the output is equal to the stored...
D-Latch is a simple clocked memory element in which the output is equal to the stored state inside the element. In D-Latch the state is changed whenever the appropriate inputs change and the clock is asserted. A D-Latch has two inputs and two outputs. The inputs are the data value to be stored and a clock signal that indicates when the latch should read the value on the data input and store it. The outputs are simply the value of...
D-Latch is a simple clocked memory element in which the output is equal to the stored...
D-Latch is a simple clocked memory element in which the output is equal to the stored state inside the element. In D-Latch the state is changed whenever the appropriate inputs change and the clock is asserted. A D-Latch has two inputs and two outputs. The inputs are the data value to be stored and a clock signal that indicates when the latch should read the value on the data input and store it. The outputs are simply the value of...
I have a char memory[1024]. I want to write the string "mike" into the memory starting...
I have a char memory[1024]. I want to write the string "mike" into the memory starting from an index. I also need a function to move "mike" to another index in the same memory swapping m and k in mike. Basically, i need a function to write to memory and a function to move the string to an index. Thank you In c++ please.
Discuss flashbulb memories and the idea that all memories are stored permanently in long-term memory.
Discuss flashbulb memories and the idea that all memories are stored permanently in long-term memory.
Assume that the variables w, x, y, and z are stored in memory locations 16, 32,...
Assume that the variables w, x, y, and z are stored in memory locations 16, 32, 48, and 128 respectively. Translate the following algorithmic operations into MIPS language equivalents: [Assume $s1 is the base register, and $s1 contains the address of memory location 0]                                                                                                             if ((x – y) ³ w) then       set x to y else: set x to z endif
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT