| Electronic Components Datasheet Search |
|
AN3350 Datasheet(PDF) 64 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 Datasheet(HTML) 64 Page - STMicroelectronics |
|
64 / 185 page ![]() Working with the assembler AN3350 64/185 Doc ID 018512 Rev 2 In general, code and data statements are stored in the memory sequentially, following their order in the text. At any given moment, the storing address is termed the current location (see Section 10.4.4: The current location) and is relative to the beginning of the current section within which the next statement (code or data) will be stored. The current location can be changed as shown in Table 6. Note: The .align directive will align the current location with respect to the base of the current compilation unit only. If the object is linked with other objects, effective alignment will depend on the linker’s configuration. Table 6. Data storage directives Directive Action .section sec Associates the following code and data with section sec. See Section 10.4.1: Memory spaces and sections for more information. .org address Store the following code and data at the resolved address. This statement begins a new section. .previous Revert to the previous section (allows you to toggle between .section and .org sections). .endsec End the current section and returns to the previous section on the stack. .word integer Starting at the current location, stores the numeric word integer (in big endian). The word’s default size is the current section’s natural word width (in bytes), but can be explicitly stated using the .b1, .b2, and .b4 attributes. The storage location is aligned according to word size by default. You can use the attribute .n to skip alignment. .leb 128 Store a 32-bit integer in LEB128 format (for use in DWARF objects, for instance). Size can vary from one to four bytes. Use attributes .s and .u to store signed and unsigned integers (the default is unsigned). .hexa string Starting at the current location, stores the hexadecimal bytes string. For example, .hexa “65FF” stores two bytes: 101, and 255. .ascii string Starting at the current location, stores the ASCII bytes in string. .asciz string Starting at the current location, stores the ASCII bytes in string, and append a zero byte to the end. .skip integer Increment the current location integer bytes. The number of bytes incremented is integer times the current section’s natural word width (in bytes). You can explicitly specify the number of bytes by using the .b1, .b2, and .b4 attributes. Skipped bytes are filled with zero in the data space, and with 0xFF in the code space. .align integer Advance the current location (with padding) as required to be aligned on a word address boundary set by 2^integer (where integer has a range of 1 through 16). You can use the .b1, .b2, and .b4 attributes to specify other word sizes |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |