Lines Matching refs:ofs
61 int ofs; /* Byte offset into section. */ member
150 D->sections[i].ofs = 0; in dasm_setup()
174 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
192 ofs += 4; in dasm_put()
200 case DASM_ESC: p++; ofs += 4; break; in dasm_put()
202 case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; in dasm_put()
232 b[pos++] = ofs; /* Store pass1 offset estimate. */ in dasm_put()
257 sec->ofs = ofs; in dasm_put()
266 int ofs = 0; in dasm_link() local
303 case DASM_ALIGN: ofs -= (b[pos++] + ofs) & (ins & 255); break; in dasm_link()
305 case DASM_LABEL_LG: case DASM_LABEL_PC: b[pos++] += ofs; break; in dasm_link()
311 ofs += sec->ofs; /* Next section starts right after current section. */ in dasm_link()
314 D->codesize = ofs; /* Total size of all code sections */ in dasm_link()
315 *szp = ofs; in dasm_link()