ag386int.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Florian Klaempfl
  4. This unit implements an asmoutput class for Intel syntax with Intel i386+
  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. {$ifdef TP}
  19. {$N+,E+}
  20. {$endif}
  21. unit ag386int;
  22. interface
  23. uses aasm,assemble;
  24. type
  25. pi386intasmlist=^ti386intasmlist;
  26. ti386intasmlist = object(tasmlist)
  27. procedure WriteTree(p:paasmoutput);virtual;
  28. procedure WriteAsmList;virtual;
  29. procedure WriteExternals;
  30. end;
  31. implementation
  32. uses
  33. strings,
  34. globtype,globals,systems,cobjects,
  35. files,verbose,cpubase,cpuasm
  36. {$ifdef GDB}
  37. ,gdb
  38. {$endif GDB}
  39. ;
  40. const
  41. line_length = 70;
  42. {$ifdef EXTTYPE}
  43. extstr : array[EXT_NEAR..EXT_ABS] of String[8] =
  44. ('NEAR','FAR','PROC','BYTE','WORD','DWORD',
  45. 'CODEPTR','DATAPTR','FWORD','PWORD','QWORD','TBYTE','ABS');
  46. {$endif}
  47. function single2str(d : single) : string;
  48. var
  49. hs : string;
  50. p : byte;
  51. begin
  52. str(d,hs);
  53. { nasm expects a lowercase e }
  54. p:=pos('E',hs);
  55. if p>0 then
  56. hs[p]:='e';
  57. p:=pos('+',hs);
  58. if p>0 then
  59. delete(hs,p,1);
  60. single2str:=lower(hs);
  61. end;
  62. function double2str(d : double) : string;
  63. var
  64. hs : string;
  65. p : byte;
  66. begin
  67. str(d,hs);
  68. { nasm expects a lowercase e }
  69. p:=pos('E',hs);
  70. if p>0 then
  71. hs[p]:='e';
  72. p:=pos('+',hs);
  73. if p>0 then
  74. delete(hs,p,1);
  75. double2str:=lower(hs);
  76. end;
  77. function extended2str(e : extended) : string;
  78. var
  79. hs : string;
  80. p : byte;
  81. begin
  82. str(e,hs);
  83. { nasm expects a lowercase e }
  84. p:=pos('E',hs);
  85. if p>0 then
  86. hs[p]:='e';
  87. p:=pos('+',hs);
  88. if p>0 then
  89. delete(hs,p,1);
  90. extended2str:=lower(hs);
  91. end;
  92. function comp2str(d : bestreal) : string;
  93. type
  94. pdouble = ^double;
  95. var
  96. c : comp;
  97. dd : pdouble;
  98. begin
  99. {$ifdef FPC}
  100. c:=comp(d);
  101. {$else}
  102. c:=d;
  103. {$endif}
  104. dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
  105. comp2str:=double2str(dd^);
  106. end;
  107. function getreferencestring(var ref : treference) : string;
  108. var
  109. s : string;
  110. first : boolean;
  111. begin
  112. if ref.is_immediate then
  113. begin
  114. getreferencestring:=tostr(ref.offset);
  115. exit;
  116. end
  117. else
  118. with ref do
  119. begin
  120. first:=true;
  121. inc(offset,offsetfixup);
  122. offsetfixup:=0;
  123. if ref.segment<>R_NO then
  124. s:=int_reg2str[segment]+':['
  125. else
  126. s:='[';
  127. if assigned(symbol) then
  128. begin
  129. s:=s+symbol^.name;
  130. first:=false;
  131. end;
  132. if (base<>R_NO) then
  133. begin
  134. if not(first) then
  135. s:=s+'+'
  136. else
  137. first:=false;
  138. s:=s+int_reg2str[base];
  139. end;
  140. if (index<>R_NO) then
  141. begin
  142. if not(first) then
  143. s:=s+'+'
  144. else
  145. first:=false;
  146. s:=s+int_reg2str[index];
  147. if scalefactor<>0 then
  148. s:=s+'*'+tostr(scalefactor);
  149. end;
  150. if offset<0 then
  151. s:=s+tostr(offset)
  152. else if (offset>0) then
  153. s:=s+'+'+tostr(offset);
  154. s:=s+']';
  155. end;
  156. getreferencestring:=s;
  157. end;
  158. function getopstr(const o:toper;s : topsize; opcode: tasmop;dest : boolean) : string;
  159. var
  160. hs : string;
  161. begin
  162. case o.typ of
  163. top_reg :
  164. getopstr:=int_reg2str[o.reg];
  165. top_const :
  166. getopstr:=tostr(o.val);
  167. top_symbol :
  168. begin
  169. if assigned(o.sym) then
  170. hs:='offset '+o.sym^.name
  171. else
  172. hs:='offset ';
  173. if o.symofs>0 then
  174. hs:=hs+'+'+tostr(o.symofs)
  175. else
  176. if o.symofs<0 then
  177. hs:=hs+tostr(o.symofs)
  178. else
  179. if not(assigned(o.sym)) then
  180. hs:=hs+'0';
  181. getopstr:=hs;
  182. end;
  183. top_ref :
  184. begin
  185. hs:=getreferencestring(o.ref^);
  186. if ((opcode <> A_LGS) and (opcode <> A_LSS) and
  187. (opcode <> A_LFS) and (opcode <> A_LDS) and
  188. (opcode <> A_LES)) then
  189. Begin
  190. case s of
  191. S_B : hs:='byte ptr '+hs;
  192. S_W : hs:='word ptr '+hs;
  193. S_L : hs:='dword ptr '+hs;
  194. S_IS : hs:='word ptr '+hs;
  195. S_IL : hs:='dword ptr '+hs;
  196. S_IQ : hs:='qword ptr '+hs;
  197. S_FS : hs:='dword ptr '+hs;
  198. S_FL : hs:='qword ptr '+hs;
  199. S_FX : hs:='tbyte ptr '+hs;
  200. S_BW : if dest then
  201. hs:='word ptr '+hs
  202. else
  203. hs:='byte ptr '+hs;
  204. S_BL : if dest then
  205. hs:='dword ptr '+hs
  206. else
  207. hs:='byte ptr '+hs;
  208. S_WL : if dest then
  209. hs:='dword ptr '+hs
  210. else
  211. hs:='word ptr '+hs;
  212. end;
  213. end;
  214. getopstr:=hs;
  215. end;
  216. else
  217. internalerror(10001);
  218. end;
  219. end;
  220. function getopstr_jmp(const o:toper) : string;
  221. var
  222. hs : string;
  223. begin
  224. case o.typ of
  225. top_reg :
  226. getopstr_jmp:=int_reg2str[o.reg];
  227. top_const :
  228. getopstr_jmp:=tostr(o.val);
  229. top_symbol :
  230. begin
  231. hs:=o.sym^.name;
  232. if o.symofs>0 then
  233. hs:=hs+'+'+tostr(o.symofs)
  234. else
  235. if o.symofs<0 then
  236. hs:=hs+tostr(o.symofs);
  237. getopstr_jmp:=hs;
  238. end;
  239. top_ref :
  240. getopstr_jmp:=getreferencestring(o.ref^);
  241. else
  242. internalerror(10001);
  243. end;
  244. end;
  245. {****************************************************************************
  246. TI386INTASMLIST
  247. ****************************************************************************}
  248. var
  249. LastSec : tsection;
  250. const
  251. ait_const2str:array[ait_const_32bit..ait_const_8bit] of string[8]=
  252. (#9'DD'#9,#9'DW'#9,#9'DB'#9);
  253. Function PadTabs(const p:string;addch:char):string;
  254. var
  255. s : string;
  256. i : longint;
  257. begin
  258. i:=length(p);
  259. if addch<>#0 then
  260. begin
  261. inc(i);
  262. s:=p+addch;
  263. end
  264. else
  265. s:=p;
  266. if i<8 then
  267. PadTabs:=s+#9#9
  268. else
  269. PadTabs:=s+#9;
  270. end;
  271. procedure ti386intasmlist.WriteTree(p:paasmoutput);
  272. const
  273. allocstr : array[boolean] of string[10]=(' released',' allocated');
  274. var
  275. s,
  276. prefix,
  277. suffix : string;
  278. hp : pai;
  279. counter,
  280. lines,
  281. i,j,l : longint;
  282. consttyp : tait;
  283. found,
  284. quoted : boolean;
  285. sep : char;
  286. begin
  287. if not assigned(p) then
  288. exit;
  289. hp:=pai(p^.first);
  290. while assigned(hp) do
  291. begin
  292. case hp^.typ of
  293. ait_comment : Begin
  294. AsmWrite(target_asm.comment);
  295. AsmWritePChar(pai_asm_comment(hp)^.str);
  296. AsmLn;
  297. End;
  298. ait_regalloc,
  299. ait_tempalloc : ;
  300. ait_section : begin
  301. if LastSec<>sec_none then
  302. AsmWriteLn('_'+target_asm.secnames[LastSec]+#9#9'ENDS');
  303. if pai_section(hp)^.sec<>sec_none then
  304. begin
  305. AsmLn;
  306. AsmWriteLn('_'+target_asm.secnames[pai_section(hp)^.sec]+#9#9+
  307. 'SEGMENT'#9'PARA PUBLIC USE32 '''+
  308. target_asm.secnames[pai_section(hp)^.sec]+'''');
  309. end;
  310. LastSec:=pai_section(hp)^.sec;
  311. end;
  312. ait_align : begin
  313. { CAUSES PROBLEMS WITH THE SEGMENT DEFINITION }
  314. { SEGMENT DEFINITION SHOULD MATCH TYPE OF ALIGN }
  315. { HERE UNDER TASM! }
  316. AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  317. end;
  318. ait_datablock : begin
  319. if pai_datablock(hp)^.is_global then
  320. AsmWriteLn(#9'PUBLIC'#9+pai_datablock(hp)^.sym^.name);
  321. AsmWriteLn(PadTabs(pai_datablock(hp)^.sym^.name,#0)+'DB'#9+tostr(pai_datablock(hp)^.size)+' DUP(?)');
  322. end;
  323. ait_const_32bit,
  324. ait_const_8bit,
  325. ait_const_16bit : begin
  326. AsmWrite(ait_const2str[hp^.typ]+tostr(pai_const(hp)^.value));
  327. consttyp:=hp^.typ;
  328. l:=0;
  329. repeat
  330. found:=(not (Pai(hp^.next)=nil)) and (Pai(hp^.next)^.typ=consttyp);
  331. if found then
  332. begin
  333. hp:=Pai(hp^.next);
  334. s:=','+tostr(pai_const(hp)^.value);
  335. AsmWrite(s);
  336. inc(l,length(s));
  337. end;
  338. until (not found) or (l>line_length);
  339. AsmLn;
  340. end;
  341. ait_const_symbol : begin
  342. AsmWriteLn(#9#9'DD'#9'offset '+pai_const_symbol(hp)^.sym^.name);
  343. if pai_const_symbol(hp)^.offset>0 then
  344. AsmWrite('+'+tostr(pai_const_symbol(hp)^.offset))
  345. else if pai_const_symbol(hp)^.offset<0 then
  346. AsmWrite(tostr(pai_const_symbol(hp)^.offset));
  347. AsmLn;
  348. end;
  349. ait_const_rva : begin
  350. AsmWriteLn(#9#9'RVA'#9+pai_const_symbol(hp)^.sym^.name);
  351. end;
  352. ait_real_32bit : AsmWriteLn(#9#9'DD'#9+single2str(pai_real_32bit(hp)^.value));
  353. ait_real_64bit : AsmWriteLn(#9#9'DQ'#9+double2str(pai_real_64bit(hp)^.value));
  354. ait_real_80bit : AsmWriteLn(#9#9'DT'#9+extended2str(pai_real_80bit(hp)^.value));
  355. ait_comp_64bit : AsmWriteLn(#9#9'DQ'#9+comp2str(pai_real_80bit(hp)^.value));
  356. ait_string : begin
  357. counter := 0;
  358. lines := pai_string(hp)^.len div line_length;
  359. { separate lines in different parts }
  360. if pai_string(hp)^.len > 0 then
  361. Begin
  362. for j := 0 to lines-1 do
  363. begin
  364. AsmWrite(#9#9'DB'#9);
  365. quoted:=false;
  366. for i:=counter to counter+line_length do
  367. begin
  368. { it is an ascii character. }
  369. if (ord(pai_string(hp)^.str[i])>31) and
  370. (ord(pai_string(hp)^.str[i])<128) and
  371. (pai_string(hp)^.str[i]<>'"') then
  372. begin
  373. if not(quoted) then
  374. begin
  375. if i>counter then
  376. AsmWrite(',');
  377. AsmWrite('"');
  378. end;
  379. AsmWrite(pai_string(hp)^.str[i]);
  380. quoted:=true;
  381. end { if > 31 and < 128 and ord('"') }
  382. else
  383. begin
  384. if quoted then
  385. AsmWrite('"');
  386. if i>counter then
  387. AsmWrite(',');
  388. quoted:=false;
  389. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  390. end;
  391. end; { end for i:=0 to... }
  392. if quoted then AsmWrite('"');
  393. AsmWrite(target_os.newline);
  394. counter := counter+line_length;
  395. end; { end for j:=0 ... }
  396. { do last line of lines }
  397. AsmWrite(#9#9'DB'#9);
  398. quoted:=false;
  399. for i:=counter to pai_string(hp)^.len-1 do
  400. begin
  401. { it is an ascii character. }
  402. if (ord(pai_string(hp)^.str[i])>31) and
  403. (ord(pai_string(hp)^.str[i])<128) and
  404. (pai_string(hp)^.str[i]<>'"') then
  405. begin
  406. if not(quoted) then
  407. begin
  408. if i>counter then
  409. AsmWrite(',');
  410. AsmWrite('"');
  411. end;
  412. AsmWrite(pai_string(hp)^.str[i]);
  413. quoted:=true;
  414. end { if > 31 and < 128 and " }
  415. else
  416. begin
  417. if quoted then
  418. AsmWrite('"');
  419. if i>counter then
  420. AsmWrite(',');
  421. quoted:=false;
  422. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  423. end;
  424. end; { end for i:=0 to... }
  425. if quoted then
  426. AsmWrite('"');
  427. end;
  428. AsmLn;
  429. end;
  430. ait_label : begin
  431. if pai_label(hp)^.l^.is_used then
  432. begin
  433. AsmWrite(pai_label(hp)^.l^.name);
  434. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  435. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  436. ait_const_symbol,ait_const_rva,
  437. ait_real_32bit,ait_real_64bit,ait_real_80bit,ait_comp_64bit,ait_string]) then
  438. AsmWriteLn(':');
  439. end;
  440. end;
  441. ait_direct : begin
  442. AsmWritePChar(pai_direct(hp)^.str);
  443. AsmLn;
  444. end;
  445. ait_symbol : begin
  446. if pai_symbol(hp)^.is_global then
  447. AsmWriteLn(#9'PUBLIC'#9+pai_symbol(hp)^.sym^.name);
  448. AsmWrite(pai_symbol(hp)^.sym^.name);
  449. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  450. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  451. ait_const_symbol,ait_const_rva,
  452. ait_real_32bit,ait_real_64bit,ait_real_80bit,ait_comp_64bit,ait_string]) then
  453. AsmWriteLn(':')
  454. end;
  455. ait_symbol_end : begin
  456. end;
  457. ait_instruction : begin
  458. { We need intel order, no At&t }
  459. paicpu(hp)^.SwapOperands;
  460. { Reset }
  461. suffix:='';
  462. prefix:= '';
  463. s:='';
  464. { added prefix instructions, must be on same line as opcode }
  465. if (paicpu(hp)^.ops = 0) and
  466. ((paicpu(hp)^.opcode = A_REP) or
  467. (paicpu(hp)^.opcode = A_LOCK) or
  468. (paicpu(hp)^.opcode = A_REPE) or
  469. (paicpu(hp)^.opcode = A_REPNZ) or
  470. (paicpu(hp)^.opcode = A_REPZ) or
  471. (paicpu(hp)^.opcode = A_REPNE)) then
  472. Begin
  473. prefix:=int_op2str[paicpu(hp)^.opcode]+#9;
  474. hp:=Pai(hp^.next);
  475. { this is theorically impossible... }
  476. if hp=nil then
  477. begin
  478. s:=#9#9+prefix;
  479. AsmWriteLn(s);
  480. break;
  481. end;
  482. { nasm prefers prefix on a line alone }
  483. AsmWriteln(#9#9+prefix);
  484. prefix:='';
  485. end
  486. else
  487. prefix:= '';
  488. if paicpu(hp)^.ops<>0 then
  489. begin
  490. if is_calljmp(paicpu(hp)^.opcode) then
  491. s:=#9+getopstr_jmp(paicpu(hp)^.oper[0])
  492. else
  493. begin
  494. for i:=0to paicpu(hp)^.ops-1 do
  495. begin
  496. if i=0 then
  497. sep:=#9
  498. else
  499. sep:=',';
  500. s:=s+sep+getopstr(paicpu(hp)^.oper[i],paicpu(hp)^.opsize,paicpu(hp)^.opcode,(i=2));
  501. end;
  502. end;
  503. end;
  504. AsmWriteLn(#9#9+prefix+int_op2str[paicpu(hp)^.opcode]+cond2str[paicpu(hp)^.condition]+suffix+s);
  505. end;
  506. {$ifdef GDB}
  507. ait_stabn,
  508. ait_stabs,
  509. ait_force_line,
  510. ait_stab_function_name : ;
  511. {$endif GDB}
  512. ait_cut : begin
  513. { only reset buffer if nothing has changed }
  514. if AsmSize=AsmStartSize then
  515. AsmClear
  516. else
  517. begin
  518. if LastSec<>sec_none then
  519. AsmWriteLn('_'+target_asm.secnames[LastSec]+#9#9'ENDS');
  520. AsmLn;
  521. AsmWriteLn(#9'END');
  522. AsmClose;
  523. DoAssemble;
  524. AsmCreate(pai_cut(hp)^.place);
  525. end;
  526. { avoid empty files }
  527. while assigned(hp^.next) and (pai(hp^.next)^.typ in [ait_cut,ait_section,ait_comment]) do
  528. begin
  529. if pai(hp^.next)^.typ=ait_section then
  530. begin
  531. lastsec:=pai_section(hp^.next)^.sec;
  532. end;
  533. hp:=pai(hp^.next);
  534. end;
  535. AsmWriteLn(#9'.386p');
  536. { I was told that this isn't necesarry because }
  537. { the labels generated by FPC are unique (FK) }
  538. { AsmWriteLn(#9'LOCALS '+target_asm.labelprefix); }
  539. if lastsec<>sec_none then
  540. AsmWriteLn('_'+target_asm.secnames[lastsec]+#9#9+
  541. 'SEGMENT'#9'PARA PUBLIC USE32 '''+
  542. target_asm.secnames[lastsec]+'''');
  543. AsmStartSize:=AsmSize;
  544. end;
  545. ait_marker: ;
  546. else
  547. internalerror(10000);
  548. end;
  549. hp:=pai(hp^.next);
  550. end;
  551. end;
  552. var
  553. currentasmlist : PAsmList;
  554. procedure writeexternal(p:pnamedindexobject);{$ifndef FPC}far;{$endif}
  555. begin
  556. if pasmsymbol(p)^.typ=AS_EXTERNAL then
  557. currentasmlist^.AsmWriteln(#9'EXTRN'#9+p^.name);
  558. end;
  559. procedure ti386intasmlist.WriteExternals;
  560. begin
  561. currentasmlist:=@self;
  562. AsmSymbolList^.foreach({$ifndef VER70}@{$endif}writeexternal);
  563. end;
  564. procedure ti386intasmlist.WriteAsmList;
  565. begin
  566. {$ifdef EXTDEBUG}
  567. if assigned(current_module^.mainsource) then
  568. comment(v_info,'Start writing intel-styled assembler output for '+current_module^.mainsource^);
  569. {$endif}
  570. LastSec:=sec_none;
  571. AsmWriteLn(#9'.386p');
  572. AsmWriteLn(#9'LOCALS '+target_asm.labelprefix);
  573. AsmWriteLn('DGROUP'#9'GROUP'#9'_BSS,_DATA');
  574. AsmWriteLn(#9'ASSUME'#9'CS:_CODE,ES:DGROUP,DS:DGROUP,SS:DGROUP');
  575. AsmLn;
  576. countlabelref:=false;
  577. WriteExternals;
  578. { INTEL ASM doesn't support stabs
  579. WriteTree(debuglist);}
  580. WriteTree(codesegment);
  581. WriteTree(datasegment);
  582. WriteTree(consts);
  583. WriteTree(rttilist);
  584. WriteTree(resourcestringlist);
  585. WriteTree(bsssegment);
  586. countlabelref:=true;
  587. AsmWriteLn(#9'END');
  588. AsmLn;
  589. {$ifdef EXTDEBUG}
  590. if assigned(current_module^.mainsource) then
  591. comment(v_info,'Done writing intel-styled assembler output for '+current_module^.mainsource^);
  592. {$endif EXTDEBUG}
  593. end;
  594. end.
  595. {
  596. $Log$
  597. Revision 1.60 2000-04-06 07:05:57 pierre
  598. * handle offsetfixup
  599. Revision 1.59 2000/02/09 13:22:43 peter
  600. * log truncated
  601. Revision 1.58 2000/01/07 01:14:18 peter
  602. * updated copyright to 2000
  603. Revision 1.57 1999/12/19 17:36:25 florian
  604. * generation of LOCALS @@ removed
  605. Revision 1.56 1999/11/06 14:34:16 peter
  606. * truncated log to 20 revs
  607. Revision 1.55 1999/11/02 15:06:56 peter
  608. * import library fixes for win32
  609. * alignment works again
  610. Revision 1.54 1999/09/10 15:41:18 peter
  611. * added symbol_end
  612. Revision 1.53 1999/09/02 18:47:42 daniel
  613. * Could not compile with TP, some arrays moved to heap
  614. * NOAG386BIN default for TP
  615. * AG386* files were not compatible with TP, fixed.
  616. Revision 1.52 1999/08/25 11:59:36 jonas
  617. * changed pai386, paippc and paiapha (same for tai*) to paicpu (taicpu)
  618. Revision 1.51 1999/08/04 00:22:36 florian
  619. * renamed i386asm and i386base to cpuasm and cpubase
  620. Revision 1.50 1999/07/22 09:37:31 florian
  621. + resourcestring implemented
  622. + start of longstring support
  623. }