News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Doubt with the STACK

Started by g6g6, June 24, 2014, 08:57:39 AM

Previous topic - Next topic

g6g6

Hello. After a "push" instruction, the stack decrement 4. This "4" is  binary (4 bytes, 4 bits) ? what this represents?

dedndave

4 bytes
each single increment of any address is by bytes

Gunther

Hi g6g6,

Quote from: dedndave on June 24, 2014, 09:13:04 AM
4 bytes
each single increment of any address is by bytes

That's right. The stack is byte oriented.

Gunther
You have to know the facts before you can distort them.

Vortex

Hi g6g6,

In 16-bit systems, the stack is modified by 2 bytes. In 64-bit systems, it's 8 bytes.

hutch--

 :biggrin:

Even worse, x86 hardware ONLY talks in BYTE or larger. BIT data is determined by a variety of techniques like AND masking or dedicated instructions like BT and similar.