ag386nsm.pas 25 KB

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