Example 1. Sections Directives

00000004 00000002 6 00000008 00000003 .word 3,4 0000000c 00000004 7 8 ************************************************** 9 * Start assembling into the .data section * 10 ************************************************** 11 00000000 .data 12 00000000 00000009 .word 9, 10 00000004 0000000A 13 00000008 0000000B .word 11, 12 0000000c 0000000C 14 15 ************************************************** 16 * Start assembling into a named, * 17 * initialized section, var_defs * 18 ************************************************** 19 00000000 .sect "var_defs" 20 00000000 00000011 .word 17, 18 00000004 00000012 21 22 ************************************************** 23 * Resume assembling into the .data section * 24 ************************************************** 25 00000010 .data 26 00000010 0000000D .word 13, 14 00000014 0000000E 27 00000000 .bss sym, 19 ; Reserve space in .bss 28 00000018 0000000F .word 15, 16 ; Still in .data 0000001c 00000010 29 30 ************************************************** 31 * Resume assembling into the .text section * 32 ************************************************** 33 00000010 .text 34 00000010 00000005 .word 5, 6 00000014 00000006 35 00000000 usym .usect "xy", 20 ; Reserve space in xy 36 00000018 00000007 .word 7, 8 ; Still in .text 0000001c 00000008