Why is it not possible to push a byte onto a stack on Pentium IA-32?

前端 未结 4 1831
不知归路
不知归路 2020-12-03 14:43

I\'ve come to learn that you cannot push a byte directly onto the Intel Pentium\'s stack, can anyone explain this to me please?

The reason that I\'ve been given is b

4条回答
  •  不知归路
    2020-12-03 14:49

    what you want to do is use the bit rotation opcodes to rotate through each 32-bit memory location, placing 8 bits at a time into the register until you have rotated back to the starting bit positions. now you should have 4 8-bit quantities lined up side by side in your 32 bit register. now push that onto the stack and you're done.

提交回复
热议问题