2 * Various sections directives
3 * .bss, .data, .sect, .text, .usect
6 ; default section (should be .text)
7 .word 0x1234 ; this should be put in .text
12 coeff .word 011h,022h,033h
17 B1: .usect ".bss", 10 ; alocate 10 words
19 ; more initialized data in .data
30 ; more initialized data into .data
33 ivals .word 0aah, 0bbh, 0cch
35 ; define another section for more variables
36 .global var2, inbuf, align2
37 var2 .usect "newvars", 1 ; with quotes
38 inbuf .usect newvars, 7, 1 ; w/o quotes, block 7 words
39 align2 .usect newvars, 15, ,1 ; 15 words aligned
47 .global space, bes, spacep, besp
48 space: .space 64 ; points to first word of block
49 bes: .bes 64 ; points to last word of block
52 .global pk1, pk2, pk3, endpk1, endpk2, endpk3
59 ; named initialized section (CODE)
64 ; named, initialized section, no quotes (DATA)
66 .clink ; mark section clink as STYP_CLINK
69 .sect "blksect" ; (DATA)
71 .sblock "blksect", vectors ; set block flag on blksect and vectors