ag68kmpw.pas 26 KB

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