Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Drivers / Common / MODEFILE.s
blob9065e3887caf9813235d125cc70934390455c72f
2 .MACRO LONG num
3 .ifdef LITTLE_ENDIAN
4 .ifdef x86_64
5 .byte 0, 0, 0, 0
6 .endif
7 .byte ((\num)>>24)&255
8 .byte ((\num)>>16)&255
9 .byte ((\num)>> 8)&255
10 .byte ((\num)>> 0)&255
11 .else
12 .long \num
13 .endif
14 .ENDM
16 .MACRO LONG32 num
17 .ifdef LITTLE_ENDIAN
18 .byte ((\num)>>24)&255
19 .byte ((\num)>>16)&255
20 .byte ((\num)>> 8)&255
21 .byte ((\num)>> 0)&255
22 .else
23 .long \num
24 .endif
25 .ENDM
27 .MACRO LONG2 num1,num2
28 .ifdef LITTLE_ENDIAN
29 .ifdef x86_64
30 .byte 0, 0, 0, 0
31 .endif
32 .byte ((\num1)>>24)&255
33 .byte ((\num1)>>16)&255
34 .byte ((\num1)>> 8)&255
35 .byte ((\num1)>> 0)&255
37 .ifdef x86_64
38 .byte 0, 0, 0, 0
39 .endif
40 .byte ((\num2)>>24)&255
41 .byte ((\num2)>>16)&255
42 .byte ((\num2)>> 8)&255
43 .byte ((\num2)>> 0)&255
44 .else
45 .long \num1, \num2
46 .endif
47 .ENDM
49 .MACRO FORM_START name
50 .ascii "FORM"
51 LONG32 FORMEND-FORMSTART
52 FORMSTART:
53 .ascii "\name"
54 .ENDM
56 .MACRO FORM_END name
57 FORMEND:
58 .balign 2,0
59 .ENDM
61 .MACRO CHUNK_START name
62 .ascii "\name"
63 LONG32 101f-100f
64 100:
65 .ENDM
67 .MACRO CHUNK_END
68 101:
69 .balign 2,0
70 .ENDM
72 .SET AHI_TagBase, 2147483648
73 .SET AHI_TagBaseR, AHI_TagBase+32768
75 .SET AHIDB_AudioID, AHI_TagBase+100
76 .SET AHIDB_Volume, AHI_TagBase+103
77 .SET AHIDB_Panning, AHI_TagBase+104
78 .SET AHIDB_Stereo, AHI_TagBase+105
79 .SET AHIDB_HiFi, AHI_TagBase+106
80 .SET AHIDB_MultTable, AHI_TagBase+108
81 .SET AHIDB_Name, AHI_TagBaseR+109
82 .SET AHIDB_MultiChannel, AHI_TagBase+144
83 .SET AHIDB_PingPong, AHI_TagBase+107
85 .SET AHIDB_UserBase, AHI_TagBase+500
87 .SET TAG_DONE, 0
89 .SET TRUE, 1
90 .SET FALSE, 0