1 .toc 2 3 .macro defabs,type,name,value 4 \type \name 5 \name = \value 6 .endm 7 8 .macro deffun,type,name,fn 9 \type \name 10 .csect \name\()[DS] 11 \name\(): 12 .if size == 32 13 .long .\name\()[PR],TOC[TC0],0 14 .else 15 .llong .\name\()[PR],TOC[TC0],0 16 .endif 17 18 .globl .\name 19 .csect .\name\()[PR] 20 .\name\(): 21 nop 22 .endm 23 24 .macro defdata,type,name,contents 25 \type \name 26 .csect \name\()[RW] 27 \name\(): 28 .long \contents 29 .endm 30 31 defabs .globl,a1,0xf100 32 deffun .globl,a2 33 defdata .globl,a3,0x1100 34 35 defabs .globl,b1,0xf200 36 deffun .globl,b2 37 defdata .globl,b3,0x2200 38 39 defabs .weak,c1,0xf300 40 deffun .weak,c2 41 defdata .weak,c3,0x3300 42