answersLogoWhite

0

To exchange two registers, say the BX and CX registers, in the 8086 using the stack, you can use...

PUSH BX

PUSH CX

POP BX

POP CX

... Of course, this is for 16 bit operation. If you want 8 bit operation, you will need to do more than that, because stack operations are always 16-bit operations.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How does the Fetch Decode Execute work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


How does fetch decode cycle work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


What is the Process (Fetch Decode Execute Store)?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


How does fetch decode execute cycle work?

The program counter in the processor holds the address of the next instruction needed from main memory. The program counter copies its contents into the memory address register. The memory address register then sends the address along the address bus to main memory and the contents of the memory location specified by the address are sent along the data bus to the memory buffer register. The contents of the memory buffer register are then copied to the current instruction register where they are decoded and executed.


Instruction Buffer Register?

An Instruction Buffer Register is also known as IBR. It registers a computer's processor or its Central Processing Unit (CPU).


If processor is allocating in memory configured in system entirely for task give example?

instruction register


What is the purpose of the DCR instruction in 8085?

the contents of the designated register is decremented by 1,and result is placed in the same location.


How data transfer operation is done in 8085 micro processor?

Data transfer in the 8085 microprocessor can be done with the help of several instructions like the MOV,MVI,OUT and IN . Lets say, we want to move the contents of a register R1 to register R2, then we could use the instruction MOV R2,R1 ; and so on...


What are the four distinct actions that a machine instruction can specify?

• The processor fetches the instruction from memory • Program counter (PC) holds address of the instruction to be fetched next • PC is incremented after each fetch • Fetched instruction loaded into instruction register


Which register modifies ret instruction?

instruction register


What is the need of instruction pointer?

IP(instruction Pointer) is a processor Register IP store the offset address of the next instruction IP can be modified by Jump & call condition IP can Increment by 1,2,3.......bytes Regard:tiger_ucet@yahoo.com


What are register variables What are the advantage of using register variables?

Asks the compiler to devote a processor register to this variable in order to speed the program's execution. The compiler may not comply and the variable looses it contents and identity when the function it which it is defined terminates.