ag68kmpw.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. {
  2. $Id$
  3. Copyright (c) 1998 by the FPC development team
  4. This unit implements an asmoutput class for Macintosh MPW syntax
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit ag68kmpw;
  19. interface
  20. uses aasm,assemble;
  21. type
  22. pm68kmpwasmlist=^tm68kmpwasmlist;
  23. tm68kmpwasmlist = object(tasmlist)
  24. procedure WriteTree(p:paasmoutput);virtual;
  25. procedure WriteAsmList;virtual;
  26. end;
  27. implementation
  28. uses
  29. dos,globals,systems,cobjects,m68k,
  30. strings,files,verbose
  31. {$ifdef GDB}
  32. ,gdb
  33. {$endif GDB}
  34. ;
  35. function double2str(d : double) : string;
  36. var
  37. hs : string;
  38. begin
  39. str(d,hs);
  40. double2str:=hs;
  41. end;
  42. function comp2str(d : bestreal) : string;
  43. type
  44. pdouble = ^double;
  45. var
  46. c : comp;
  47. dd : pdouble;
  48. begin
  49. {$ifdef TP}
  50. c:=d;
  51. {$else}
  52. c:=comp(d);
  53. {$endif}
  54. dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
  55. comp2str:=double2str(dd^);
  56. end;
  57. const
  58. line_length = 70;
  59. function getreferencestring(const ref : treference; var importstring: string) : string;
  60. var
  61. s : string;
  62. begin
  63. s:='';
  64. importstring:='';
  65. if ref.isintvalue then
  66. s:='#'+tostr(ref.offset)
  67. else
  68. with ref do
  69. begin
  70. if (index=R_NO) and (base=R_NO) and (direction=dir_none) then
  71. begin
  72. if assigned(symbol) then
  73. begin
  74. s:=s+symbol^;
  75. importstring:=symbol^;
  76. if offset<0 then
  77. s:=s+tostr(offset)
  78. else
  79. if (offset>0) then
  80. s:=s+'+'+tostr(offset);
  81. s:='('+s+').L';
  82. end
  83. else
  84. begin
  85. { direct memory addressing }
  86. s:=s+'('+tostr(offset)+').L';
  87. end;
  88. end
  89. { index<>R_NO or base<>R_NO }
  90. else
  91. begin
  92. if assigned(symbol) then
  93. s:=s+symbol^;
  94. if offset<0 then
  95. s:=s+tostr(offset)
  96. else
  97. if (offset>0) then
  98. begin
  99. if (symbol=nil) then s:=tostr(offset)
  100. else s:=s+'+'+tostr(offset);
  101. end;
  102. if (index<>R_NO) and (base=R_NO) and (direction=dir_none) then
  103. begin
  104. if (scalefactor = 1) or (scalefactor = 0) then
  105. begin
  106. if offset = 0 then
  107. s:=s+'0(,'+mot_reg2str[index]+'.l)'
  108. else
  109. s:=s+'(,'+mot_reg2str[index]+'.l)';
  110. end
  111. else
  112. begin
  113. if offset = 0 then
  114. s:=s+'0(,'+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')'
  115. else
  116. s:=s+'(,'+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')';
  117. end
  118. end
  119. else
  120. if (index=R_NO) and (base<>R_NO) and (direction=dir_inc) then
  121. begin
  122. if (scalefactor = 1) or (scalefactor = 0) then
  123. s:=s+'('+mot_reg2str[base]+')+'
  124. else
  125. InternalError(10002);
  126. end
  127. else
  128. if (index=R_NO) and (base<>R_NO) and (direction=dir_dec) then
  129. begin
  130. if (scalefactor = 1) or (scalefactor = 0) then
  131. s:=s+'-('+mot_reg2str[base]+')'
  132. else
  133. InternalError(10003);
  134. end
  135. else
  136. if (index=R_NO) and (base<>R_NO) and (direction=dir_none) then
  137. begin
  138. s:=s+'('+mot_reg2str[base]+')';
  139. end
  140. else
  141. if (index<>R_NO) and (base<>R_NO) and (direction=dir_none) then
  142. begin
  143. if (scalefactor = 1) or (scalefactor = 0) then
  144. begin
  145. if offset = 0 then
  146. s:=s+'0('+mot_reg2str[base]+','+mot_reg2str[index]+'.l)'
  147. else
  148. s:=s+'('+mot_reg2str[base]+','+mot_reg2str[index]+'.l)';
  149. end
  150. else
  151. begin
  152. if offset = 0 then
  153. s:=s+'0('+mot_reg2str[base]+','+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')'
  154. else
  155. s:=s+'('+mot_reg2str[base]+','+mot_reg2str[index]+'.l*'+tostr(scalefactor)+')';
  156. end
  157. end
  158. { if this is not a symbol, and is not in the above, then there is an error }
  159. else
  160. if NOT assigned(symbol) then
  161. InternalError(10004);
  162. end; { endif }
  163. end; { end with }
  164. getreferencestring:=s;
  165. end;
  166. function getopstr(t : byte;o : pointer) : string;
  167. var
  168. hs : string;
  169. i: tregister;
  170. importstring: string;
  171. begin
  172. case t of
  173. top_reg : getopstr:=mot_reg2str[tregister(o)];
  174. top_reglist: begin
  175. hs:='';
  176. for i:=R_NO to R_FPSR do
  177. begin
  178. if i in tregisterlist(o^) then
  179. hs:=hs+mot_reg2str[i]+'/';
  180. end;
  181. delete(hs,length(hs),1);
  182. getopstr := hs;
  183. end;
  184. top_ref : getopstr:=getreferencestring(preference(o)^,importstring);
  185. top_const : getopstr:='#'+tostr(longint(o));
  186. top_symbol : begin
  187. hs[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  188. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  189. if pcsymbol(o)^.offset>0 then
  190. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  191. else if pcsymbol(o)^.offset<0 then
  192. hs:=hs+tostr(pcsymbol(o)^.offset);
  193. getopstr:=hs;
  194. end;
  195. else internalerror(10001);
  196. end;
  197. end;
  198. function getopstr_jmp(t : byte;o : pointer; var importname: string) : string;
  199. var
  200. hs : string;
  201. begin
  202. importname:='';
  203. case t of
  204. top_reg : getopstr_jmp:=mot_reg2str[tregister(o)];
  205. top_ref : getopstr_jmp:=getreferencestring(preference(o)^,importname);
  206. top_const : getopstr_jmp:=tostr(longint(o));
  207. top_symbol : begin
  208. hs[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  209. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  210. if pcsymbol(o)^.offset>0 then
  211. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  212. else if pcsymbol(o)^.offset<0 then
  213. hs:=hs+tostr(pcsymbol(o)^.offset);
  214. importname:=hs;
  215. hs:='('+hs+').L';
  216. getopstr_jmp:=hs;
  217. end;
  218. else internalerror(10001);
  219. end;
  220. end;
  221. {****************************************************************************
  222. TM68KMOTASMLIST
  223. ****************************************************************************}
  224. var
  225. LastSec : tsection;
  226. procedure tm68kmpwasmlist.WriteTree(p:paasmoutput);
  227. var
  228. hp : pai;
  229. s : string;
  230. counter,
  231. i,j,lines : longint;
  232. quoted : boolean;
  233. importname: string;
  234. begin
  235. hp:=pai(p^.first);
  236. while assigned(hp) do
  237. begin
  238. case hp^.typ of
  239. ait_comment : Begin
  240. AsmWrite(target_asm.comment);
  241. AsmWritePChar(pai_asm_comment(hp)^.str);
  242. AsmLn;
  243. End;
  244. ait_section : begin
  245. if pai_section(hp)^.sec<>sec_none then
  246. begin
  247. AsmLn;
  248. end;
  249. LastSec:=pai_section(hp)^.sec;
  250. end;
  251. {$ifdef DREGALLOC}
  252. ait_regalloc : AsmWriteLn(target_asm.comment+'Register '+att_reg2str[pairegalloc(hp)^.reg]+' allocated');
  253. ait_regdealloc : AsmWriteLn(target_asm.comment+'Register '+att_reg2str[pairegalloc(hp)^.reg]+' released');
  254. {$endif DREGALLOC}
  255. ait_align : AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  256. ait_external : AsmWriteLn(#9'IMPORT'#9+StrPas(pai_external(hp)^.name));
  257. ait_real_extended : Message(assem_e_extended_not_supported);
  258. ait_comp : Message(assem_e_comp_not_supported);
  259. ait_datablock : begin
  260. { ------------------------------------------------------- }
  261. { ----------- ALIGNMENT FOR ANY NON-BYTE VALUE ---------- }
  262. { ------------- REQUIREMENT FOR 680x0 ------------------- }
  263. { ------------------------------------------------------- }
  264. if pai_datablock(hp)^.size <> 1 then
  265. begin
  266. if not(cs_littlesize in aktglobalswitches) then
  267. AsmWriteLn(#9'ALIGN 4')
  268. else
  269. AsmWriteLn(#9'ALIGN 2');
  270. end;
  271. if pai_datablock(hp)^.is_global then
  272. AsmWriteLn(#9'EXPORT'#9+StrPas(pai_datablock(hp)^.name));
  273. AsmWriteLn(#9#9+StrPas(pai_datablock(hp)^.name)+#9#9'DS.B '+tostr(pai_datablock(hp)^.size));
  274. end;
  275. ait_const_32bit : Begin
  276. AsmWriteLn(#9#9'DC.L'#9+tostr(pai_const(hp)^.value));
  277. end;
  278. ait_const_16bit : Begin
  279. AsmWriteLn(#9#9'DC.W'#9+tostr(pai_const(hp)^.value));
  280. end;
  281. ait_const_8bit : AsmWriteLn(#9#9'DC.B'#9+tostr(pai_const(hp)^.value));
  282. ait_const_symbol : Begin
  283. AsmWriteLn(#9#9+'DC.L '#9+StrPas(pchar(pai_const(hp)^.value)));
  284. end;
  285. ait_real_64bit : Begin
  286. AsmWriteLn(#9#9'DC.D'#9+double2str(pai_double(hp)^.value));
  287. end;
  288. ait_real_32bit : Begin
  289. AsmWriteLn(#9#9'DC.S'#9+double2str(pai_single(hp)^.value));
  290. end;
  291. { TO SUPPORT SOONER OR LATER!!!
  292. ait_comp : AsmWriteLn(#9#9'DC.D'#9+comp2str(pai_extended(hp)^.value));}
  293. ait_string : begin
  294. counter := 0;
  295. lines := pai_string(hp)^.len div line_length;
  296. { separate lines in different parts }
  297. if pai_string(hp)^.len > 0 then
  298. Begin
  299. for j := 0 to lines-1 do
  300. begin
  301. AsmWrite(#9#9'DC.B'#9);
  302. quoted:=false;
  303. for i:=counter to counter+line_length do
  304. begin
  305. { it is an ascii character. }
  306. if (ord(pai_string(hp)^.str[i])>31) and
  307. (ord(pai_string(hp)^.str[i])<128) and
  308. (pai_string(hp)^.str[i]<>'''') then
  309. begin
  310. if not(quoted) then
  311. begin
  312. if i>counter then
  313. AsmWrite(',');
  314. AsmWrite('''');
  315. end;
  316. AsmWrite(pai_string(hp)^.str[i]);
  317. quoted:=true;
  318. end { if > 31 and < 128 and ord('"') }
  319. else
  320. begin
  321. if quoted then
  322. AsmWrite('''');
  323. if i>counter then
  324. AsmWrite(',');
  325. quoted:=false;
  326. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  327. end;
  328. end; { end for i:=0 to... }
  329. if quoted then AsmWrite('''');
  330. AsmLn;
  331. counter := counter+line_length;
  332. end; { end for j:=0 ... }
  333. { do last line of lines }
  334. AsmWrite(#9#9'DC.B'#9);
  335. quoted:=false;
  336. for i:=counter to pai_string(hp)^.len-1 do
  337. begin
  338. { it is an ascii character. }
  339. if (ord(pai_string(hp)^.str[i])>31) and
  340. (ord(pai_string(hp)^.str[i])<128) and
  341. (pai_string(hp)^.str[i]<>'''') then
  342. begin
  343. if not(quoted) then
  344. begin
  345. if i>counter then
  346. AsmWrite(',');
  347. AsmWrite('''');
  348. end;
  349. AsmWrite(pai_string(hp)^.str[i]);
  350. quoted:=true;
  351. end { if > 31 and < 128 and " }
  352. else
  353. begin
  354. if quoted then
  355. AsmWrite('''');
  356. if i>counter then
  357. AsmWrite(',');
  358. quoted:=false;
  359. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  360. end;
  361. end; { end for i:=0 to... }
  362. if quoted then AsmWrite('''');
  363. end; { endif }
  364. AsmLn;
  365. end;
  366. ait_label : begin
  367. if assigned(hp^.next) and (pai(hp^.next)^.typ in
  368. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  369. ait_real_64bit,ait_real_32bit,ait_string]) then
  370. begin
  371. if not(cs_littlesize in aktglobalswitches) then
  372. AsmWriteLn(#9'ALIGN 4')
  373. else
  374. AsmWriteLn(#9'ALIGN 2');
  375. end;
  376. AsmWrite(lab2str(pai_label(hp)^.l));
  377. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  378. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  379. ait_real_64bit,ait_string]) then
  380. AsmWriteLn(':');
  381. end;
  382. ait_direct : begin
  383. AsmWritePChar(pai_direct(hp)^.str);
  384. AsmLn;
  385. end;
  386. ait_labeled_instruction :
  387. { Labeled instructions are those which don't require an }
  388. { intersegment jump -- jmp/bra/bcc to local labels. }
  389. Begin
  390. { labeled operand }
  391. if pai_labeled(hp)^._op1 = R_NO then
  392. AsmWriteLn(#9+mot_op2str[pai_labeled(hp)^._operator]+#9+lab2str(pai_labeled(hp)^.lab))
  393. else
  394. { labeled operand with register }
  395. AsmWriteLn(#9+mot_op2str[pai_labeled(hp)^._operator]+#9+
  396. reg2str(pai_labeled(hp)^._op1)+','+lab2str(pai_labeled(hp)^.lab))
  397. end;
  398. ait_symbol : begin
  399. { ------------------------------------------------------- }
  400. { ----------- ALIGNMENT FOR ANY NON-BYTE VALUE ---------- }
  401. { ------------- REQUIREMENT FOR 680x0 ------------------- }
  402. { ------------------------------------------------------- }
  403. if assigned(hp^.next) and (pai(hp^.next)^.typ in
  404. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  405. ait_real_64bit,ait_real_32bit,ait_string]) then
  406. begin
  407. if not(cs_littlesize in aktglobalswitches) then
  408. AsmWriteLn(#9'ALIGN 4')
  409. else
  410. AsmWriteLn(#9'ALIGN 2');
  411. end;
  412. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  413. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  414. ait_real_64bit,ait_string,ait_real_32bit]) then
  415. { this is a subroutine }
  416. Begin
  417. if pai_symbol(hp)^.is_global then
  418. AsmWriteLn(#9+StrPas(pai_symbol(hp)^.name)+' PROC EXPORT')
  419. else
  420. AsmWriteLn(#9+StrPas(pai_symbol(hp)^.name)+' PROC');
  421. AsmWriteLn(#9'WITH _DATA');
  422. end
  423. else
  424. Begin
  425. if pai_symbol(hp)^.is_global then
  426. AsmWriteLn(#9'EXPORT'#9+StrPas(pai_symbol(hp)^.name))
  427. else
  428. AsmWriteLn(#9'ENTRY'#9+StrPas(pai_symbol(hp)^.name));
  429. AsmWritePChar(pai_symbol(hp)^.name);
  430. end;
  431. end;
  432. ait_instruction : begin
  433. s:=#9+mot_op2str[pai68k(hp)^._operator]+mot_opsize2str[pai68k(hp)^.size];
  434. if pai68k(hp)^.op1t<>top_none then
  435. begin
  436. { call and jmp need an extra handling }
  437. { this code is only called if jmp isn't a labeled instruction }
  438. if pai68k(hp)^._operator in [A_JSR,A_JMP] then
  439. begin
  440. s:=s+#9+getopstr_jmp(pai68k(hp)^.op1t,pai68k(hp)^.op1,importname);
  441. if importname <> '' then
  442. AsmWriteLn(#9+'IMPORT '+importname);
  443. end
  444. else
  445. begin
  446. if pai68k(hp)^.op1t = top_reglist then
  447. s:=s+#9+getopstr(pai68k(hp)^.op1t,@(pai68k(hp)^.reglist))
  448. else
  449. s:=s+#9+getopstr(pai68k(hp)^.op1t,pai68k(hp)^.op1);
  450. if pai68k(hp)^.op2t<>top_none then
  451. begin
  452. if pai68k(hp)^.op2t = top_reglist then
  453. s:=s+','+getopstr(pai68k(hp)^.op2t,@pai68k(hp)^.reglist)
  454. else
  455. s:=s+','+getopstr(pai68k(hp)^.op2t,pai68k(hp)^.op2);
  456. { three operands }
  457. if pai68k(hp)^.op3t<>top_none then
  458. begin
  459. if (pai68k(hp)^._operator = A_DIVSL) or
  460. (pai68k(hp)^._operator = A_DIVUL) or
  461. (pai68k(hp)^._operator = A_MULU) or
  462. (pai68k(hp)^._operator = A_MULS) or
  463. (pai68k(hp)^._operator = A_DIVS) or
  464. (pai68k(hp)^._operator = A_DIVU) then
  465. s:=s+':'+getopstr(pai68k(hp)^.op3t,pai68k(hp)^.op3)
  466. else
  467. s:=s+','+getopstr(pai68k(hp)^.op3t,pai68k(hp)^.op3);
  468. end;
  469. end;
  470. end;
  471. end;
  472. AsmWriteLn(s);
  473. { if this instruction is the last before }
  474. { returning it MIGHT be the end of a }
  475. { pascal subroutine, if this is so, then }
  476. if (pai68k(hp)^._operator = A_RTS) or
  477. (pai68k(hp)^._operator = A_RTD) then
  478. Begin
  479. { if next is not an instruction nor a label }
  480. { this is the end of a procedure probably }
  481. { and not an inline assembler instruction }
  482. if assigned(hp^.next) and (
  483. (pai(hp^.next)^.typ = ait_label) or
  484. (pai(hp^.next)^.typ = ait_instruction) or
  485. (pai(hp^.next)^.typ = ait_labeled_instruction)) then
  486. begin
  487. end
  488. else
  489. begin
  490. AsmWriteLn(#9'ENDWITH');
  491. AsmWriteLn(#9'ENDPROC');
  492. AsmLn;
  493. end;
  494. end;
  495. end;
  496. {$ifdef GDB}
  497. ait_stabn,
  498. ait_stabs,
  499. ait_stab_function_name : ;
  500. {$endif GDB}
  501. ait_marker : ;
  502. else
  503. internalerror(10000);
  504. end;
  505. hp:=pai(hp^.next);
  506. end;
  507. end;
  508. procedure tm68kmpwasmlist.WriteAsmList;
  509. begin
  510. {$ifdef EXTDEBUG}
  511. if assigned(current_module^.mainsource) then
  512. comment(v_info,'Start writing motorola-styled assembler output for '+current_module^.mainsource^);
  513. {$endif}
  514. WriteTree(externals);
  515. AsmLn;
  516. AsmWriteLn(#9'_DATA'#9'RECORD');
  517. { write a signature to the file }
  518. AsmWriteLn(#9'ALIGN 4');
  519. {$ifdef EXTDEBUG}
  520. AsmWriteLn(#9'DC.B'#9'''compiled by FPC '+version_string+'\0''');
  521. AsmWriteLn(#9'DC.B'#9'''target: '+target_info.target_name+'\0''');
  522. {$endif EXTDEBUG}
  523. WriteTree(datasegment);
  524. WriteTree(consts);
  525. WriteTree(bsssegment);
  526. AsmWriteLn(#9'ENDR');
  527. AsmLn;
  528. WriteTree(codesegment);
  529. AsmLn;
  530. AsmWriteLn(#9'END');
  531. {$ifdef EXTDEBUG}
  532. if assigned(current_module^.mainsource) then
  533. comment(v_info,'Done writing MPW-styled assembler output for '+current_module^.mainsource^);
  534. {$endif}
  535. end;
  536. end.
  537. {
  538. $Log$
  539. Revision 1.2 1998-10-07 04:26:31 carl
  540. + initial rev of MPW asm writer
  541. Revision 1.1.2.1 1998/10/07 01:48:59 carl
  542. * initial revision of MPW asm writer
  543. Revision 1.1.1.1.2.3 1998/09/14 18:56:26 carl
  544. * alignment bugfix for bytes
  545. Revision 1.1.1.1.2.2 1998/07/01 13:58:25 carl
  546. ?
  547. Revision 1.1.1.1 1998/03/25 11:18:16 root
  548. * Restored version
  549. Revision 1.3 1998/03/22 12:45:37 florian
  550. * changes of Carl-Eric to m68k target commit:
  551. - wrong nodes because of the new string cg in intel, I had to create
  552. this under m68k also ... had to work it out to fix potential alignment
  553. problems --> this removes the crash of the m68k compiler.
  554. - added absolute addressing in m68k assembler (required for Amiga startup)
  555. - fixed alignment problems (because of byte return values, alignment
  556. would not be always valid) -- is this ok if i change the offset if odd in
  557. setfirsttemp ?? -- it seems ok...
  558. Revision 1.2 1998/03/10 04:23:33 carl
  559. - removed in because can cause range check errors under BP
  560. Revision 1.1 1998/03/10 01:26:10 peter
  561. + new uniform names
  562. }