Memory Addressing & Segments

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Given DS = 0030H and SI = 0090H, and memory locations 00390H through 00393H containing 9A, 76, 65, and 1F respectively, what value will AX contain after executing MOV AX, [SI+1]?

  • `651FH`
  • `769AH`
  • `7665H` (correct)
  • `9A76H`

The instruction MOV AX, [BX] is an example of which addressing mode?

  • Register addressing mode
  • Register indirect addressing mode (correct)
  • Direct addressing mode
  • Register relative addressing mode

In Real Mode, if a memory segment begins at 10000H, what is the ending address of that segment?

  • `1FFFFH` (correct)
  • `1F000H`
  • `2FFFFH`
  • `FFFFFH`

The segment:offset combination A359:B3FD corresponds to which physical address?

Signup and view all the answers

What segment information is NOT provided by a selector value in protected mode?

<p>None of the choices (A)</p> Signup and view all the answers

If CS contains 2001H and IP contains 007CH, what physical memory location is accessed for the next instruction?

<p><code>20010H</code> (B)</p> Signup and view all the answers

Given CS = 2000H and IP = 1000H, what is the memory address of the next instruction executed by the microprocessor?

<p><code>21000H</code> (A)</p> Signup and view all the answers

In real mode, what physical address is accessed by the segment-offset combination 0CD1:02E0?

<p><code>0CFEDH</code> (B)</p> Signup and view all the answers

If a descriptor has Base = 23000000H, Limit = 012FFH and G = 1, at what address does the described segment end?

<p><code>242FFFFFH</code> (D)</p> Signup and view all the answers

Given DS = 1000H, SS = 2000H, BP = 1000H and DI= 0100H, and assuming real mode operation, what memory address is accessed by the instruction MOV AL, [BP+DI]?

<p><code>21100H</code> (C)</p> Signup and view all the answers

Flashcards

Indirect Addressing

Uses a register to hold the actual address for data transfer.

Direct Addressing Mode

The effective address is visibly part of the instruction.

Immediate Addressing Mode

You directly specify the operand value.

Intersegment Jump

Jump to any memory location within the entire memory system

Signup and view all the flashcards

Protected Mode Memory Protection

Restricting memory acess using privilege levels and access rights

Signup and view all the flashcards

Descriptor

Used to describe the memory segment

Signup and view all the flashcards

Immediate Addressing

Specifies the operand value directly in the instruction

Signup and view all the flashcards

Study Notes

  • Memory locations 00390H through 00393H contain 9A, 76, 65, and 1F respectively, assuming DS=0030H, SI=0090H, and BP=0002H.

Question 1 possible answers

  • If AX is moved from [SI], AX contains 9AH.
  • If AX is moved from [SI+1], AX contains 76H.
  • If AX is moved from [SI][BP], AX contains 65H.
  • MOV AX, [BX] is an example of register indirect addressing mode.
  • In Real Mode, a memory segment that begins at 10000H ends at 1FFFFH.
  • The physical address accessed by the segment:offset combination A359:B3FD is AE98D.

TI Bit

  • If TI=0, the parameter is a global descriptor table.

Addressing Mode

  • Indirect addressing mode uses a register to hold the actual address for data transfer.
  • With CS containing 2001H and IP containing 007CH, the physical memory location accessed is 2008CH.

Common Physical Memory Address

  • The following segment:offset combinations point to a common physical memory address: A1B2:000C, A1B0:200C, and A1B1:001C.
  • Offset address selects any location within the 64K byte memory segment.
  • Given CS = 2000H and IP = 1000H, the memory address of the next instruction is 21000H.

Real Mode

  • In real mode, the physical address accessed by OCD1:02E0 is OCFF0H.
  • The IP register contains the location where the next instruction in the code segment should be fetched.
  • If a descriptor has Base = 23000000H, Limit = 012FFH, and G = 1, the described segment ends at 242FFFFFH.
  • Real mode memory exists at locations 00000H-FFFFFH.
  • MOV [SI], BH writes a byte of data from BH into memory location 1000H, given SI = 1000H.
  • The selector selects the descriptor from a descriptor table.

Segment Registers

  • The segment registers should only contain segment addresses.
  • In protected mode, access to the segment is allowed if both RPL <= DPL and RPL > DPL.
  • Protected mode memory protection is implemented by restricting access through privilege levels and access rights.
  • MOV AX, 1234H is an example of immediate addressing mode.

Addressing Mode Types

  • Direct Mode is when the effective address of the memory location is visibly part of the instruction.
  • To form a physical memory address, segment register contents are shifted left by 4 positions and added to the 16-bit offset address.
  • In protected mode, a selector value gives segment information including base address, access rights byte, and ending address.
  • For 80286-Core processors, protected mode memory exists at locations 000000H-FFFFFFH.
  • The first 1 MB of memory is called both conventional and real mode memory.
  • MOV DS:[2000H], AL has mixed-size operands.
  • The descriptor describes a memory segment beginning at AB208000H and ending at AC20AFFFH, which is a writable data segment, grows upward, 32bit, 2nd highest privilege and has not been accessed, the descriptor is: ABH D0H B2H 20H 80H 00H 01H 02H
  • With DS=1A00H and ECX=00002000H, the memory location is 1C000H.
  • With DS = 1000H, SS = 2000H, BP = 1000H, and DI = 0100H, with real mode operation, MOV AL, [BP+DI] accesses memory address 21100H.
  • The instruction MOV AX, 2020H uses Immediate Addressing Mode and moves 16 bits of information.
  • The descriptor describes size, boundaries, and access rights in the memory segment.

Memory Locations

  • In stack memory-addressing modes, the low-order 8 bits are placed in the location addressed by the Stack Pointer.
  • Immediate Addressing Mode is where you directly specify the operand value..
  • An intersegment jump is a jump to any memory location within the entire memory system.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Memory Addressing
36 questions

Memory Addressing

MarvelousMarsh avatar
MarvelousMarsh
Memory Addressing and Instruction Set Quiz
18 questions
Memory Addressing in Assembly Language
34 questions
Regiștri de adresă în calculatoare
64 questions

Regiștri de adresă în calculatoare

RedeemingWatermelonTourmaline1914 avatar
RedeemingWatermelonTourmaline1914
Use Quizgecko on...
Browser
Browser