answersLogoWhite

0


Best Answer

SP is the stack pointer and can be used in the stack operations. It cannot be used for fetching the instruction

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you use sp as offset address holder with cs?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How the 20 bit effective address is calculated in 8086?

The 8086 forms a 20 bit address by adding the effective address (a 16 bit value) to a segment register (another 16 bit value) which is left shifted by 4. That gives a 20 bit address in the range of 00000H to FFFFFH. cs register holds the base address (16 bit) and the IP has the offset. (ex): CS --->348A IP --->4214(offset) generation of 20 bit: CS*10+IP (ie) 348A0 04214 + ---------------------- 38AB4(20 BIT) ----------------------


What is segment address?

A segment address is the contents of a segment register, CS, DS, ES, or SS. It is used after effective address generation to provide an offset in physical memory, by multiplying the segment register by 16 and then adding it to the effective address, giving a 20 bit address. This gives you addressability to 65536 segments of 65536 bytes, each separated by 16 bytes. The register used is usually implicit based on use; CS for code, DS for data, ES for certain string operations, and SS for stack. A segment override prefix can be used to select a different segment register.


What registers is used to keep track of address of the memory location where the next instruction is located?

Instruction pointer (IP) is used to hold the offset of the next instruction to be fetched for BIU available from Code Segment whose base address is held in CS segment base register..


How physical address is generated in 8086 microprocessor?

For the formation of physical address we need Segment address and offset address Consider an example Segment Address : 1005H Offset Address : 5555H Segment address : 1005H 0001 0000 0000 0101 Shifted by 4 bit positions : 0001 0000 0000 0101 0000 Offset Address : + 0101 0101 0101 0101 Physical Address : 0001 0101 0101 1010 0101 1 5 5 A 5 H Physical Address of given Segment Address : 155A5H


What are MBD Attorneys email address?

011 560 4724


A Explain the use of Code Segment CS and data segment DS register in 8086 microprocessor?

Code segment (CS) is a 16-bit register containing address of 64 KB segment with processor instructions. The processor uses CS segment for all accesses to instructions referenced by instruction pointer (IP) register. CS register cannot be changed directly. The CS register is automatically updated during far jump, far call and far return instructions. Data segment (DS) is a 16-bit register containing address of 64KB segment with program data. By default, the processor assumes that all data referenced by general registers (AX, BX, CX, DX) and index register (SI, DI) is located in the data segment. DS register can be changed directly using POP and LDS instructions. Code segment (CS) is a 16-bit register containing address of 64 KB segment with processor instructions. The processor uses CS segment for all accesses to instructions referenced by instruction pointer (IP) register. CS register cannot be changed directly. The CS register is automatically updated during far jump, far call and far return instructions. Data segment (DS) is a 16-bit register containing address of 64KB segment with program data. By default, the processor assumes that all data referenced by general registers (AX, BX, CX, DX) and index register (SI, DI) is located in the data segment. DS register can be changed directly using POP and LDS instructions.


What is CS Lewis's fan address?

Due to privacy reasons, CS Lewis's fan address is not publicly available. However, fans can connect with his work through his books, articles, and other literary works he has produced.


How you calculate the physical address in 8086 microprocessor with example?

The physical address in the 8086/8088 is calculated by adding the effective address with the contents of one of the segment registers left shifted by 4 bit positions. This results in a 20 bit address bus. As an example, if the CS register contains 1234H, and the IP register contains 5678H, then the next instruction is fetched from physical address 179B8H, which is 1234H times 16 (12340H) plus 5678H. The segment register used is selected by context, or by using a segment override prefix, however, the code segment register (CS) can not be overidden during instruction fetch, nor can the stack segment register (SS) be overidden during stack pushes and pops.


Does the n-strike recon cs-6 Nerf gun use the same clip as the longshot cs-6?

Yes.


What is cs welding?

CS Welding is known as Carbon Steel welding that is more beneficial and easy to use for welding purpose.


Where can you download cs 1.6 for mac?

Use softpedia....


What is the complete explanation about segment register?

A segment register contains a biased address which is used to calculate the physical address of a memory reference. The physical address calculation is ... APHYSICAL = ASEGMENT * 16 + ALOGICAL ... where the logical address is the effective address generated by the CPU instruction, also called the offset address. There are four segment registers, CS, SS, DS, and ES, standing for Code Segment, Stack Segment, Data Segment, and Extra Segment. Each is 16 bits in size, and is selected either in context of the particular operation or by use of a segment override prefix instruction. Normally, CS is used for code, SS is used for stack operations (including BP relative calculations), DS is used for data, and ES is used as the second operand in certain repeated string operations. Since the segment register is 16 bits in size, and the offset (logical) address is also 16 bits in size, the effective range of the physical address is 20 bits, or one megabyte. This is due to the segment address being multiplied by 16, i.e. left shifted by 4. This is called a segmented architecture, and allows for single instruction access to 64 KB of data at any one time. With two instructions, however, you can get to any of 1MB of data. Note that this is not the same as virtual addressing. The 8086/8088 does not provide virtual (or protected) addressing.