Home > other >  Ask, why 8086 stack can only push two bytes? Why the stack must be two byte bytes of storage?
Ask, why 8086 stack can only push two bytes? Why the stack must be two byte bytes of storage?

Time:03-07

Ask, why 8086 stack can only push two bytes? Why the stack must be two byte bytes of storage?

Can push AX//
Push AL//can't

CodePudding user response:

Dizzy dead, learned decades also didn't notice this,

Cannot, of course, because it is 16 bit CPU, push only by the word length, and this is the rules, as for the rules must be efficiency

CodePudding user response:

reference 1st floor liups response:
everything, learned decades haven't noticed this,

Cannot, of course, because it is 16 bit CPU, push only by the word length, and this is the rules, as for the rules must be efficiency

Thank you for your reply,
Efficiency is supposed to be a reason, although I don't know why,
Can arrange the position, but register without reason push not, should be deliberately designed to be so, maybe the costs?

CodePudding user response:

refer to the second floor qq_16774199 response:
Quote: refer to 1st floor liups response:
everything, learned decades haven't noticed this,

Cannot, of course, because it is 16 bit CPU, push only by the word length, and this is the rules, as for the rules must be efficiency

Thank you for your reply,
Efficiency is supposed to be a reason, although I don't know why,
Can arrange the position, but register without reason push not, should be deliberately designed to be so, maybe the costs?

Can go to some memory alignment information search on the net,

In fact this is a problem of space and time, according to the idea of the building Lord, if allowed to push al, so whether we when accessing a memory can also allow the bitwise operation?