1 /* Instruction printing code for the ARC.
2 Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009,
3 2010, 2012 Free Software Foundation, Inc.
4 Contributed by Doug Evans (dje@cygnus.com).
6 This file is part of libopcodes.
8 This library is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 It is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
24 #include "libiberty.h"
26 #include "opcode/arc.h"
39 /* Classification of the opcodes for the decoder to print
47 /* All branches other than JC. */
50 /* All loads other than immediate
56 /* All single operand instructions. */
57 CLASS_A4_OP3_SUBOPC3F
,
61 #define BIT(word,n) ((word) & (1 << n))
62 #define BITS(word,s,e) (((word) >> s) & ((1 << (e + 1 - s)) - 1))
63 #define OPCODE(word) (BITS ((word), 27, 31))
64 #define FIELDA(word) (BITS ((word), 21, 26))
65 #define FIELDB(word) (BITS ((word), 15, 20))
66 #define FIELDC(word) (BITS ((word), 9, 14))
68 /* FIELD D is signed. */
69 #define FIELDD(word) ((BITS ((word), 0, 8) ^ 0x100) - 0x100)
71 #define PUT_NEXT_WORD_IN(a) \
74 if (is_limm == 1 && !NEXT_WORD (1)) \
75 mwerror (state, _("Illegal limm reference in last instruction!\n")); \
76 a = state->words[1]; \
80 #define CHECK_FLAG_COND_NULLIFY() \
85 flag = BIT (state->words[0], 8); \
86 state->nullifyMode = BITS (state->words[0], 5, 6); \
87 cond = BITS (state->words[0], 0, 4); \
92 #define CHECK_COND() \
96 cond = BITS (state->words[0], 0, 4); \
100 #define CHECK_FIELD(field) \
107 PUT_NEXT_WORD_IN (field); \
108 limm_value = field; \
110 else if (field > 60) \
114 flag = (field == 61); \
115 field = FIELDD (state->words[0]); \
120 #define CHECK_FIELD_A() \
123 fieldA = FIELDA (state->words[0]); \
132 #define CHECK_FIELD_B() \
135 fieldB = FIELDB (state->words[0]); \
136 CHECK_FIELD (fieldB); \
140 #define CHECK_FIELD_C() \
143 fieldC = FIELDC (state->words[0]); \
144 CHECK_FIELD (fieldC); \
148 #define IS_SMALL(x) (((field##x) < 256) && ((field##x) > -257))
149 #define IS_REG(x) (field##x##isReg)
150 #define WRITE_FORMAT_LB_Rx_RB(x) WRITE_FORMAT (x, "[","]","","")
151 #define WRITE_FORMAT_x_COMMA_LB(x) WRITE_FORMAT (x, "",",[","",",[")
152 #define WRITE_FORMAT_COMMA_x_RB(x) WRITE_FORMAT (x, ",","]",",","]")
153 #define WRITE_FORMAT_x_RB(x) WRITE_FORMAT (x, "","]","","]")
154 #define WRITE_FORMAT_COMMA_x(x) WRITE_FORMAT (x, ",","",",","")
155 #define WRITE_FORMAT_x_COMMA(x) WRITE_FORMAT (x, "",",","",",")
156 #define WRITE_FORMAT_x(x) WRITE_FORMAT (x, "","","","")
157 #define WRITE_FORMAT(x,cb1,ca1,cb,ca) strcat (formatString, \
158 (IS_REG (x) ? cb1"%r"ca1 : \
159 usesAuxReg ? cb"%a"ca : \
160 IS_SMALL (x) ? cb"%d"ca : cb"%h"ca))
161 #define WRITE_FORMAT_RB() strcat (formatString, "]")
162 #define WRITE_COMMENT(str) (state->comm[state->commNum++] = (str))
163 #define WRITE_NOP_COMMENT() if (!fieldAisReg && !flag) WRITE_COMMENT ("nop");
165 #define NEXT_WORD(x) (offset += 4, state->words[x])
167 #define add_target(x) (state->targets[state->tcnt++] = (x))
169 static char comment_prefix
[] = "\t; ";
172 core_reg_name (struct arcDisState
* state
, int val
)
174 if (state
->coreRegName
)
175 return (*state
->coreRegName
)(state
->_this
, val
);
180 aux_reg_name (struct arcDisState
* state
, int val
)
182 if (state
->auxRegName
)
183 return (*state
->auxRegName
)(state
->_this
, val
);
188 cond_code_name (struct arcDisState
* state
, int val
)
190 if (state
->condCodeName
)
191 return (*state
->condCodeName
)(state
->_this
, val
);
196 instruction_name (struct arcDisState
* state
,
202 return (*state
->instName
)(state
->_this
, op1
, op2
, flags
);
207 mwerror (struct arcDisState
* state
, const char * msg
)
210 (*state
->err
)(state
->_this
, (msg
));
214 post_address (struct arcDisState
* state
, int addr
)
216 static char id
[3 * ARRAY_SIZE (state
->addresses
)];
217 int j
, i
= state
->acnt
;
219 if (i
< ((int) ARRAY_SIZE (state
->addresses
)))
221 state
->addresses
[i
] = addr
;
234 arc_sprintf (struct arcDisState
*state
, char *buf
, const char *format
, ...)
238 int size
, leading_zero
, regMap
[2];
241 va_start (ap
, format
);
253 goto DOCOMM
; /* (return) */
277 leading_zero
= 1; /* e.g. %08x */
278 while (*p
>= '0' && *p
<= '9')
280 size
= size
* 10 + *p
- '0';
285 #define inc_bp() bp = bp + strlen (bp)
289 unsigned u
= va_arg (ap
, int);
291 /* Hex. We can change the format to 0x%08x in
292 one place, here, if we wish.
293 We add underscores for easy reading. */
295 sprintf (bp
, "0x%x_%04x", u
>> 16, u
& 0xffff);
297 sprintf (bp
, "0x%x", u
);
303 int val
= va_arg (ap
, int);
307 sprintf (bp
, "%0*x", size
, val
);
309 sprintf (bp
, "%*x", size
, val
);
311 sprintf (bp
, "%x", val
);
317 int val
= va_arg (ap
, int);
320 sprintf (bp
, "%*d", size
, val
);
322 sprintf (bp
, "%d", val
);
329 int val
= va_arg (ap
, int);
331 #define REG2NAME(num, name) case num: sprintf (bp, ""name); \
332 regMap[(num < 32) ? 0 : 1] |= 1 << (num - ((num < 32) ? 0 : 32)); break;
339 REG2NAME (29, "ilink1");
340 REG2NAME (30, "ilink2");
341 REG2NAME (31, "blink");
342 REG2NAME (60, "lp_count");
347 ext
= core_reg_name (state
, val
);
349 sprintf (bp
, "%s", ext
);
351 sprintf (bp
,"r%d",val
);
361 int val
= va_arg (ap
, int);
363 #define AUXREG2NAME(num, name) case num: sprintf (bp,name); break;
367 AUXREG2NAME (0x0, "status");
368 AUXREG2NAME (0x1, "semaphore");
369 AUXREG2NAME (0x2, "lp_start");
370 AUXREG2NAME (0x3, "lp_end");
371 AUXREG2NAME (0x4, "identity");
372 AUXREG2NAME (0x5, "debug");
377 ext
= aux_reg_name (state
, val
);
379 sprintf (bp
, "%s", ext
);
381 arc_sprintf (state
, bp
, "%h", val
);
391 sprintf (bp
, "%s", va_arg (ap
, char *));
397 fprintf (stderr
, "?? format %c\n", p
[-1]);
407 write_comments_(struct arcDisState
* state
,
412 if (state
->commentBuffer
!= 0)
418 const char *name
= post_address (state
, limm_value
+ shimm
);
421 WRITE_COMMENT (name
);
423 for (i
= 0; i
< state
->commNum
; i
++)
426 strcpy (state
->commentBuffer
, comment_prefix
);
428 strcat (state
->commentBuffer
, ", ");
429 strncat (state
->commentBuffer
, state
->comm
[i
],
430 sizeof (state
->commentBuffer
));
435 #define write_comments2(x) write_comments_ (state, x, is_limm, limm_value)
436 #define write_comments() write_comments2 (0)
438 static const char *condName
[] =
441 "" , "z" , "nz" , "p" , "n" , "c" , "nc" , "v" ,
442 "nv" , "gt" , "ge" , "lt" , "le" , "hi" , "ls" , "pnz"
446 write_instr_name_(struct arcDisState
* state
,
447 const char * instrName
,
449 int condCodeIsPartOfName
,
455 strcpy (state
->instrBuffer
, instrName
);
461 if (!condCodeIsPartOfName
)
462 strcat (state
->instrBuffer
, ".");
467 cc
= cond_code_name (state
, cond
);
472 strcat (state
->instrBuffer
, cc
);
476 strcat (state
->instrBuffer
, ".f");
478 switch (state
->nullifyMode
)
481 strcat (state
->instrBuffer
, ".d");
483 case BR_exec_when_jump
:
484 strcat (state
->instrBuffer
, ".jd");
489 strcat (state
->instrBuffer
, ".x");
492 strcat (state
->instrBuffer
, ".a");
495 strcat (state
->instrBuffer
, ".di");
498 #define write_instr_name() \
501 write_instr_name_(state, instrName,cond, condCodeIsPartOfName, \
502 flag, signExtend, addrWriteBack, directMem); \
503 formatString[0] = '\0'; \
509 op_LD0
= 0, op_LD1
= 1, op_ST
= 2, op_3
= 3,
510 op_BC
= 4, op_BLC
= 5, op_LPC
= 6, op_JC
= 7,
511 op_ADD
= 8, op_ADC
= 9, op_SUB
= 10, op_SBC
= 11,
512 op_AND
= 12, op_OR
= 13, op_BIC
= 14, op_XOR
= 15
515 extern disassemble_info tm_print_insn_info
;
518 dsmOneArcInst (bfd_vma addr
, struct arcDisState
* state
)
520 int condCodeIsPartOfName
= 0;
521 a4_decoding_class decodingClass
;
522 const char * instrName
;
536 int addrWriteBack
= 0;
543 char formatString
[60];
545 state
->instructionLen
= 4;
546 state
->nullifyMode
= BR_exec_when_no_jump
;
550 state
->_mem_load
= 0;
551 state
->_ea_present
= 0;
552 state
->_load_len
= 0;
553 state
->ea_reg1
= no_reg
;
554 state
->ea_reg2
= no_reg
;
560 state
->_opcode
= OPCODE (state
->words
[0]);
562 decodingClass
= CLASS_A4_ARITH
; /* default! */
564 condCodeIsPartOfName
=0;
568 state
->flow
= noflow
;
571 if (state
->commentBuffer
)
572 state
->commentBuffer
[0] = '\0';
574 switch (state
->_opcode
)
577 switch (BITS (state
->words
[0],1,2))
581 state
->_load_len
= 4;
585 state
->_load_len
= 1;
589 state
->_load_len
= 2;
592 instrName
= "??? (0[3])";
593 state
->flow
= invalid_instr
;
596 decodingClass
= CLASS_A4_LD0
;
600 if (BIT (state
->words
[0],13))
603 decodingClass
= CLASS_A4_LR
;
607 switch (BITS (state
->words
[0], 10, 11))
611 state
->_load_len
= 4;
615 state
->_load_len
= 1;
619 state
->_load_len
= 2;
622 instrName
= "??? (1[3])";
623 state
->flow
= invalid_instr
;
626 decodingClass
= CLASS_A4_LD1
;
631 if (BIT (state
->words
[0], 25))
634 decodingClass
= CLASS_A4_SR
;
638 switch (BITS (state
->words
[0], 22, 23))
650 instrName
= "??? (2[3])";
651 state
->flow
= invalid_instr
;
654 decodingClass
= CLASS_A4_ST
;
659 decodingClass
= CLASS_A4_OP3_GENERAL
; /* default for opcode 3... */
660 switch (FIELDC (state
->words
[0]))
664 decodingClass
= CLASS_A4_FLAG
;
692 decodingClass
= CLASS_A4_OP3_SUBOPC3F
;
693 switch (FIELDD (state
->words
[0]))
706 state
->flow
=invalid_instr
;
712 /* ARC Extension Library Instructions
713 NOTE: We assume that extension codes are these instrs. */
715 instrName
= instruction_name (state
,
717 FIELDC (state
->words
[0]),
722 state
->flow
= invalid_instr
;
724 if (flags
& IGNORE_FIRST_OPD
)
741 if (BITS (state
->words
[0],9,9))
752 condCodeIsPartOfName
= 1;
753 decodingClass
= ((state
->_opcode
== op_JC
) ? CLASS_A4_JC
: CLASS_A4_BRANCH
);
760 repeatsOp
= (FIELDC (state
->words
[0]) == FIELDB (state
->words
[0]));
762 switch (state
->_opcode
)
765 instrName
= (repeatsOp
? "asl" : "add");
768 instrName
= (repeatsOp
? "rlc" : "adc");
771 instrName
= (repeatsOp
? "mov" : "and");
776 case op_SUB
: instrName
= "sub";
778 case op_SBC
: instrName
= "sbc";
780 case op_OR
: instrName
= "or";
782 case op_BIC
: instrName
= "bic";
786 if (state
->words
[0] == 0x7fffffff)
788 /* NOP encoded as xor -1, -1, -1. */
790 decodingClass
= CLASS_A4_OP3_SUBOPC3F
;
797 instrName
= instruction_name (state
,state
->_opcode
,0,&flags
);
798 /* if (instrName) printf("FLAGS=0x%x\n", flags); */
802 state
->flow
=invalid_instr
;
804 if (flags
& IGNORE_FIRST_OPD
)
809 fieldAisReg
= fieldBisReg
= fieldCisReg
= 1; /* Assume regs for now. */
810 flag
= cond
= is_shimm
= is_limm
= 0;
811 state
->nullifyMode
= BR_exec_when_no_jump
; /* 0 */
812 signExtend
= addrWriteBack
= directMem
= 0;
815 switch (decodingClass
)
822 CHECK_FLAG_COND_NULLIFY ();
828 WRITE_FORMAT_COMMA_x (B
);
830 WRITE_FORMAT_COMMA_x (C
);
831 WRITE_NOP_COMMENT ();
832 arc_sprintf (state
, state
->operandBuffer
, formatString
,
833 fieldA
, fieldB
, fieldC
);
839 WRITE_FORMAT_COMMA_x (C
);
840 arc_sprintf (state
, state
->operandBuffer
, formatString
,
846 case CLASS_A4_OP3_GENERAL
:
849 CHECK_FLAG_COND_NULLIFY ();
855 WRITE_FORMAT_COMMA_x (B
);
856 WRITE_NOP_COMMENT ();
857 arc_sprintf (state
, state
->operandBuffer
, formatString
,
863 arc_sprintf (state
, state
->operandBuffer
, formatString
, fieldB
);
870 CHECK_FLAG_COND_NULLIFY ();
871 flag
= 0; /* This is the FLAG instruction -- it's redundant. */
875 arc_sprintf (state
, state
->operandBuffer
, formatString
, fieldB
);
879 case CLASS_A4_BRANCH
:
880 fieldA
= BITS (state
->words
[0],7,26) << 2;
881 fieldA
= (fieldA
<< 10) >> 10; /* Make it signed. */
883 CHECK_FLAG_COND_NULLIFY ();
887 /* This address could be a label we know. Convert it. */
888 if (state
->_opcode
!= op_LPC
/* LP */)
890 add_target (fieldA
); /* For debugger. */
891 state
->flow
= state
->_opcode
== op_BLC
/* BL */
894 /* indirect calls are achieved by "lr blink,[status];
895 lr dest<- func addr; j [dest]" */
898 strcat (formatString
, "%s"); /* Address/label name. */
899 arc_sprintf (state
, state
->operandBuffer
, formatString
,
900 post_address (state
, fieldA
));
905 /* For op_JC -- jump to address specified.
906 Also covers jump and link--bit 9 of the instr. word
907 selects whether linked, thus "is_linked" is set above. */
910 CHECK_FLAG_COND_NULLIFY ();
915 fieldA
= (fieldB
>> 25) & 0x7F; /* Flags. */
916 fieldB
= (fieldB
& 0xFFFFFF) << 2;
917 state
->flow
= is_linked
? direct_call
: direct_jump
;
919 /* Screwy JLcc requires .jd mode to execute correctly
920 but we pretend it is .nd (no delay slot). */
921 if (is_linked
&& state
->nullifyMode
== BR_exec_when_jump
)
922 state
->nullifyMode
= BR_exec_when_no_jump
;
926 state
->flow
= is_linked
? indirect_call
: indirect_jump
;
927 /* We should also treat this as indirect call if NOT linked
928 but the preceding instruction was a "lr blink,[status]"
929 and we have a delay slot with "add blink,blink,2".
930 For now we can't detect such. */
931 state
->register_for_indirect_jump
= fieldB
;
935 strcat (formatString
,
936 IS_REG (B
) ? "[%r]" : "%s"); /* Address/label name. */
940 WRITE_FORMAT_COMMA_x (A
);
943 arc_sprintf (state
, state
->operandBuffer
, formatString
, fieldB
, fieldA
);
945 arc_sprintf (state
, state
->operandBuffer
, formatString
,
946 post_address (state
, fieldB
), fieldA
);
952 B and C can be regs, or one (both?) can be limm. */
957 printf ("5:b reg %d %d c reg %d %d \n",
958 fieldBisReg
,fieldB
,fieldCisReg
,fieldC
);
960 state
->_ea_present
= 1;
962 state
->ea_reg1
= fieldB
;
964 state
->_offset
+= fieldB
;
966 state
->ea_reg2
= fieldC
;
968 state
->_offset
+= fieldC
;
969 state
->_mem_load
= 1;
971 directMem
= BIT (state
->words
[0], 5);
972 addrWriteBack
= BIT (state
->words
[0], 3);
973 signExtend
= BIT (state
->words
[0], 0);
976 WRITE_FORMAT_x_COMMA_LB(A
);
977 if (fieldBisReg
|| fieldB
!= 0)
978 WRITE_FORMAT_x_COMMA (B
);
982 WRITE_FORMAT_x_RB (C
);
983 arc_sprintf (state
, state
->operandBuffer
, formatString
,
984 fieldA
, fieldB
, fieldC
);
989 /* LD instruction. */
992 fieldC
= FIELDD (state
->words
[0]);
995 printf ("6:b reg %d %d c 0x%x \n",
996 fieldBisReg
, fieldB
, fieldC
);
997 state
->_ea_present
= 1;
998 state
->_offset
= fieldC
;
999 state
->_mem_load
= 1;
1001 state
->ea_reg1
= fieldB
;
1002 /* Field B is either a shimm (same as fieldC) or limm (different!)
1003 Say ea is not present, so only one of us will do the name lookup. */
1005 state
->_offset
+= fieldB
, state
->_ea_present
= 0;
1007 directMem
= BIT (state
->words
[0],14);
1008 addrWriteBack
= BIT (state
->words
[0],12);
1009 signExtend
= BIT (state
->words
[0],9);
1011 write_instr_name ();
1012 WRITE_FORMAT_x_COMMA_LB (A
);
1015 fieldB
= state
->_offset
;
1016 WRITE_FORMAT_x_RB (B
);
1021 if (fieldC
!= 0 && !BIT (state
->words
[0],13))
1024 WRITE_FORMAT_COMMA_x_RB (C
);
1029 arc_sprintf (state
, state
->operandBuffer
, formatString
,
1030 fieldA
, fieldB
, fieldC
);
1035 /* ST instruction. */
1038 fieldA
= FIELDD(state
->words
[0]); /* shimm */
1041 if (dbg
) printf("7:b reg %d %x off %x\n",
1042 fieldBisReg
,fieldB
,fieldA
);
1043 state
->_ea_present
= 1;
1044 state
->_offset
= fieldA
;
1046 state
->ea_reg1
= fieldB
;
1047 /* Field B is either a shimm (same as fieldA) or limm (different!)
1048 Say ea is not present, so only one of us will do the name lookup.
1049 (for is_limm we do the name translation here). */
1051 state
->_offset
+= fieldB
, state
->_ea_present
= 0;
1053 directMem
= BIT (state
->words
[0], 26);
1054 addrWriteBack
= BIT (state
->words
[0], 24);
1056 write_instr_name ();
1057 WRITE_FORMAT_x_COMMA_LB(C
);
1061 fieldB
= state
->_offset
;
1062 WRITE_FORMAT_x_RB (B
);
1067 if (fieldBisReg
&& fieldA
!= 0)
1070 WRITE_FORMAT_COMMA_x_RB(A
);
1075 arc_sprintf (state
, state
->operandBuffer
, formatString
,
1076 fieldC
, fieldB
, fieldA
);
1077 write_comments2 (fieldA
);
1081 /* SR instruction */
1085 write_instr_name ();
1086 WRITE_FORMAT_x_COMMA_LB(C
);
1087 /* Try to print B as an aux reg if it is not a core reg. */
1091 arc_sprintf (state
, state
->operandBuffer
, formatString
, fieldC
, fieldB
);
1095 case CLASS_A4_OP3_SUBOPC3F
:
1096 write_instr_name ();
1097 state
->operandBuffer
[0] = '\0';
1101 /* LR instruction */
1105 write_instr_name ();
1106 WRITE_FORMAT_x_COMMA_LB (A
);
1107 /* Try to print B as an aux reg if it is not a core reg. */
1111 arc_sprintf (state
, state
->operandBuffer
, formatString
, fieldA
, fieldB
);
1116 mwerror (state
, "Bad decoding class in ARC disassembler");
1120 state
->_cond
= cond
;
1121 return state
->instructionLen
= offset
;
1125 /* Returns the name the user specified core extension register. */
1128 _coreRegName(void * arg ATTRIBUTE_UNUSED
, int regval
)
1130 return arcExtMap_coreRegName (regval
);
1133 /* Returns the name the user specified AUX extension register. */
1136 _auxRegName(void *_this ATTRIBUTE_UNUSED
, int regval
)
1138 return arcExtMap_auxRegName(regval
);
1141 /* Returns the name the user specified condition code name. */
1144 _condCodeName(void *_this ATTRIBUTE_UNUSED
, int regval
)
1146 return arcExtMap_condCodeName(regval
);
1149 /* Returns the name the user specified extension instruction. */
1152 _instName (void *_this ATTRIBUTE_UNUSED
, int majop
, int minop
, int *flags
)
1154 return arcExtMap_instName(majop
, minop
, flags
);
1157 /* Decode an instruction returning the size of the instruction
1158 in bytes or zero if unrecognized. */
1161 decodeInstr (bfd_vma address
, /* Address of this instruction. */
1162 disassemble_info
* info
)
1166 struct arcDisState s
; /* ARC Disassembler state. */
1167 void *stream
= info
->stream
; /* Output stream. */
1168 fprintf_ftype func
= info
->fprintf_func
;
1170 memset (&s
, 0, sizeof(struct arcDisState
));
1172 /* read first instruction */
1173 status
= (*info
->read_memory_func
) (address
, buffer
, 4, info
);
1176 (*info
->memory_error_func
) (status
, address
, info
);
1179 if (info
->endian
== BFD_ENDIAN_LITTLE
)
1180 s
.words
[0] = bfd_getl32(buffer
);
1182 s
.words
[0] = bfd_getb32(buffer
);
1183 /* Always read second word in case of limm. */
1185 /* We ignore the result since last insn may not have a limm. */
1186 status
= (*info
->read_memory_func
) (address
+ 4, buffer
, 4, info
);
1187 if (info
->endian
== BFD_ENDIAN_LITTLE
)
1188 s
.words
[1] = bfd_getl32(buffer
);
1190 s
.words
[1] = bfd_getb32(buffer
);
1193 s
.coreRegName
= _coreRegName
;
1194 s
.auxRegName
= _auxRegName
;
1195 s
.condCodeName
= _condCodeName
;
1196 s
.instName
= _instName
;
1199 dsmOneArcInst (address
, & s
);
1201 /* Display the disassembly instruction. */
1202 (*func
) (stream
, "%08lx ", s
.words
[0]);
1203 (*func
) (stream
, " ");
1204 (*func
) (stream
, "%-10s ", s
.instrBuffer
);
1206 if (__TRANSLATION_REQUIRED (s
))
1208 bfd_vma addr
= s
.addresses
[s
.operandBuffer
[1] - '0'];
1210 (*info
->print_address_func
) ((bfd_vma
) addr
, info
);
1211 (*func
) (stream
, "\n");
1214 (*func
) (stream
, "%s",s
.operandBuffer
);
1216 return s
.instructionLen
;
1219 /* Return the print_insn function to use.
1220 Side effect: load (possibly empty) extension section */
1223 arc_get_disassembler (void *ptr
)
1226 build_ARC_extmap ((struct bfd
*) ptr
);