|
|
1.1 root 1: /*
2: * sam: GCC has a bad feature ("bug" would a better word) for uae in
3: * libamiga.a: bltsize, bltcon0, ... are defined as absolute address
4: * in memory, causing real customchip registers being modified when
5: * UAE is running. (I hate this feature... It makes me lost lots of
6: * time looking for a bug on my side =:-( ).
7: *
8: * This cures the problem (I hope, since I don't exactly know which
9: * variables need to be redefined for UAE):
10: */
11: /* 0.6.1 */
12: #define bltsize my_bltsize
13: #define bltcon0 my_bltcon0
14: #define bltcon1 my_bltcon1
15: #define bltapt my_bltapt
16: #define bltbpt my_bltbpt
17: #define bltcpt my_bltcpt
18: #define bltdpt my_bltdpt
19: #define adkcon my_adkcon
20: /* 0.6.3 */
21: #define serdat my_serdat
22: #define dmacon my_dmacon
23: #define intena my_intena
24: #define intreq my_intreq
25:
26: #define AMIGALIB_NEED_TO_BE_REALLY_SURE
27: /*
28: * Those are here is case of doubt (they are all absolute address
29: * in libamiga.a, defining CUSTOM_NEED_TO_BE_REALLY_SURE will prevent
30: * uae from using any absolute variable.
31: */
32: #ifdef AMIGALIB_NEED_TO_BE_REALLY_SURE
33: #define bootrom my_bootrom
34: #define cartridge my_cartridge
35: #define romend my_romend
36: #define romstart my_romstart
37: #define adkcon my_adkcon
38: #define adkconr my_adkconr
39: #define aud my_aud
40: #define bltadat my_bltadat
41: #define bltafwm my_bltafwm
42: #define bltalwm my_bltalwm
43: #define bltamod my_bltamod
44: #define bltapt my_bltapt
45: #define bltbdat my_bltbdat
46: #define bltbmod my_bltbmod
47: #define bltbpt my_bltbpt
48: #define bltcdat my_bltcdat
49: #define bltcmod my_bltcmod
50: #define bltcon0 my_bltcon0
51: #define bltcon1 my_bltcon1
52: #define bltcpt my_bltcpt
53: #define bltddat my_bltddat
54: #define bltdmod my_bltdmod
55: #define bltdpt my_bltdpt
56: #define bltsize my_bltsize
57: #define bpl1mod my_bpl1mod
58: #define bpl2mod my_bpl2mod
59: #define bplcon0 my_bplcon0
60: #define bplcon1 my_bplcon1
61: #define bplcon2 my_bplcon2
62: #define bpldat my_bpldat
63: #define bplpt my_bplpt
64: #define clxcon my_clxcon
65: #define clxdat my_clxdat
66: /* Oh look ! libamiga.a does not allow you to define a shared
67: variable caled color.... This is quite annoying :-/ */
68: #define color my_color
69: #define cop1lc my_cop1lc
70: #define cop2lc my_cop2lc
71: #define copcon my_copcon
72: #define copins my_copins
73: #define copjmp1 my_copjmp1
74: #define copjmp2 my_copjmp2
75: #define custom my_custom
76: #define ddfstop my_ddfstop
77: #define ddfstrt my_ddfstrt
78: #define diwstop my_diwstop
79: #define diwstrt my_diwstrt
80: #define dmacon my_dmacon
81: #define dmaconr my_dmaconr
82: #define dskbytr my_dskbytr
83: #define dskdat my_dskdat
84: #define dskdatr my_dskdatr
85: #define dsklen my_dsklen
86: #define dskpt my_dskpt
87: #define intena my_intena
88: #define intenar my_intenar
89: #define intreq my_intreq
90: #define intreqr my_intreqr
91: #define joy0dat my_joy0dat
92: #define joy1dat my_joy1dat
93: #define joytest my_joytest
94: #define pot0dat my_pot0dat
95: #define pot1dat my_pot1dat
96: #define potgo my_potgo
97: #define potinp my_potinp
98: #define refptr my_refptr
99: #define serdat my_serdat
100: #define serdatr my_serdatr
101: #define serper my_serper
102: #define spr my_spr
103: #define sprpt my_sprpt
104: #define vhposr my_vhposr
105: #define vhposw my_vhposw
106: #define vposr my_vposr
107: #define vposw my_vposw
108: #define ciaa my_ciaa
109: #define ciaacra my_ciaacra
110: #define ciaacrb my_ciaacrb
111: #define ciaaddra my_ciaaddra
112: #define ciaaddrb my_ciaaddrb
113: #define ciaaicr my_ciaaicr
114: #define ciaapra my_ciaapra
115: #define ciaaprb my_ciaaprb
116: #define ciaasdr my_ciaasdr
117: #define ciaatahi my_ciaatahi
118: #define ciaatalo my_ciaatalo
119: #define ciaatbhi my_ciaatbhi
120: #define ciaatblo my_ciaatblo
121: #define ciaatodhi my_ciaatodhi
122: #define ciaatodlow my_ciaatodlow
123: #define ciaatodmid my_ciaatodmid
124: #define ciab my_ciab
125: #define ciabcra my_ciabcra
126: #define ciabcrb my_ciabcrb
127: #define ciabddra my_ciabddra
128: #define ciabddrb my_ciabddrb
129: #define ciabicr my_ciabicr
130: #define ciabpra my_ciabpra
131: #define ciabprb my_ciabprb
132: #define ciabsdr my_ciabsdr
133: #define ciabtahi my_ciabtahi
134: #define ciabtalo my_ciabtalo
135: #define ciabtbhi my_ciabtbhi
136: #define ciabtblo my_ciabtblo
137: #define ciabtodhi my_ciabtodhi
138: #define ciabtodlow my_ciabtodlow
139: #define ciabtodmid my_ciabtodmid
140: #endif /* AMIGALIB_NEED_TO_BE_REALLY_SURE */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.