ag68kmpw.pas 26 KB

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