Lines Matching refs:the_ins

413 static struct m68k_it the_ins;	/* The instruction being assembled.  */  variable
421 #define addword(w) (the_ins.opcode[the_ins.numo++] = (w))
429 for (z = the_ins.numo; z > opcode->m_codenum; --z) in insop()
430 the_ins.opcode[z] = the_ins.opcode[z - 1]; in insop()
431 for (z = 0; z < the_ins.nrel; z++) in insop()
432 the_ins.reloc[z].n += 2; in insop()
433 for (z = 0; z < the_ins.nfrag; z++) in insop()
434 the_ins.fragb[z].fragoff++; in insop()
435 the_ins.opcode[opcode->m_codenum] = w; in insop()
436 the_ins.numo++; in insop()
444 the_ins.reloc[the_ins.nrel].n = (width == 'B' || width == '3' in add_fix()
445 ? the_ins.numo * 2 - 1 in add_fix()
447 ? the_ins.numo * 2 + 1 in add_fix()
448 : the_ins.numo * 2)); in add_fix()
449 the_ins.reloc[the_ins.nrel].exp = exp->exp; in add_fix()
450 the_ins.reloc[the_ins.nrel].wid = width; in add_fix()
451 the_ins.reloc[the_ins.nrel].pcrel_fix = pc_fix; in add_fix()
453 the_ins.reloc[the_ins.nrel].pic_reloc = exp->pic_reloc; in add_fix()
455 the_ins.reloc[the_ins.nrel++].pcrel = pc_rel; in add_fix()
471 the_ins.fragb[the_ins.nfrag].fragoff = the_ins.numo; in add_frag()
472 the_ins.fragb[the_ins.nfrag].fadd = add; in add_frag()
473 the_ins.fragb[the_ins.nfrag].foff = off; in add_frag()
474 the_ins.fragb[the_ins.nfrag++].fragty = type; in add_frag()
1429 the_ins.error = _("No operator"); in m68k_ip()
1459 the_ins.error = _("Unknown operator"); in m68k_ip()
1485 the_ins.args = opcode->m_operands; in m68k_ip()
1486 the_ins.numargs = opcode->m_opnum; in m68k_ip()
1487 the_ins.numo = opcode->m_codenum; in m68k_ip()
1488 the_ins.opcode[0] = getone (opcode); in m68k_ip()
1489 the_ins.opcode[1] = gettwo (opcode); in m68k_ip()
1493 for (opP = &the_ins.operands[0]; *p; opP++) in m68k_ip()
1499 the_ins.error = opP->error; in m68k_ip()
1504 opsfound = opP - &the_ins.operands[0]; in m68k_ip()
1513 the_ins.operands[n] = the_ins.operands[n - 1]; in m68k_ip()
1515 memset (&the_ins.operands[0], '\0', sizeof (the_ins.operands[0])); in m68k_ip()
1516 the_ins.operands[0].mode = CONTROL; in m68k_ip()
1517 the_ins.operands[0].reg = m68k_float_copnum; in m68k_ip()
1539 operands_backup[i] = the_ins.operands[i]; in m68k_ip()
2335 the_ins.operands[i] = operands_backup[i]; in m68k_ip()
2355 the_ins.error = buf; in m68k_ip()
2453 the_ins.error = _("operands mismatch"); in m68k_ip()
2461 the_ins.args = opcode->m_operands; in m68k_ip()
2462 the_ins.numargs = opcode->m_opnum; in m68k_ip()
2463 the_ins.numo = opcode->m_codenum; in m68k_ip()
2464 the_ins.opcode[0] = getone (opcode); in m68k_ip()
2465 the_ins.opcode[1] = gettwo (opcode); in m68k_ip()
2467 for (s = the_ins.args, opP = &the_ins.operands[0]; *s; s += 2, opP++) in m68k_ip()
3078 the_ins.reloc[the_ins.nrel - 1].n = in m68k_ip()
3084 the_ins.opcode[the_ins.numo - 1] |= tmpreg & 0xff; in m68k_ip()
3086 the_ins.reloc[the_ins.nrel - 1].n = opcode->m_codenum * 2 - 1; in m68k_ip()
3093 the_ins.reloc[the_ins.nrel - 1].n = (opcode->m_codenum) * 2; in m68k_ip()
3100 the_ins.reloc[the_ins.nrel - 1].n = (opcode->m_codenum) * 2; in m68k_ip()
3108 the_ins.reloc[the_ins.nrel - 1].n = (opcode->m_codenum) * 2; in m68k_ip()
3143 the_ins.opcode[0] |= 0xff; in m68k_ip()
3180 if (the_ins.opcode[0] == 0x6000) /* jbra */ in m68k_ip()
3181 the_ins.opcode[0] = 0x4EF9; in m68k_ip()
3182 else if (the_ins.opcode[0] == 0x6100) /* jbsr */ in m68k_ip()
3183 the_ins.opcode[0] = 0x4EB9; in m68k_ip()
3186 the_ins.opcode[0] ^= 0x0100; in m68k_ip()
3187 the_ins.opcode[0] |= 0x0006; in m68k_ip()
3205 if ((the_ins.opcode[0] == 0x6000) in m68k_ip()
3206 || (the_ins.opcode[0] == 0x6100)) in m68k_ip()
3227 if (((the_ins.opcode[0] & 0xf0f8) == 0x50c8) in m68k_ip()
3253 the_ins.opcode[the_ins.numo - 1] |= 0x40; in m68k_ip()
3794 the_ins.opcode[0] |= val & 0xFF; /* JF FF is for M kludge. */ in install_operand()
3797 the_ins.opcode[0] |= val << 9; in install_operand()
3800 the_ins.opcode[1] |= val << 9; in install_operand()
3803 the_ins.opcode[1] |= val << 12; in install_operand()
3806 the_ins.opcode[1] |= val << 6; in install_operand()
3809 the_ins.opcode[1] |= val; in install_operand()
3812 the_ins.opcode[2] |= val << 12; in install_operand()
3815 the_ins.opcode[2] |= val << 6; in install_operand()
3820 the_ins.numo++; in install_operand()
3821 the_ins.opcode[2] |= val; in install_operand()
3824 the_ins.opcode[1] |= val << 7; in install_operand()
3827 the_ins.opcode[1] |= val << 10; in install_operand()
3831 the_ins.opcode[1] |= val << 5; in install_operand()
3836 the_ins.opcode[1] |= (val << 10) | (val << 7); in install_operand()
3839 the_ins.opcode[1] |= (val << 12) | val; in install_operand()
3842 the_ins.opcode[0] |= val = 0xff; in install_operand()
3845 the_ins.opcode[0] |= val << 9; in install_operand()
3848 the_ins.opcode[1] |= val; in install_operand()
3851 the_ins.opcode[1] |= val; in install_operand()
3852 the_ins.numo++; /* What a hack. */ in install_operand()
3855 the_ins.opcode[1] |= val << 4; in install_operand()
3863 the_ins.opcode[0] |= (val << 6); in install_operand()
3866 the_ins.opcode[1] = (val >> 16); in install_operand()
3867 the_ins.opcode[2] = val & 0xffff; in install_operand()
3870 the_ins.opcode[0] |= ((val & 0x8) << (6 - 3)); in install_operand()
3871 the_ins.opcode[0] |= ((val & 0x7) << 9); in install_operand()
3872 the_ins.opcode[1] |= ((val & 0x10) << (7 - 4)); in install_operand()
3875 the_ins.opcode[0] |= ((val & 0x8) << (6 - 3)); in install_operand()
3876 the_ins.opcode[0] |= ((val & 0x7) << 9); in install_operand()
3877 the_ins.opcode[1] |= ((val & 0x10) << (7 - 4)); in install_operand()
3880 the_ins.opcode[1] |= val << 12; in install_operand()
3881 the_ins.opcode[1] |= ((val & 0x10) << (7 - 4)); in install_operand()
3884 the_ins.opcode[0] |= (val & 0xF); in install_operand()
3885 the_ins.opcode[1] |= ((val & 0x10) << (6 - 4)); in install_operand()
3888 the_ins.opcode[1] |= (val & 0xF); in install_operand()
3889 the_ins.opcode[1] |= ((val & 0x10) << (6 - 4)); in install_operand()
3892 the_ins.opcode[1] |= ((val != 1) << 10); in install_operand()
3895 the_ins.opcode[0] |= ((val & 0x3) << 9); in install_operand()
3898 the_ins.opcode[0] |= ((val & 0x3) << 0); in install_operand()
3901 the_ins.opcode[0] |= ((~val & 0x1) << 7); in install_operand()
3902 the_ins.opcode[1] |= ((val & 0x2) << (4 - 1)); in install_operand()
3905 the_ins.opcode[0] |= ((val & 0x1) << 7); in install_operand()
3906 the_ins.opcode[1] |= ((val & 0x2) << (4 - 1)); in install_operand()
3909 the_ins.opcode[1] |= ((val & 0x3) << 9); in install_operand()
3912 the_ins.opcode[0] |= (val & 0x1) <<10; in install_operand()
3927 the_ins.opcode[0] |= (val & 0x3f); in install_gen_operand()
3928 the_ins.opcode[1] |= (((val & 0x100) >> 8) << 5); in install_gen_operand()
3931 the_ins.opcode[0] |= val; in install_gen_operand()
3935 the_ins.opcode[0] |= (val & 0x07) << 9 | (val & 0x38) << 3; in install_gen_operand()
3944 the_ins.opcode[0] |= val; in install_gen_operand()
4371 memset (&the_ins, '\0', sizeof (the_ins)); in md_assemble()
4373 er = the_ins.error; in md_assemble()
4376 for (n = 0; n < the_ins.numargs; n++) in md_assemble()
4377 if (the_ins.operands[n].error) in md_assemble()
4379 er = the_ins.operands[n].error; in md_assemble()
4401 if (the_ins.nfrag == 0) in md_assemble()
4404 toP = frag_more (2 * the_ins.numo); in md_assemble()
4405 fromP = &the_ins.opcode[0]; in md_assemble()
4406 for (m = the_ins.numo; m; --m) in md_assemble()
4413 for (m = 0; m < the_ins.nrel; m++) in md_assemble()
4415 switch (the_ins.reloc[m].wid) in md_assemble()
4435 the_ins.reloc[m].wid); in md_assemble()
4440 - the_ins.numo * 2 + the_ins.reloc[m].n), in md_assemble()
4442 &the_ins.reloc[m].exp, in md_assemble()
4443 the_ins.reloc[m].pcrel, in md_assemble()
4444 get_reloc_code (n, the_ins.reloc[m].pcrel, in md_assemble()
4445 the_ins.reloc[m].pic_reloc)); in md_assemble()
4446 fixP->fx_pcrel_adjust = the_ins.reloc[m].pcrel_fix; in md_assemble()
4447 if (the_ins.reloc[m].wid == 'B') in md_assemble()
4458 wid = 2 * the_ins.fragb[0].fragoff; in md_assemble()
4459 for (n = 1; n < the_ins.nfrag; n++) in md_assemble()
4460 wid += 2 * (the_ins.numo - the_ins.fragb[n - 1].fragoff); in md_assemble()
4469 for (n = 0, fromP = &the_ins.opcode[0]; n < the_ins.nfrag; n++) in md_assemble()
4474 wid = 2 * the_ins.fragb[n].fragoff; in md_assemble()
4476 wid = 2 * (the_ins.numo - the_ins.fragb[n - 1].fragoff); in md_assemble()
4487 for (m = 0; m < the_ins.nrel; m++) in md_assemble()
4489 if ((the_ins.reloc[m].n) >= 2 * shorts_this_frag) in md_assemble()
4491 the_ins.reloc[m].n -= 2 * shorts_this_frag; in md_assemble()
4494 wid = the_ins.reloc[m].wid; in md_assemble()
4497 the_ins.reloc[m].wid = 0; in md_assemble()
4502 - the_ins.numo * 2 + the_ins.reloc[m].n), in md_assemble()
4504 &the_ins.reloc[m].exp, in md_assemble()
4505 the_ins.reloc[m].pcrel, in md_assemble()
4506 get_reloc_code (wid, the_ins.reloc[m].pcrel, in md_assemble()
4507 the_ins.reloc[m].pic_reloc)); in md_assemble()
4508 fixP->fx_pcrel_adjust = the_ins.reloc[m].pcrel_fix; in md_assemble()
4511 (relax_substateT) (the_ins.fragb[n].fragty), in md_assemble()
4512 the_ins.fragb[n].fadd, the_ins.fragb[n].foff, to_beg_P); in md_assemble()
4514 gas_assert (the_ins.nfrag >= 1); in md_assemble()
4515 n = the_ins.numo - the_ins.fragb[the_ins.nfrag - 1].fragoff; in md_assemble()
4528 for (m = 0; m < the_ins.nrel; m++) in md_assemble()
4532 wid = the_ins.reloc[m].wid; in md_assemble()
4535 the_ins.reloc[m].wid = 0; in md_assemble()
4539 ((the_ins.reloc[m].n + toP - frag_now->fr_literal) in md_assemble()
4542 &the_ins.reloc[m].exp, in md_assemble()
4543 the_ins.reloc[m].pcrel, in md_assemble()
4544 get_reloc_code (wid, the_ins.reloc[m].pcrel, in md_assemble()
4545 the_ins.reloc[m].pic_reloc)); in md_assemble()
4546 fixP->fx_pcrel_adjust = the_ins.reloc[m].pcrel_fix; in md_assemble()
7778 struct m68k_it the_ins; in main() local
7795 memset (&the_ins, '\0', sizeof (the_ins)); in main()
7796 m68k_ip (&the_ins, buf); in main()
7797 if (the_ins.error) in main()
7799 printf (_("Error %s in %s\n"), the_ins.error, buf); in main()
7803 printf (_("Opcode(%d.%s): "), the_ins.numo, the_ins.args); in main()
7804 for (n = 0; n < the_ins.numo; n++) in main()
7805 printf (" 0x%x", the_ins.opcode[n] & 0xffff); in main()
7807 print_the_insn (&the_ins.opcode[0], stdout); in main()
7810 for (n = 0; n < strlen (the_ins.args) / 2; n++) in main()
7812 if (the_ins.operands[n].error) in main()
7814 printf ("op%d Error %s in %s\n", n, the_ins.operands[n].error, buf); in main()
7817 printf ("mode %d, reg %d, ", the_ins.operands[n].mode, in main()
7818 the_ins.operands[n].reg); in main()
7819 if (the_ins.operands[n].b_const) in main()
7821 1 + the_ins.operands[n].e_const - the_ins.operands[n].b_const, in main()
7822 the_ins.operands[n].b_const); in main()
7823 printf ("ireg %d, isiz %d, imul %d, ", the_ins.operands[n].ireg, in main()
7824 the_ins.operands[n].isiz, the_ins.operands[n].imul); in main()
7825 if (the_ins.operands[n].b_iadd) in main()
7827 1 + the_ins.operands[n].e_iadd - the_ins.operands[n].b_iadd, in main()
7828 the_ins.operands[n].b_iadd); in main()