Lines Matching refs:rl78_bytes

85 static rl78_bytesT rl78_bytes;  variable
90 rl78_bytes.relax[rl78_bytes.n_relax].type = type; in rl78_relax()
91 rl78_bytes.relax[rl78_bytes.n_relax].field_pos = pos; in rl78_relax()
92 rl78_bytes.relax[rl78_bytes.n_relax].val_ofs = rl78_bytes.n_base + rl78_bytes.n_ops; in rl78_relax()
93 rl78_bytes.n_relax ++; in rl78_relax()
99 rl78_bytes.link_relax |= RL78_RELAXA_ADDR16; in rl78_linkrelax_addr16()
105 rl78_bytes.link_relax |= RL78_RELAXA_BRA; in rl78_linkrelax_branch()
111 rl78_bytes.fixups[rl78_bytes.n_fixups].exp = exp; in rl78_fixup()
112 rl78_bytes.fixups[rl78_bytes.n_fixups].offset = offsetbits; in rl78_fixup()
113 rl78_bytes.fixups[rl78_bytes.n_fixups].nbits = nbits; in rl78_fixup()
114 rl78_bytes.fixups[rl78_bytes.n_fixups].type = type; in rl78_fixup()
115 rl78_bytes.fixups[rl78_bytes.n_fixups].reloc = exp.X_md; in rl78_fixup()
116 rl78_bytes.n_fixups ++; in rl78_fixup()
120 rl78_fixup (exp, offset + 8 * rl78_bytes.n_prefix), nbits, type)
123 rl78_fixup (exp, offset + 8 * (rl78_bytes.n_prefix + rl78_bytes.n_base), nbits, type)
128 rl78_bytes.prefix[0] = p; in rl78_prefix()
129 rl78_bytes.n_prefix = 1; in rl78_prefix()
135 return rl78_bytes.n_prefix; in rl78_has_prefix()
141 rl78_bytes.base[0] = b1; in rl78_base1()
142 rl78_bytes.n_base = 1; in rl78_base1()
148 rl78_bytes.base[0] = b1; in rl78_base2()
149 rl78_bytes.base[1] = b2; in rl78_base2()
150 rl78_bytes.n_base = 2; in rl78_base2()
156 rl78_bytes.base[0] = b1; in rl78_base3()
157 rl78_bytes.base[1] = b2; in rl78_base3()
158 rl78_bytes.base[2] = b3; in rl78_base3()
159 rl78_bytes.n_base = 3; in rl78_base3()
165 rl78_bytes.base[0] = b1; in rl78_base4()
166 rl78_bytes.base[1] = b2; in rl78_base4()
167 rl78_bytes.base[2] = b3; in rl78_base4()
168 rl78_bytes.base[3] = b4; in rl78_base4()
169 rl78_bytes.n_base = 4; in rl78_base4()
185 char * ip = rl78_bytes.ops + rl78_bytes.n_ops; in rl78_op()
192 rl78_bytes.n_ops += 4; in rl78_op()
199 rl78_bytes.ops[rl78_bytes.n_ops++] =v & 0xff; in rl78_op()
220 rl78_op_fixup (exp, rl78_bytes.n_ops * 8, nbytes * 8, type); in rl78_op()
221 memset (rl78_bytes.ops + rl78_bytes.n_ops, 0, nbytes); in rl78_op()
222 rl78_bytes.n_ops += nbytes; in rl78_op()
265 gas_assert (bytep < rl78_bytes.n_base); in rl78_field()
266 rl78_bytes.base[bytep] |= svalm; in rl78_field()
274 gas_assert (bytep < rl78_bytes.n_base); in rl78_field()
275 rl78_bytes.base[bytep] |= valm; in rl78_field()
456 if (rl78_bytes.n_relax || rl78_bytes.link_relax) in rl78_frag_init()
459 memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT)); in rl78_frag_init()
502 if (rl78_bytes.N_B) \
504 memcpy (bytes + idx, rl78_bytes.B, rl78_bytes.N_B); \
505 idx += rl78_bytes.N_B; \
523 memset (& rl78_bytes, 0, sizeof (rl78_bytes)); in md_assemble()
530 if (rl78_bytes.n_relax || rl78_bytes.link_relax) in md_assemble()
532 int olen = rl78_bytes.n_prefix + rl78_bytes.n_base + rl78_bytes.n_ops; in md_assemble()
552 bytes = frag_more (rl78_bytes.n_prefix + rl78_bytes.n_base + rl78_bytes.n_ops); in md_assemble()
560 if (rl78_bytes.link_relax) in md_assemble()
568 rl78_bytes.link_relax | rl78_bytes.n_fixups, in md_assemble()
574 for (i = 0; i < rl78_bytes.n_fixups; i ++) in md_assemble()
587 idx = rl78_bytes.fixups[i].offset / 8; in md_assemble()
588 rel = reloc_map [rl78_bytes.fixups[i].nbits / 8][(int) rl78_bytes.fixups[i].type]; in md_assemble()
590 if (rl78_bytes.fixups[i].reloc) in md_assemble()
591 rel = rl78_bytes.fixups[i].reloc; in md_assemble()
596 exp = & rl78_bytes.fixups[i].exp; in md_assemble()
600 rl78_bytes.fixups[i].nbits / 8, in md_assemble()
602 rl78_bytes.fixups[i].type == RL78REL_PCREL ? 1 : 0, in md_assemble()