raavrgas.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. {
  2. Copyright (c) 1998-2008 by Carl Eric Codere and Peter Vreman
  3. Does the parsing for the ARM GNU AS styled inline assembler.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. Unit raavrgas;
  18. {$i fpcdefs.inc}
  19. Interface
  20. uses
  21. raatt,raavr,
  22. cpubase;
  23. type
  24. tavrattreader = class(tattreader)
  25. function is_asmopcode(const s: string):boolean;override;
  26. function is_register(const s:string):boolean;override;
  27. procedure handleopcode;override;
  28. procedure BuildReference(oper : tavroperand);
  29. procedure BuildOperand(oper : tavroperand);
  30. procedure BuildOpCode(instr : tavrinstruction);
  31. procedure ReadSym(oper : tavroperand);
  32. procedure ConvertCalljmp(instr : tavrinstruction);
  33. end;
  34. Implementation
  35. uses
  36. { helpers }
  37. cutils,
  38. { global }
  39. globtype,globals,verbose,
  40. systems,
  41. { aasm }
  42. cpuinfo,aasmbase,aasmtai,aasmdata,aasmcpu,
  43. { symtable }
  44. symconst,symbase,symtype,symsym,symtable,
  45. { parser }
  46. scanner,
  47. procinfo,
  48. itcpugas,
  49. rabase,rautils,
  50. cgbase,cgutils,cgobj
  51. ;
  52. function tavrattreader.is_register(const s:string):boolean;
  53. type
  54. treg2str = record
  55. name : string[2];
  56. reg : tregister;
  57. end;
  58. const
  59. extraregs : array[0..8] of treg2str = (
  60. (name: 'X'; reg : NR_R26),
  61. (name: 'XL'; reg : NR_R26),
  62. (name: 'XH'; reg : NR_R27),
  63. (name: 'Y'; reg : NR_R28),
  64. (name: 'YL'; reg : NR_R28),
  65. (name: 'YH'; reg : NR_R29),
  66. (name: 'Z'; reg : NR_R30),
  67. (name: 'ZL'; reg : NR_R30),
  68. (name: 'ZH'; reg : NR_R31)
  69. );
  70. var
  71. i : longint;
  72. begin
  73. result:=inherited is_register(s);
  74. { reg found?
  75. possible aliases are always 2 char
  76. }
  77. if result or (not (length(s) in [1,2])) then
  78. exit;
  79. for i:=low(extraregs) to high(extraregs) do
  80. begin
  81. if s=extraregs[i].name then
  82. begin
  83. actasmregister:=extraregs[i].reg;
  84. result:=true;
  85. actasmtoken:=AS_REGISTER;
  86. exit;
  87. end;
  88. end;
  89. end;
  90. procedure tavrattreader.ReadSym(oper : tavroperand);
  91. var
  92. tempstr, mangledname : string;
  93. typesize,l,k : aint;
  94. begin
  95. tempstr:=actasmpattern;
  96. Consume(AS_ID);
  97. { typecasting? }
  98. if (actasmtoken=AS_LPAREN) and
  99. SearchType(tempstr,typesize) then
  100. begin
  101. oper.hastype:=true;
  102. Consume(AS_LPAREN);
  103. BuildOperand(oper);
  104. Consume(AS_RPAREN);
  105. if oper.opr.typ in [OPR_REFERENCE,OPR_LOCAL] then
  106. oper.SetSize(typesize,true);
  107. end
  108. else
  109. if not oper.SetupVar(tempstr,false) then
  110. Message1(sym_e_unknown_id,tempstr);
  111. { record.field ? }
  112. if actasmtoken=AS_DOT then
  113. begin
  114. BuildRecordOffsetSize(tempstr,l,k,mangledname,false);
  115. if (mangledname<>'') then
  116. Message(asmr_e_invalid_reference_syntax);
  117. inc(oper.opr.ref.offset,l);
  118. end;
  119. end;
  120. Procedure tavrattreader.BuildReference(oper : tavroperand);
  121. procedure Consume_RParen;
  122. begin
  123. if actasmtoken<>AS_RPAREN then
  124. Begin
  125. Message(asmr_e_invalid_reference_syntax);
  126. RecoverConsume(true);
  127. end
  128. else
  129. begin
  130. Consume(AS_RPAREN);
  131. if not (actasmtoken in [AS_COMMA,AS_SEPARATOR,AS_END]) then
  132. Begin
  133. Message(asmr_e_invalid_reference_syntax);
  134. RecoverConsume(true);
  135. end;
  136. end;
  137. end;
  138. procedure read_index;
  139. begin
  140. Consume(AS_COMMA);
  141. if actasmtoken=AS_REGISTER then
  142. Begin
  143. oper.opr.ref.index:=actasmregister;
  144. Consume(AS_REGISTER);
  145. end
  146. else if actasmtoken=AS_HASH then
  147. begin
  148. Consume(AS_HASH);
  149. inc(oper.opr.ref.offset,BuildConstExpression(false,true));
  150. end;
  151. end;
  152. begin
  153. Consume(AS_LPAREN);
  154. if actasmtoken=AS_REGISTER then
  155. begin
  156. oper.opr.ref.base:=actasmregister;
  157. Consume(AS_REGISTER);
  158. { can either be a register or a right parenthesis }
  159. { (reg) }
  160. if actasmtoken=AS_LPAREN then
  161. Begin
  162. Consume_RParen;
  163. exit;
  164. end;
  165. if actasmtoken=AS_PLUS then
  166. begin
  167. consume(AS_PLUS);
  168. oper.opr.ref.addressmode:=AM_POSTINCREMENT;
  169. end;
  170. end {end case }
  171. else
  172. Begin
  173. Message(asmr_e_invalid_reference_syntax);
  174. RecoverConsume(false);
  175. end;
  176. end;
  177. Procedure tavrattreader.BuildOperand(oper : tavroperand);
  178. var
  179. expr : string;
  180. typesize,l : aint;
  181. procedure AddLabelOperand(hl:tasmlabel);
  182. begin
  183. if not(actasmtoken in [AS_PLUS,AS_MINUS,AS_LPAREN]) { and
  184. is_calljmp(actopcode) } then
  185. begin
  186. oper.opr.typ:=OPR_SYMBOL;
  187. oper.opr.symbol:=hl;
  188. end
  189. else
  190. begin
  191. oper.InitRef;
  192. oper.opr.ref.symbol:=hl;
  193. end;
  194. end;
  195. procedure MaybeRecordOffset;
  196. var
  197. mangledname: string;
  198. hasdot : boolean;
  199. l,
  200. toffset,
  201. tsize : aint;
  202. begin
  203. if not(actasmtoken in [AS_DOT,AS_PLUS,AS_MINUS]) then
  204. exit;
  205. l:=0;
  206. hasdot:=(actasmtoken=AS_DOT);
  207. if hasdot then
  208. begin
  209. if expr<>'' then
  210. begin
  211. BuildRecordOffsetSize(expr,toffset,tsize,mangledname,false);
  212. if (oper.opr.typ<>OPR_CONSTANT) and
  213. (mangledname<>'') then
  214. Message(asmr_e_wrong_sym_type);
  215. inc(l,toffset);
  216. oper.SetSize(tsize,true);
  217. end;
  218. end;
  219. if actasmtoken in [AS_PLUS,AS_MINUS] then
  220. inc(l,BuildConstExpression(true,false));
  221. case oper.opr.typ of
  222. OPR_LOCAL :
  223. begin
  224. { don't allow direct access to fields of parameters, because that
  225. will generate buggy code. Allow it only for explicit typecasting }
  226. if hasdot and
  227. (not oper.hastype) and
  228. (tabstractnormalvarsym(oper.opr.localsym).owner.symtabletype=parasymtable) and
  229. (current_procinfo.procdef.proccalloption<>pocall_register) then
  230. Message(asmr_e_cannot_access_field_directly_for_parameters);
  231. inc(oper.opr.localsymofs,l)
  232. end;
  233. OPR_CONSTANT :
  234. inc(oper.opr.val,l);
  235. OPR_REFERENCE :
  236. if (mangledname<>'') then
  237. begin
  238. if (oper.opr.val<>0) then
  239. Message(asmr_e_wrong_sym_type);
  240. oper.opr.typ:=OPR_SYMBOL;
  241. oper.opr.symbol:=current_asmdata.RefAsmSymbol(mangledname);
  242. end
  243. else
  244. inc(oper.opr.val,l);
  245. OPR_SYMBOL:
  246. Message(asmr_e_invalid_symbol_ref);
  247. else
  248. internalerror(200309221);
  249. end;
  250. end;
  251. function MaybeBuildReference:boolean;
  252. { Try to create a reference, if not a reference is found then false
  253. is returned }
  254. begin
  255. MaybeBuildReference:=true;
  256. case actasmtoken of
  257. AS_INTNUM,
  258. AS_MINUS,
  259. AS_PLUS:
  260. Begin
  261. oper.opr.ref.offset:=BuildConstExpression(True,False);
  262. if actasmtoken<>AS_LPAREN then
  263. Message(asmr_e_invalid_reference_syntax)
  264. else
  265. BuildReference(oper);
  266. end;
  267. AS_LPAREN:
  268. BuildReference(oper);
  269. AS_ID: { only a variable is allowed ... }
  270. Begin
  271. ReadSym(oper);
  272. case actasmtoken of
  273. AS_END,
  274. AS_SEPARATOR,
  275. AS_COMMA: ;
  276. AS_LPAREN:
  277. BuildReference(oper);
  278. else
  279. Begin
  280. Message(asmr_e_invalid_reference_syntax);
  281. Consume(actasmtoken);
  282. end;
  283. end; {end case }
  284. end;
  285. else
  286. MaybeBuildReference:=false;
  287. end; { end case }
  288. end;
  289. var
  290. tempreg : tregister;
  291. ireg : tsuperregister;
  292. hl : tasmlabel;
  293. ofs : longint;
  294. registerset : tcpuregisterset;
  295. tempstr : string;
  296. tempsymtyp : tasmsymtype;
  297. Begin
  298. expr:='';
  299. case actasmtoken of
  300. AS_LBRACKET: { Memory reference or constant expression }
  301. Begin
  302. oper.InitRef;
  303. BuildReference(oper);
  304. end;
  305. AS_INTNUM,
  306. AS_MINUS,
  307. AS_PLUS:
  308. Begin
  309. if (actasmtoken=AS_MINUS) and
  310. (actopcode in [A_LD,A_ST]) then
  311. begin
  312. { Special handling of predecrement addressing }
  313. oper.InitRef;
  314. oper.opr.ref.addressmode:=AM_PREDRECEMENT;
  315. consume(AS_MINUS);
  316. if actasmtoken=AS_REGISTER then
  317. begin
  318. oper.opr.ref.base:=actasmregister;
  319. consume(AS_REGISTER);
  320. end
  321. else
  322. begin
  323. Message(asmr_e_invalid_reference_syntax);
  324. RecoverConsume(false);
  325. end;
  326. end
  327. else
  328. begin
  329. { Constant memory offset }
  330. { This must absolutely be followed by ( }
  331. oper.InitRef;
  332. oper.opr.ref.offset:=BuildConstExpression(True,False);
  333. { absolute memory addresss? }
  334. if actopcode in [A_LDS,A_STS] then
  335. BuildReference(oper)
  336. else
  337. begin
  338. ofs:=oper.opr.ref.offset;
  339. BuildConstantOperand(oper);
  340. inc(oper.opr.val,ofs);
  341. end;
  342. end;
  343. end;
  344. AS_ID: { A constant expression, or a Variable ref. }
  345. Begin
  346. if (actasmpattern='LO8') or (actasmpattern='HI8') then
  347. begin
  348. { Low or High part of a constant (or constant
  349. memory location) }
  350. oper.InitRef;
  351. if actasmpattern='LO8' then
  352. oper.opr.ref.refaddr:=addr_lo8
  353. else
  354. oper.opr.ref.refaddr:=addr_hi8;
  355. Consume(actasmtoken);
  356. Consume(AS_LPAREN);
  357. BuildConstSymbolExpression(false, true,false,l,tempstr,tempsymtyp);
  358. if not assigned(oper.opr.ref.symbol) then
  359. oper.opr.ref.symbol:=current_asmdata.RefAsmSymbol(tempstr)
  360. else
  361. Message(asmr_e_cant_have_multiple_relocatable_symbols);
  362. case oper.opr.typ of
  363. OPR_CONSTANT :
  364. inc(oper.opr.val,l);
  365. OPR_LOCAL :
  366. inc(oper.opr.localsymofs,l);
  367. OPR_REFERENCE :
  368. inc(oper.opr.ref.offset,l);
  369. else
  370. internalerror(200309202);
  371. end;
  372. Consume(AS_RPAREN);
  373. end
  374. { Local Label ? }
  375. else if is_locallabel(actasmpattern) then
  376. begin
  377. CreateLocalLabel(actasmpattern,hl,false);
  378. Consume(AS_ID);
  379. AddLabelOperand(hl);
  380. end
  381. { Check for label }
  382. else if SearchLabel(actasmpattern,hl,false) then
  383. begin
  384. Consume(AS_ID);
  385. AddLabelOperand(hl);
  386. end
  387. else
  388. { probably a variable or normal expression }
  389. { or a procedure (such as in CALL ID) }
  390. Begin
  391. { is it a constant ? }
  392. if SearchIConstant(actasmpattern,l) then
  393. Begin
  394. if not (oper.opr.typ in [OPR_NONE,OPR_CONSTANT]) then
  395. Message(asmr_e_invalid_operand_type);
  396. BuildConstantOperand(oper);
  397. end
  398. else
  399. begin
  400. expr:=actasmpattern;
  401. Consume(AS_ID);
  402. { typecasting? }
  403. if (actasmtoken=AS_LPAREN) and
  404. SearchType(expr,typesize) then
  405. begin
  406. oper.hastype:=true;
  407. Consume(AS_LPAREN);
  408. BuildOperand(oper);
  409. Consume(AS_RPAREN);
  410. if oper.opr.typ in [OPR_REFERENCE,OPR_LOCAL] then
  411. oper.SetSize(typesize,true);
  412. end
  413. else
  414. begin
  415. if not(oper.SetupVar(expr,false)) then
  416. Begin
  417. { look for special symbols ... }
  418. if expr= '__HIGH' then
  419. begin
  420. consume(AS_LPAREN);
  421. if not oper.setupvar('high'+actasmpattern,false) then
  422. Message1(sym_e_unknown_id,'high'+actasmpattern);
  423. consume(AS_ID);
  424. consume(AS_RPAREN);
  425. end
  426. else
  427. if expr = '__RESULT' then
  428. oper.SetUpResult
  429. else
  430. if expr = '__SELF' then
  431. oper.SetupSelf
  432. else
  433. if expr = '__OLDEBP' then
  434. oper.SetupOldEBP
  435. else
  436. Message1(sym_e_unknown_id,expr);
  437. end;
  438. end;
  439. end;
  440. if actasmtoken=AS_DOT then
  441. MaybeRecordOffset;
  442. { add a constant expression? }
  443. if (actasmtoken=AS_PLUS) then
  444. begin
  445. l:=BuildConstExpression(true,false);
  446. case oper.opr.typ of
  447. OPR_CONSTANT :
  448. inc(oper.opr.val,l);
  449. OPR_LOCAL :
  450. inc(oper.opr.localsymofs,l);
  451. OPR_REFERENCE :
  452. inc(oper.opr.ref.offset,l);
  453. else
  454. internalerror(200309202);
  455. end;
  456. end
  457. end;
  458. { Do we have a indexing reference, then parse it also }
  459. if actasmtoken=AS_LPAREN then
  460. BuildReference(oper);
  461. end;
  462. { Register, a variable reference or a constant reference }
  463. AS_REGISTER:
  464. Begin
  465. { save the type of register used. }
  466. tempreg:=actasmregister;
  467. Consume(AS_REGISTER);
  468. if (actasmtoken=AS_PLUS) then
  469. begin
  470. oper.opr.typ:=OPR_REFERENCE;
  471. reference_reset_base(oper.opr.ref,tempreg,0,1);
  472. oper.opr.ref.addressmode:=AM_POSTINCREMENT;
  473. consume(AS_PLUS);
  474. end
  475. else if (actasmtoken in [AS_END,AS_SEPARATOR,AS_COMMA]) then
  476. Begin
  477. if not (oper.opr.typ in [OPR_NONE,OPR_REGISTER]) then
  478. Message(asmr_e_invalid_operand_type);
  479. oper.opr.typ:=OPR_REGISTER;
  480. oper.opr.reg:=tempreg;
  481. end
  482. else
  483. Message(asmr_e_syn_operand);
  484. end;
  485. AS_END,
  486. AS_SEPARATOR,
  487. AS_COMMA: ;
  488. else
  489. Begin
  490. Message(asmr_e_syn_operand);
  491. Consume(actasmtoken);
  492. end;
  493. end; { end case }
  494. end;
  495. {*****************************************************************************
  496. tavrattreader
  497. *****************************************************************************}
  498. procedure tavrattreader.BuildOpCode(instr : tavrinstruction);
  499. var
  500. operandnum : longint;
  501. Begin
  502. { opcode }
  503. if (actasmtoken<>AS_OPCODE) then
  504. Begin
  505. Message(asmr_e_invalid_or_missing_opcode);
  506. RecoverConsume(true);
  507. exit;
  508. end;
  509. { Fill the instr object with the current state }
  510. with instr do
  511. begin
  512. Opcode:=ActOpcode;
  513. condition:=ActCondition;
  514. end;
  515. { We are reading operands, so opcode will be an AS_ID }
  516. operandnum:=1;
  517. Consume(AS_OPCODE);
  518. { Zero operand opcode ? }
  519. if actasmtoken in [AS_SEPARATOR,AS_END] then
  520. begin
  521. operandnum:=0;
  522. exit;
  523. end;
  524. { Read the operands }
  525. repeat
  526. case actasmtoken of
  527. AS_COMMA: { Operand delimiter }
  528. Begin
  529. if operandnum>Max_Operands then
  530. Message(asmr_e_too_many_operands)
  531. else
  532. Inc(operandnum);
  533. Consume(AS_COMMA);
  534. end;
  535. AS_SEPARATOR,
  536. AS_END : { End of asm operands for this opcode }
  537. begin
  538. break;
  539. end;
  540. else
  541. BuildOperand(instr.Operands[operandnum] as tavroperand);
  542. end; { end case }
  543. until false;
  544. instr.Ops:=operandnum;
  545. end;
  546. function tavrattreader.is_asmopcode(const s: string):boolean;
  547. const
  548. { sorted by length so longer postfixes will match first }
  549. postfix2strsorted : array[1..19] of string[2] = (
  550. 'EP','SB','BT','SH',
  551. 'IA','IB','DA','DB','FD','FA','ED','EA',
  552. 'B','D','E','P','T','H','S');
  553. var
  554. len,
  555. j,
  556. sufidx : longint;
  557. hs : string;
  558. maxlen : longint;
  559. icond : tasmcond;
  560. Begin
  561. { making s a value parameter would break other assembler readers }
  562. hs:=s;
  563. is_asmopcode:=false;
  564. { clear op code }
  565. actopcode:=A_None;
  566. actcondition:=C_None;
  567. { first, handle B else BLS is read wrong }
  568. if ((copy(hs,1,2)='BR') and (length(hs)=4)) then
  569. begin
  570. for icond:=low(tasmcond) to high(tasmcond) do
  571. begin
  572. if copy(hs,2,3)=uppercond2str[icond] then
  573. begin
  574. actopcode:=A_BRxx;
  575. actasmtoken:=AS_OPCODE;
  576. actcondition:=icond;
  577. is_asmopcode:=true;
  578. exit;
  579. end;
  580. end;
  581. end;
  582. maxlen:=max(length(hs),5);
  583. actopcode:=A_NONE;
  584. for j:=maxlen downto 1 do
  585. begin
  586. actopcode:=tasmop(PtrUInt(iasmops.Find(copy(hs,1,j))));
  587. if actopcode<>A_NONE then
  588. begin
  589. actasmtoken:=AS_OPCODE;
  590. { strip op code }
  591. delete(hs,1,j);
  592. break;
  593. end;
  594. end;
  595. if actopcode=A_NONE then
  596. exit;
  597. { search for condition, conditions are always 2 chars }
  598. if length(hs)>1 then
  599. begin
  600. for icond:=low(tasmcond) to high(tasmcond) do
  601. begin
  602. if copy(hs,1,2)=uppercond2str[icond] then
  603. begin
  604. actcondition:=icond;
  605. { strip condition }
  606. delete(hs,1,2);
  607. break;
  608. end;
  609. end;
  610. end;
  611. { if we stripped all postfixes, it's a valid opcode }
  612. is_asmopcode:=length(hs)=0;
  613. end;
  614. procedure tavrattreader.ConvertCalljmp(instr : tavrinstruction);
  615. var
  616. newopr : toprrec;
  617. begin
  618. if instr.Operands[1].opr.typ=OPR_REFERENCE then
  619. begin
  620. newopr.typ:=OPR_SYMBOL;
  621. newopr.symbol:=instr.Operands[1].opr.ref.symbol;
  622. newopr.symofs:=instr.Operands[1].opr.ref.offset;
  623. if (instr.Operands[1].opr.ref.base<>NR_NO) or
  624. (instr.Operands[1].opr.ref.index<>NR_NO) then
  625. Message(asmr_e_syn_operand);
  626. instr.Operands[1].opr:=newopr;
  627. end;
  628. end;
  629. procedure tavrattreader.handleopcode;
  630. var
  631. instr : tavrinstruction;
  632. begin
  633. instr:=tavrinstruction.Create(tavroperand);
  634. BuildOpcode(instr);
  635. { if is_calljmp(instr.opcode) then
  636. ConvertCalljmp(instr); }
  637. {
  638. instr.AddReferenceSizes;
  639. instr.SetInstructionOpsize;
  640. instr.CheckOperandSizes;
  641. }
  642. instr.ConcatInstruction(curlist);
  643. instr.Free;
  644. end;
  645. {*****************************************************************************
  646. Initialize
  647. *****************************************************************************}
  648. const
  649. asmmode_avr_att_info : tasmmodeinfo =
  650. (
  651. id : asmmode_avr_gas;
  652. idtxt : 'GAS';
  653. casmreader : tavrattreader;
  654. );
  655. asmmode_avr_standard_info : tasmmodeinfo =
  656. (
  657. id : asmmode_standard;
  658. idtxt : 'STANDARD';
  659. casmreader : tavrattreader;
  660. );
  661. initialization
  662. RegisterAsmMode(asmmode_avr_att_info);
  663. RegisterAsmMode(asmmode_avr_standard_info);
  664. end.