mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 06:56:47 +08:00
596 B
596 B
Section 1 / Using Structs
This topic has already been covered indirectly by examples provided in:
To summarize using structs:
-
All
structshave a base address -
The base address corresponds to the beginning of the first data member
-
All subsequent data members are offsets relative to the first
-
In order to use a
structcorrectly, you must have first calculated the offsets of each data member -
Sometimes there will be padding between data members due to the need to align all data members on natural boundaries.