Shendre Kiran
Shendre Kiran

Reputation: 157

Can we use PUSH instruction as ' PUSH AL '

8086 Microprocessor Instruction.Can we use PUSH instruction as 'PUSH AL'? What is the syntax of PUSH instruction either its operand is 16 bit or 8 bit

Upvotes: 4

Views: 5576

Answers (1)

Sep Roland
Sep Roland

Reputation: 39166

On 8086 push decrements the SP register by 2 and then writes a 16 bit value at the memory pointed to by the SP register. You cannot write push al because AL is an 8 bit value and push requires a 16 bit value. So you must write push ax.

Upvotes: 5

Related Questions