- This ensures data are located on even numbered addresses so that CPU can access it faster
ALIGN <bound>
- Bound can be 1, 2, 4, 8 or 16 bytes
- Here is an actual implementation. If we didn’t use align, wVal will be located in 0x003E4001.
.data
bVal BYTE 11h ; offset = 0x003E4000
align 2
wVal WORD 2222h ; offset = 0x003E4002
bVal2 BYTE 33h ; offset = 0x003E4004
align 4
dVal DWORD 44444444h ; offset = 0x003E4008
No comments:
Post a Comment