ag386int.pas 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. {
  2. $Id$
  3. Copyright (c) 1996,97 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. unit ag386int;
  19. interface
  20. uses aasm,assemble;
  21. type
  22. pi386intasmlist=^ti386intasmlist;
  23. ti386intasmlist = object(tasmlist)
  24. procedure WriteTree(p:paasmoutput);virtual;
  25. procedure WriteAsmList;virtual;
  26. end;
  27. implementation
  28. uses
  29. dos,globals,systems,cobjects,i386,
  30. strings,files,verbose
  31. {$ifdef GDB}
  32. ,gdb
  33. {$endif GDB}
  34. ;
  35. const
  36. line_length = 70;
  37. extstr : array[EXT_NEAR..EXT_ABS] of String[8] =
  38. ('NEAR','FAR','PROC','BYTE','WORD','DWORD',
  39. 'CODEPTR','DATAPTR','FWORD','PWORD','QWORD','TBYTE','ABS');
  40. function double2str(d : double) : string;
  41. var
  42. hs : string;
  43. p : byte;
  44. begin
  45. str(d,hs);
  46. { nasm expects a lowercase e }
  47. p:=pos('E',hs);
  48. if p>0 then
  49. hs[p]:='e';
  50. p:=pos('+',hs);
  51. if p>0 then
  52. delete(hs,p,1);
  53. double2str:=lower(hs);
  54. end;
  55. function extended2str(e : extended) : string;
  56. var
  57. hs : string;
  58. p : byte;
  59. begin
  60. {$ifdef VER0_99_5}
  61. str(double(e),hs);
  62. {$else}
  63. str(e,hs);
  64. {$endif}
  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_reg2str[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. { can possibly give a range check error under tp }
  148. { if using in... }
  149. if ((_operator <> A_LGS) and (_operator <> A_LSS) and
  150. (_operator <> A_LFS) and (_operator <> A_LDS) and
  151. (_operator <> A_LES)) then
  152. Begin
  153. case s of
  154. S_B : hs:='byte ptr '+hs;
  155. S_W : hs:='word ptr '+hs;
  156. S_L : hs:='dword ptr '+hs;
  157. S_IS : hs:='word ptr '+hs;
  158. S_IL : hs:='dword ptr '+hs;
  159. S_IQ : hs:='qword ptr '+hs;
  160. S_FS : hs:='dword ptr '+hs;
  161. S_FL : hs:='qword ptr '+hs;
  162. S_FX : hs:='tbyte ptr '+hs;
  163. S_BW : if dest then
  164. hs:='word ptr '+hs
  165. else
  166. hs:='byte ptr '+hs;
  167. S_BL : if dest then
  168. hs:='dword ptr '+hs
  169. else
  170. hs:='byte ptr '+hs;
  171. S_WL : if dest then
  172. hs:='dword ptr '+hs
  173. else
  174. hs:='word ptr '+hs;
  175. end;
  176. end;
  177. getopstr:=hs;
  178. end;
  179. top_symbol : begin
  180. hs[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  181. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  182. hs:='offset '+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[0]:=chr(strlen(pchar(pcsymbol(o)^.symbol)));
  204. move(pchar(pcsymbol(o)^.symbol)^,hs[1],byte(hs[0]));
  205. if pcsymbol(o)^.offset>0 then
  206. hs:=hs+'+'+tostr(pcsymbol(o)^.offset)
  207. else
  208. if pcsymbol(o)^.offset<0 then
  209. hs:=hs+tostr(pcsymbol(o)^.offset);
  210. getopstr_jmp:=hs;
  211. end;
  212. else
  213. internalerror(10001);
  214. end;
  215. end;
  216. {****************************************************************************
  217. TI386INTASMLIST
  218. ****************************************************************************}
  219. var
  220. LastSec : tsection;
  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_section2masmstr : array[tsection] of string[6]=
  225. ('','CODE','DATA','BSS','');
  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 ti386intasmlist.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. consttyp : tait;
  258. found,
  259. quoted : boolean;
  260. begin
  261. if not assigned(p) then
  262. exit;
  263. hp:=pai(p^.first);
  264. while assigned(hp) do
  265. begin
  266. case hp^.typ of
  267. ait_comment : Begin
  268. AsmWrite(target_asm.comment);
  269. AsmWritePChar(pai_asm_comment(hp)^.str);
  270. AsmLn;
  271. End;
  272. ait_section : begin
  273. if LastSec<>sec_none then
  274. AsmWriteLn('_'+ait_section2masmstr[LastSec]+#9#9'ENDS');
  275. if pai_section(hp)^.sec<>sec_none then
  276. begin
  277. AsmLn;
  278. AsmWriteLn('_'+ait_section2masmstr[pai_section(hp)^.sec]+#9#9+
  279. 'SEGMENT'#9'PARA PUBLIC USE32 '''+
  280. ait_section2masmstr[pai_section(hp)^.sec]+'''');
  281. end;
  282. LastSec:=pai_section(hp)^.sec;
  283. end;
  284. ait_align : begin
  285. { CAUSES PROBLEMS WITH THE SEGMENT DEFINITION }
  286. { SEGMENT DEFINITION SHOULD MATCH TYPE OF ALIGN }
  287. { HERE UNDER TASM! }
  288. AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  289. end;
  290. ait_external : AsmWriteLn(#9'EXTRN'#9+StrPas(pai_external(hp)^.name)+
  291. ' :'+extstr[pai_external(hp)^.exttyp]);
  292. ait_datablock : begin
  293. if pai_datablock(hp)^.is_global then
  294. AsmWriteLn(#9'PUBLIC'#9+StrPas(pai_datablock(hp)^.name));
  295. AsmWriteLn(PadTabs(pai_datablock(hp)^.name,#0)+'DB'#9+tostr(pai_datablock(hp)^.size)+' DUP(?)');
  296. end;
  297. ait_const_32bit,
  298. ait_const_8bit,
  299. ait_const_16bit : begin
  300. AsmWrite(ait_const2str[hp^.typ]+tostr(pai_const(hp)^.value));
  301. consttyp:=hp^.typ;
  302. l:=0;
  303. repeat
  304. found:=(not (Pai(hp^.next)=nil)) and (Pai(hp^.next)^.typ=consttyp);
  305. if found then
  306. begin
  307. hp:=Pai(hp^.next);
  308. s:=','+tostr(pai_const(hp)^.value);
  309. AsmWrite(s);
  310. inc(l,length(s));
  311. end;
  312. until (not found) or (l>line_length);
  313. AsmLn;
  314. end;
  315. ait_const_symbol : begin
  316. AsmWrite(#9#9+'DD '#9'offset ');
  317. AsmWritePChar(pchar(pai_const(hp)^.value));
  318. AsmLn;
  319. end;
  320. ait_real_32bit : AsmWriteLn(#9#9'DD'#9+double2str(pai_single(hp)^.value));
  321. ait_real_64bit : AsmWriteLn(#9#9'DQ'#9+double2str(pai_double(hp)^.value));
  322. ait_real_extended : AsmWriteLn(#9#9'DT'#9+extended2str(pai_extended(hp)^.value));
  323. ait_comp : AsmWriteLn(#9#9'DQ'#9+comp2str(pai_extended(hp)^.value));
  324. ait_string : begin
  325. counter := 0;
  326. lines := pai_string(hp)^.len div line_length;
  327. { separate lines in different parts }
  328. if pai_string(hp)^.len > 0 then
  329. Begin
  330. for j := 0 to lines-1 do
  331. begin
  332. AsmWrite(#9#9'DB'#9);
  333. quoted:=false;
  334. for i:=counter to counter+line_length do
  335. begin
  336. { it is an ascii character. }
  337. if (ord(pai_string(hp)^.str[i])>31) and
  338. (ord(pai_string(hp)^.str[i])<128) and
  339. (pai_string(hp)^.str[i]<>'"') then
  340. begin
  341. if not(quoted) then
  342. begin
  343. if i>counter then
  344. AsmWrite(',');
  345. AsmWrite('"');
  346. end;
  347. AsmWrite(pai_string(hp)^.str[i]);
  348. quoted:=true;
  349. end { if > 31 and < 128 and ord('"') }
  350. else
  351. begin
  352. if quoted then
  353. AsmWrite('"');
  354. if i>counter then
  355. AsmWrite(',');
  356. quoted:=false;
  357. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  358. end;
  359. end; { end for i:=0 to... }
  360. if quoted then AsmWrite('"');
  361. AsmWrite(target_os.newline);
  362. counter := counter+line_length;
  363. end; { end for j:=0 ... }
  364. { do last line of lines }
  365. AsmWrite(#9#9'DB'#9);
  366. quoted:=false;
  367. for i:=counter to pai_string(hp)^.len-1 do
  368. begin
  369. { it is an ascii character. }
  370. if (ord(pai_string(hp)^.str[i])>31) and
  371. (ord(pai_string(hp)^.str[i])<128) and
  372. (pai_string(hp)^.str[i]<>'"') then
  373. begin
  374. if not(quoted) then
  375. begin
  376. if i>counter then
  377. AsmWrite(',');
  378. AsmWrite('"');
  379. end;
  380. AsmWrite(pai_string(hp)^.str[i]);
  381. quoted:=true;
  382. end { if > 31 and < 128 and " }
  383. else
  384. begin
  385. if quoted then
  386. AsmWrite('"');
  387. if i>counter then
  388. AsmWrite(',');
  389. quoted:=false;
  390. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  391. end;
  392. end; { end for i:=0 to... }
  393. if quoted then
  394. AsmWrite('"');
  395. end;
  396. AsmLn;
  397. end;
  398. ait_label : begin
  399. if pai_label(hp)^.l^.is_used then
  400. begin
  401. AsmWrite(lab2str(pai_label(hp)^.l));
  402. if (assigned(hp^.next) and not(pai(hp^.next)^.typ in
  403. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  404. ait_real_32bit,ait_real_64bit,ait_real_extended,ait_string])) then
  405. AsmWriteLn(':');
  406. end;
  407. end;
  408. ait_direct : begin
  409. AsmWritePChar(pai_direct(hp)^.str);
  410. AsmLn;
  411. end;
  412. ait_labeled_instruction : AsmWriteLn(#9#9+int_op2str[pai_labeled(hp)^._operator]+#9+lab2str(pai_labeled(hp)^.lab));
  413. ait_symbol : begin
  414. if pai_symbol(hp)^.is_global then
  415. AsmWriteLn(#9'PUBLIC'#9+StrPas(pai_symbol(hp)^.name));
  416. AsmWritePChar(pai_symbol(hp)^.name);
  417. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  418. [ait_const_32bit,ait_const_16bit,ait_const_8bit,ait_const_symbol,
  419. ait_real_64bit,ait_real_extended,ait_string]) then
  420. AsmWriteLn(':')
  421. end;
  422. ait_instruction : begin
  423. suffix:='';
  424. prefix:= '';
  425. { added prefix instructions, must be on same line as opcode }
  426. if (pai386(hp)^.op1t = top_none) and
  427. ((pai386(hp)^._operator = A_REP) or
  428. (pai386(hp)^._operator = A_LOCK) or
  429. (pai386(hp)^._operator = A_REPE) or
  430. (pai386(hp)^._operator = A_REPNE)) then
  431. Begin
  432. prefix:=int_op2str[pai386(hp)^._operator]+#9;
  433. hp:=Pai(hp^.next);
  434. { this is theorically impossible... }
  435. if hp=nil then
  436. begin
  437. s:=#9#9+prefix;
  438. AsmWriteLn(s);
  439. break;
  440. end;
  441. end
  442. else
  443. prefix:= '';
  444. if pai386(hp)^.op1t<>top_none then
  445. begin
  446. if pai386(hp)^._operator in [A_CALL] then
  447. begin
  448. { with tasm call near ptr [edi+12] does not
  449. work but call near [edi+12] works ?? (PM)
  450. It works with call dword ptr [], but you
  451. need /m2 (2 passes) with tasm (PFV)
  452. }
  453. { if pai386(hp)^.op1t=top_ref then
  454. s:='near '+getopstr_jmp(pai386(hp)^.op1t,pai386(hp)^.op1)
  455. else
  456. s:='near ptr '+getopstr_jmp(pai386(hp)^.op1t,pai386(hp)^.op1);}
  457. s:='dword ptr '+getopstr_jmp(pai386(hp)^.op1t,pai386(hp)^.op1);
  458. end
  459. else
  460. begin
  461. s:=getopstr(pai386(hp)^.op1t,pai386(hp)^.op1,pai386(hp)^.size,pai386(hp)^._operator,false);
  462. if pai386(hp)^.op3t<>top_none then
  463. begin
  464. if pai386(hp)^.op2t<>top_none then
  465. s:=getopstr(pai386(hp)^.op2t,pointer(longint(twowords(pai386(hp)^.op2).word1)),
  466. pai386(hp)^.size,pai386(hp)^._operator,true)+','+s;
  467. s:=getopstr(pai386(hp)^.op3t,pointer(longint(twowords(pai386(hp)^.op2).word2)),
  468. pai386(hp)^.size,pai386(hp)^._operator,false)+','+s;
  469. end
  470. else
  471. if pai386(hp)^.op2t<>top_none then
  472. s:=getopstr(pai386(hp)^.op2t,pai386(hp)^.op2,pai386(hp)^.size,
  473. pai386(hp)^._operator,true)+','+s;
  474. end;
  475. s:=#9+s;
  476. end
  477. else
  478. begin
  479. { check if string instruction }
  480. { long form, otherwise may give range check errors }
  481. { in turbo pascal... }
  482. if ((pai386(hp)^._operator = A_CMPS) or
  483. (pai386(hp)^._operator = A_INS) or
  484. (pai386(hp)^._operator = A_OUTS) or
  485. (pai386(hp)^._operator = A_SCAS) or
  486. (pai386(hp)^._operator = A_STOS) or
  487. (pai386(hp)^._operator = A_MOVS) or
  488. (pai386(hp)^._operator = A_LODS) or
  489. (pai386(hp)^._operator = A_XLAT)) then
  490. Begin
  491. case pai386(hp)^.size of
  492. S_B: suffix:='b';
  493. S_W: suffix:='w';
  494. S_L: suffix:='d';
  495. else
  496. Message(assem_f_invalid_suffix_intel);
  497. end;
  498. end;
  499. s:='';
  500. end;
  501. AsmWriteLn(#9#9+prefix+int_op2str[pai386(hp)^._operator]+suffix+s);
  502. end;
  503. {$ifdef GDB}
  504. ait_stabn,
  505. ait_stabs,
  506. ait_stab_function_name : ;
  507. {$endif GDB}
  508. else
  509. internalerror(10000);
  510. end;
  511. hp:=pai(hp^.next);
  512. end;
  513. end;
  514. procedure ti386intasmlist.WriteAsmList;
  515. begin
  516. {$ifdef EXTDEBUG}
  517. if assigned(current_module^.mainsource) then
  518. comment(v_info,'Start writing intel-styled assembler output for '+current_module^.mainsource^);
  519. {$endif}
  520. LastSec:=sec_none;
  521. AsmWriteLn(#9'.386p');
  522. AsmWriteLn(#9'LOCALS '+target_asm.labelprefix);
  523. AsmWriteLn('DGROUP'#9'GROUP'#9'_BSS,_DATA');
  524. AsmWriteLn(#9'ASSUME'#9'CS:_CODE,ES:DGROUP,DS:DGROUP,SS:DGROUP');
  525. AsmLn;
  526. WriteTree(externals);
  527. { INTEL ASM doesn't support stabs
  528. WriteTree(debuglist);}
  529. WriteTree(codesegment);
  530. WriteTree(datasegment);
  531. WriteTree(consts);
  532. WriteTree(rttilist);
  533. WriteTree(bsssegment);
  534. AsmWriteLn(#9'END');
  535. AsmLn;
  536. {$ifdef EXTDEBUG}
  537. if assigned(current_module^.mainsource) then
  538. comment(v_info,'Done writing intel-styled assembler output for '+current_module^.mainsource^);
  539. {$endif EXTDEBUG}
  540. end;
  541. end.
  542. {
  543. $Log$
  544. Revision 1.13 1998-08-10 15:49:38 peter
  545. * small fixes for 0.99.5
  546. Revision 1.12 1998/08/08 10:19:17 florian
  547. * small fixes to write the extended type correct
  548. Revision 1.11 1998/06/05 17:46:02 peter
  549. * tp doesn't like comp() typecast
  550. Revision 1.10 1998/05/25 17:11:36 pierre
  551. * firstpasscount bug fixed
  552. now all is already set correctly the first time
  553. under EXTDEBUG try -gp to skip all other firstpasses
  554. it works !!
  555. * small bug fixes
  556. - for smallsets with -dTESTSMALLSET
  557. - some warnings removed (by correcting code !)
  558. Revision 1.9 1998/05/23 01:20:55 peter
  559. + aktasmmode, aktoptprocessor, aktoutputformat
  560. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  561. + $LIBNAME to set the library name where the unit will be put in
  562. * splitted cgi386 a bit (codeseg to large for bp7)
  563. * nasm, tasm works again. nasm moved to ag386nsm.pas
  564. Revision 1.8 1998/05/06 18:36:53 peter
  565. * tai_section extended with code,data,bss sections and enumerated type
  566. * ident 'compiled by FPC' moved to pmodules
  567. * small fix for smartlink
  568. Revision 1.7 1998/05/06 08:38:32 pierre
  569. * better position info with UseTokenInfo
  570. UseTokenInfo greatly simplified
  571. + added check for changed tree after first time firstpass
  572. (if we could remove all the cases were it happen
  573. we could skip all firstpass if firstpasscount > 1)
  574. Only with ExtDebug
  575. Revision 1.6 1998/05/04 17:54:24 peter
  576. + smartlinking works (only case jumptable left todo)
  577. * redesign of systems.pas to support assemblers and linkers
  578. + Unitname is now also in the PPU-file, increased version to 14
  579. Revision 1.5 1998/05/01 07:43:52 florian
  580. + basics for rtti implemented
  581. + switch $m (generate rtti for published sections)
  582. Revision 1.4 1998/04/29 10:33:41 pierre
  583. + added some code for ansistring (not complete nor working yet)
  584. * corrected operator overloading
  585. * corrected nasm output
  586. + started inline procedures
  587. + added starstarn : use ** for exponentiation (^ gave problems)
  588. + started UseTokenInfo cond to get accurate positions
  589. Revision 1.3 1998/04/08 16:58:01 pierre
  590. * several bugfixes
  591. ADD ADC and AND are also sign extended
  592. nasm output OK (program still crashes at end
  593. and creates wrong assembler files !!)
  594. procsym types sym in tdef removed !!
  595. Revision 1.2 1998/04/08 11:34:17 peter
  596. * nasm works (linux only tested)
  597. }