ag386nsm.pas 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. {
  2. $Id$
  3. Copyright (c) 1996,97 by Florian Klaempfl
  4. This unit implements an asmoutput class for the Nasm assembler with
  5. Intel syntax for the i386+
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. {$ifdef TP}
  20. {$N+,E+}
  21. {$endif}
  22. unit ag386nsm;
  23. interface
  24. uses aasm,assemble;
  25. type
  26. pi386nasmasmlist=^ti386nasmasmlist;
  27. ti386nasmasmlist = object(tasmlist)
  28. procedure WriteTree(p:paasmoutput);virtual;
  29. procedure WriteAsmList;virtual;
  30. end;
  31. implementation
  32. uses
  33. dos,globals,systems,cobjects,i386,
  34. strings,files,verbose
  35. {$ifdef GDB}
  36. ,gdb
  37. {$endif GDB}
  38. ;
  39. const
  40. line_length = 70;
  41. extstr : array[EXT_NEAR..EXT_ABS] of String[8] =
  42. ('NEAR','FAR','PROC','BYTE','WORD','DWORD',
  43. 'CODEPTR','DATAPTR','FWORD','PWORD','QWORD','TBYTE','ABS');
  44. function double2str(d : double) : string;
  45. var
  46. hs : string;
  47. p : byte;
  48. begin
  49. str(d,hs);
  50. { nasm expects a lowercase e }
  51. p:=pos('E',hs);
  52. if p>0 then
  53. hs[p]:='e';
  54. p:=pos('+',hs);
  55. if p>0 then
  56. delete(hs,p,1);
  57. double2str:=lower(hs);
  58. end;
  59. function extended2str(e : extended) : string;
  60. var
  61. hs : string;
  62. p : byte;
  63. begin
  64. {$ifdef VER0_99_5}
  65. str(double(e),hs);
  66. {$else}
  67. str(e,hs);
  68. {$endif}
  69. { nasm expects a lowercase e }
  70. p:=pos('E',hs);
  71. if p>0 then
  72. hs[p]:='e';
  73. p:=pos('+',hs);
  74. if p>0 then
  75. delete(hs,p,1);
  76. extended2str:=lower(hs);
  77. end;
  78. function comp2str(d : bestreal) : string;
  79. type
  80. pdouble = ^double;
  81. var
  82. c : comp;
  83. dd : pdouble;
  84. begin
  85. {$ifdef TP}
  86. c:=d;
  87. {$else}
  88. c:=comp(d);
  89. {$endif}
  90. dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
  91. comp2str:=double2str(dd^);
  92. end;
  93. function getreferencestring(const ref : treference) : string;
  94. var
  95. s : string;
  96. first : boolean;
  97. begin
  98. if ref.isintvalue then
  99. s:= tostr(ref.offset)
  100. else
  101. with ref do
  102. begin
  103. first:=true;
  104. if ref.segment<>R_DEFAULT_SEG then
  105. s:='['+int_reg2str[segment]+':'
  106. else
  107. s:='[';
  108. if assigned(symbol) then
  109. begin
  110. s:=s+symbol^;
  111. first:=false;
  112. end;
  113. if (base<>R_NO) then
  114. begin
  115. if not(first) then
  116. s:=s+'+'
  117. else
  118. first:=false;
  119. s:=s+int_reg2str[base];
  120. end;
  121. if (index<>R_NO) then
  122. begin
  123. if not(first) then
  124. s:=s+'+'
  125. else
  126. first:=false;
  127. s:=s+int_reg2str[index];
  128. if scalefactor<>0 then
  129. s:=s+'*'+tostr(scalefactor);
  130. end;
  131. if offset<0 then
  132. s:=s+tostr(offset)
  133. else if (offset>0) then
  134. s:=s+'+'+tostr(offset);
  135. s:=s+']';
  136. end;
  137. getreferencestring:=s;
  138. end;
  139. function getopstr(t : byte;o : pointer;s : topsize; _operator: tasmop;dest : boolean) : string;
  140. var
  141. hs : string;
  142. begin
  143. case t of
  144. top_reg : getopstr:=int_nasmreg2str[tregister(o)];
  145. top_const,
  146. top_ref : begin
  147. if t=top_const then
  148. hs := tostr(longint(o))
  149. else
  150. hs:=getreferencestring(preference(o)^);
  151. if not ((_operator = A_LEA) or (_operator = A_LGS) or
  152. (_operator = A_LSS) or (_operator = A_LFS) or
  153. (_operator = A_LES) or (_operator = A_LDS) or
  154. (_operator = A_SHR) or (_operator = A_SHL) or
  155. (_operator = A_SAR) or (_operator = A_SAL) or
  156. (_operator = A_OUT) or (_operator = A_IN)) then
  157. begin
  158. case s of
  159. S_B : hs:='byte '+hs;
  160. S_W : hs:='word '+hs;
  161. S_L : hs:='dword '+hs;
  162. S_IS : hs:='word '+hs;
  163. S_IL : hs:='dword '+hs;
  164. S_IQ : hs:='qword '+hs;
  165. S_FS : hs:='dword '+hs;
  166. S_FL : hs:='qword '+hs;
  167. S_FX : hs:='tword '+hs;
  168. S_BW : if dest then
  169. hs:='word '+hs
  170. else
  171. hs:='byte '+hs;
  172. S_BL : if dest then
  173. hs:='dword '+hs
  174. else
  175. hs:='byte '+hs;
  176. S_WL : if dest then
  177. hs:='dword '+hs
  178. else
  179. hs:='word '+hs;
  180. end
  181. end;
  182. getopstr:=hs;
  183. end;
  184. top_symbol : begin
  185. hs:=strpas(pchar(pcsymbol(o)^.symbol));
  186. hs:='dword '+hs;
  187. if pcsymbol(o)^.offset>0 then
  188. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  189. else
  190. if pcsymbol(o)^.offset<0 then
  191. hs:=hs+tostr(pcsymbol(o)^.offset);
  192. getopstr:=hs;
  193. end;
  194. else
  195. internalerror(10001);
  196. end;
  197. end;
  198. function getopstr_jmp(t : byte;o : pointer) : string;
  199. var
  200. hs : string;
  201. begin
  202. case t of
  203. top_reg : getopstr_jmp:=int_reg2str[tregister(o)];
  204. top_ref : getopstr_jmp:=getreferencestring(preference(o)^);
  205. top_const : getopstr_jmp:=tostr(longint(o));
  206. top_symbol : begin
  207. hs:=strpas(pchar(pcsymbol(o)^.symbol));
  208. if pcsymbol(o)^.offset>0 then
  209. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  210. else
  211. if pcsymbol(o)^.offset<0 then
  212. hs:=hs+tostr(pcsymbol(o)^.offset);
  213. getopstr_jmp:=hs;
  214. end;
  215. else
  216. internalerror(10001);
  217. end;
  218. end;
  219. {****************************************************************************
  220. Ti386nasmasmlist
  221. ****************************************************************************}
  222. var
  223. LastSec : tsection;
  224. const
  225. ait_const2str:array[ait_const_32bit..ait_const_8bit] of string[8]=
  226. (#9'DD'#9,#9'DW'#9,#9'DB'#9);
  227. ait_section2nasmstr : array[tsection] of string[6]=
  228. ('','.text','.data','.bss','.idata','.edata');
  229. Function PadTabs(p:pchar;addch:char):string;
  230. var
  231. s : string;
  232. i : longint;
  233. begin
  234. i:=strlen(p);
  235. if addch<>#0 then
  236. begin
  237. inc(i);
  238. s:=StrPas(p)+addch;
  239. end
  240. else
  241. s:=StrPas(p);
  242. if i<8 then
  243. PadTabs:=s+#9#9
  244. else
  245. PadTabs:=s+#9;
  246. end;
  247. procedure ti386nasmasmlist.WriteTree(p:paasmoutput);
  248. type
  249. twowords=record
  250. word1,word2:word;
  251. end;
  252. var
  253. s,
  254. prefix,
  255. suffix : string;
  256. hp : pai;
  257. counter,
  258. lines,
  259. i,j,l : longint;
  260. op : tasmop;
  261. consttyp : tait;
  262. found,
  263. quoted : boolean;
  264. begin
  265. if not assigned(p) then
  266. exit;
  267. hp:=pai(p^.first);
  268. while assigned(hp) do
  269. begin
  270. case hp^.typ of
  271. ait_comment : Begin
  272. AsmWrite(target_asm.comment);
  273. AsmWritePChar(pai_asm_comment(hp)^.str);
  274. AsmLn;
  275. End;
  276. ait_regalloc,
  277. ait_regdealloc :;
  278. ait_section : begin
  279. if pai_section(hp)^.sec<>sec_none then
  280. begin
  281. AsmLn;
  282. AsmWriteLn('SECTION '+ait_section2nasmstr[pai_section(hp)^.sec]);
  283. end;
  284. LastSec:=pai_section(hp)^.sec;
  285. end;
  286. ait_align : AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  287. ait_external : AsmWriteLn('EXTERN '+StrPas(pai_external(hp)^.name));
  288. ait_datablock : begin
  289. if pai_datablock(hp)^.is_global then
  290. AsmWriteLn(#9'GLOBAL '+StrPas(pai_datablock(hp)^.name));
  291. AsmWriteLn(PadTabs(pai_datablock(hp)^.name,':')+'RESB'#9+tostr(pai_datablock(hp)^.size));
  292. end;
  293. ait_const_32bit,
  294. ait_const_8bit,
  295. ait_const_16bit : begin
  296. AsmWrite(ait_const2str[hp^.typ]+tostr(pai_const(hp)^.value));
  297. consttyp:=hp^.typ;
  298. l:=0;
  299. repeat
  300. found:=(not (Pai(hp^.next)=nil)) and (Pai(hp^.next)^.typ=consttyp);
  301. if found then
  302. begin
  303. hp:=Pai(hp^.next);
  304. s:=','+tostr(pai_const(hp)^.value);
  305. AsmWrite(s);
  306. inc(l,length(s));
  307. end;
  308. until (not found) or (l>line_length);
  309. AsmLn;
  310. end;
  311. ait_const_symbol : begin
  312. AsmWrite(#9#9+'DD '#9);
  313. AsmWritePChar(pchar(pai_const(hp)^.value));
  314. AsmLn;
  315. end;
  316. ait_const_symbol_offset : begin
  317. AsmWrite(#9#9+'DD '#9);
  318. AsmWritePChar(pai_const_symbol_offset(hp)^.name);
  319. if pai_const_symbol_offset(hp)^.offset>0 then
  320. AsmWrite('+'+tostr(pai_const_symbol_offset(hp)^.offset))
  321. else if pai_const_symbol_offset(hp)^.offset<0 then
  322. AsmWrite(tostr(pai_const_symbol_offset(hp)^.offset));
  323. AsmLn;
  324. end;
  325. ait_real_32bit : AsmWriteLn(#9#9'DD'#9+double2str(pai_single(hp)^.value));
  326. ait_real_64bit : AsmWriteLn(#9#9'DQ'#9+double2str(pai_double(hp)^.value));
  327. ait_real_extended : AsmWriteLn(#9#9'DT'#9+extended2str(pai_extended(hp)^.value));
  328. ait_comp : AsmWriteLn(#9#9'DQ'#9+comp2str(pai_extended(hp)^.value));
  329. ait_string : begin
  330. counter := 0;
  331. lines := pai_string(hp)^.len div line_length;
  332. { separate lines in different parts }
  333. if pai_string(hp)^.len > 0 then
  334. Begin
  335. for j := 0 to lines-1 do
  336. begin
  337. AsmWrite(#9#9'DB'#9);
  338. quoted:=false;
  339. for i:=counter to counter+line_length do
  340. begin
  341. { it is an ascii character. }
  342. if (ord(pai_string(hp)^.str[i])>31) and
  343. (ord(pai_string(hp)^.str[i])<128) and
  344. (pai_string(hp)^.str[i]<>'"') then
  345. begin
  346. if not(quoted) then
  347. begin
  348. if i>counter then
  349. AsmWrite(',');
  350. AsmWrite('"');
  351. end;
  352. AsmWrite(pai_string(hp)^.str[i]);
  353. quoted:=true;
  354. end { if > 31 and < 128 and ord('"') }
  355. else
  356. begin
  357. if quoted then
  358. AsmWrite('"');
  359. if i>counter then
  360. AsmWrite(',');
  361. quoted:=false;
  362. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  363. end;
  364. end; { end for i:=0 to... }
  365. if quoted then AsmWrite('"');
  366. AsmWrite(target_os.newline);
  367. counter := counter+line_length;
  368. end; { end for j:=0 ... }
  369. { do last line of lines }
  370. AsmWrite(#9#9'DB'#9);
  371. quoted:=false;
  372. for i:=counter to pai_string(hp)^.len-1 do
  373. begin
  374. { it is an ascii character. }
  375. if (ord(pai_string(hp)^.str[i])>31) and
  376. (ord(pai_string(hp)^.str[i])<128) and
  377. (pai_string(hp)^.str[i]<>'"') then
  378. begin
  379. if not(quoted) then
  380. begin
  381. if i>counter then
  382. AsmWrite(',');
  383. AsmWrite('"');
  384. end;
  385. AsmWrite(pai_string(hp)^.str[i]);
  386. quoted:=true;
  387. end { if > 31 and < 128 and " }
  388. else
  389. begin
  390. if quoted then
  391. AsmWrite('"');
  392. if i>counter then
  393. AsmWrite(',');
  394. quoted:=false;
  395. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  396. end;
  397. end; { end for i:=0 to... }
  398. if quoted then
  399. AsmWrite('"');
  400. end;
  401. AsmLn;
  402. end;
  403. ait_label : begin
  404. if pai_label(hp)^.l^.is_used then
  405. AsmWriteLn(lab2str(pai_label(hp)^.l)+':');
  406. end;
  407. ait_direct : begin
  408. AsmWritePChar(pai_direct(hp)^.str);
  409. AsmLn;
  410. end;
  411. ait_labeled_instruction :
  412. begin
  413. op:=pai_labeled(hp)^._operator;
  414. if not((op=A_JMP) or (op=A_LOOP) or (op=A_LOOPZ) or
  415. (op=A_LOOPE) or (op=A_LOOPNZ) or (op=A_LOOPNE) or
  416. (op=A_JCXZ) or (op=A_JECXZ)) then
  417. AsmWriteLn(#9#9+int_op2str[pai_labeled(hp)^._operator]+#9+'near '+lab2str(pai_labeled(hp)^.lab))
  418. else
  419. AsmWriteLn(#9#9+int_op2str[pai_labeled(hp)^._operator]+#9+lab2str(pai_labeled(hp)^.lab));
  420. end;
  421. ait_symbol : begin
  422. if pai_symbol(hp)^.is_global then
  423. AsmWriteLn(#9'GLOBAL '+StrPas(pai_symbol(hp)^.name));
  424. AsmWritePChar(pai_symbol(hp)^.name);
  425. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  426. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  427. ait_const_symbol,ait_const_symbol_offset,
  428. ait_real_64bit,ait_string]) then
  429. AsmWriteLn(':')
  430. end;
  431. ait_instruction : begin
  432. suffix:='';
  433. prefix:= '';
  434. { added prefix instructions, must be on same line as opcode }
  435. if (pai386(hp)^.op1t = top_none) and
  436. ((pai386(hp)^._operator = A_REP) or
  437. (pai386(hp)^._operator = A_LOCK) or
  438. (pai386(hp)^._operator = A_REPE) or
  439. (pai386(hp)^._operator = A_REPNE)) then
  440. Begin
  441. prefix:=int_op2str[pai386(hp)^._operator]+#9;
  442. hp:=Pai(hp^.next);
  443. { this is theorically impossible... }
  444. if hp=nil then
  445. begin
  446. s:=#9#9+prefix;
  447. AsmWriteLn(s);
  448. break;
  449. end;
  450. { nasm prefers prefix on a line alone }
  451. AsmWriteln(#9#9+prefix);
  452. prefix:='';
  453. end
  454. else
  455. prefix:= '';
  456. { A_FNSTS need the w as suffix at least for nasm}
  457. if (pai386(hp)^._operator = A_FNSTS) then
  458. pai386(hp)^._operator:=A_FNSTSW
  459. else
  460. if (pai386(hp)^._operator = A_FSTS) then
  461. pai386(hp)^._operator:=A_FSTSW;
  462. if pai386(hp)^.op1t<>top_none then
  463. begin
  464. if pai386(hp)^._operator=A_CALL then
  465. s:=getopstr_jmp(pai386(hp)^.op1t,pai386(hp)^.op1)
  466. else
  467. begin
  468. s:=getopstr(pai386(hp)^.op1t,pai386(hp)^.op1,pai386(hp)^.size,pai386(hp)^._operator,false);
  469. if pai386(hp)^.op3t<>top_none then
  470. begin
  471. if pai386(hp)^.op2t<>top_none then
  472. s:=getopstr(pai386(hp)^.op2t,pointer(longint(twowords(pai386(hp)^.op2).word1)),
  473. pai386(hp)^.size,pai386(hp)^._operator,true)+','+s;
  474. s:=getopstr(pai386(hp)^.op3t,pointer(longint(twowords(pai386(hp)^.op2).word2)),
  475. pai386(hp)^.size,pai386(hp)^._operator,false)+','+s;
  476. end
  477. else
  478. if pai386(hp)^.op2t<>top_none then
  479. s:=getopstr(pai386(hp)^.op2t,pai386(hp)^.op2,pai386(hp)^.size,
  480. pai386(hp)^._operator,true)+','+s;
  481. end;
  482. s:=#9+s;
  483. end
  484. else
  485. begin
  486. { check if string instruction }
  487. { long form, otherwise may give range check errors }
  488. { in turbo pascal... }
  489. if ((pai386(hp)^._operator = A_CMPS) or
  490. (pai386(hp)^._operator = A_INS) or
  491. (pai386(hp)^._operator = A_OUTS) or
  492. (pai386(hp)^._operator = A_SCAS) or
  493. (pai386(hp)^._operator = A_STOS) or
  494. (pai386(hp)^._operator = A_MOVS) or
  495. (pai386(hp)^._operator = A_LODS) or
  496. (pai386(hp)^._operator = A_XLAT)) then
  497. Begin
  498. case pai386(hp)^.size of
  499. S_B: suffix:='b';
  500. S_W: suffix:='w';
  501. S_L: suffix:='d';
  502. else
  503. Message(assem_f_invalid_suffix_intel);
  504. end;
  505. end;
  506. s:='';
  507. end;
  508. if pai386(hp)^._operator=A_FWAIT then
  509. AsmWriteln(#9#9'DB'#9'09bh')
  510. else
  511. AsmWriteLn(#9#9+prefix+int_op2str[pai386(hp)^._operator]+suffix+s);
  512. end;
  513. {$ifdef GDB}
  514. ait_stabn,
  515. ait_stabs,
  516. ait_force_line,
  517. ait_stab_function_name : ;
  518. {$endif GDB}
  519. ait_marker : ;
  520. else
  521. internalerror(10000);
  522. end;
  523. hp:=pai(hp^.next);
  524. end;
  525. end;
  526. procedure ti386nasmasmlist.WriteAsmList;
  527. begin
  528. {$ifdef EXTDEBUG}
  529. if assigned(current_module^.mainsource) then
  530. comment(v_info,'Start writing nasm-styled assembler output for '+current_module^.mainsource^);
  531. {$endif}
  532. LastSec:=sec_none;
  533. AsmWriteLn('BITS 32');
  534. AsmLn;
  535. countlabelref:=false;
  536. WriteTree(externals);
  537. { Nasm doesn't support stabs
  538. WriteTree(debuglist);}
  539. WriteTree(codesegment);
  540. WriteTree(datasegment);
  541. WriteTree(consts);
  542. WriteTree(rttilist);
  543. WriteTree(bsssegment);
  544. countlabelref:=true;
  545. AsmLn;
  546. {$ifdef EXTDEBUG}
  547. if assigned(current_module^.mainsource) then
  548. comment(v_info,'Done writing nasm-styled assembler output for '+current_module^.mainsource^);
  549. {$endif EXTDEBUG}
  550. end;
  551. end.
  552. {
  553. $Log$
  554. Revision 1.15 1998-12-01 11:19:39 peter
  555. * fixed range problem with in [tasmop]
  556. Revision 1.14 1998/11/30 09:42:56 pierre
  557. * some range check bugs fixed (still not working !)
  558. + added DLL writing support for win32 (also accepts variables)
  559. + TempAnsi for code that could be used for Temporary ansi strings
  560. handling
  561. Revision 1.13 1998/11/17 00:26:10 peter
  562. * fixed for $H+
  563. Revision 1.12 1998/11/12 11:19:34 pierre
  564. * fix for first line of function break
  565. Revision 1.11 1998/10/12 12:20:42 pierre
  566. + added tai_const_symbol_offset
  567. for r : pointer = @var.field;
  568. * better message for different arg names on implementation
  569. of function
  570. Revision 1.10 1998/10/06 17:16:34 pierre
  571. * some memory leaks fixed (thanks to Peter for heaptrc !)
  572. Revision 1.9 1998/10/01 20:19:07 jonas
  573. + ait_marker support
  574. Revision 1.8 1998/09/20 17:11:22 jonas
  575. * released REGALLOC
  576. Revision 1.7 1998/08/11 14:01:43 peter
  577. * fixed fwait bug using direct opcode
  578. Revision 1.6 1998/08/10 15:49:39 peter
  579. * small fixes for 0.99.5
  580. Revision 1.5 1998/08/08 10:19:18 florian
  581. * small fixes to write the extended type correct
  582. Revision 1.4 1998/06/05 17:46:03 peter
  583. * tp doesn't like comp() typecast
  584. Revision 1.3 1998/05/28 17:24:27 peter
  585. - $R- for tp to solve range errors with in[]
  586. Revision 1.2 1998/05/25 17:11:37 pierre
  587. * firstpasscount bug fixed
  588. now all is already set correctly the first time
  589. under EXTDEBUG try -gp to skip all other firstpasses
  590. it works !!
  591. * small bug fixes
  592. - for smallsets with -dTESTSMALLSET
  593. - some warnings removed (by correcting code !)
  594. Revision 1.1 1998/05/23 01:20:56 peter
  595. + aktasmmode, aktoptprocessor, aktoutputformat
  596. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  597. + $LIBNAME to set the library name where the unit will be put in
  598. * splitted cgi386 a bit (codeseg to large for bp7)
  599. * nasm, tasm works again. nasm moved to ag386nsm.pas
  600. }