Lines Matching refs:cp

368 #define dasmb(x)	*cp++ = (unsigned char)(x)
374 do { *((unaligned_short *)cp) = (unsigned short)(x); cp+=2; } while (0)
376 do { *((unaligned_int *)cp) = (unsigned int)(x); cp+=4; } while (0)
378 do { *((unaligned_long_long *)cp) = (unsigned long long)(x); cp+=8; } while (0)
384 static unsigned char *dasma_(unsigned char *cp, ptrdiff_t x) in dasma_() argument
390 return cp; in dasma_()
392 #define dasma(x) (cp = dasma_(cp, (x)))
399 unsigned char *cp = base; in dasm_encode() local
415 *cp++ = action; in dasm_encode()
423 while (((cp-base) & n)) *cp++ = 0x90; /* nop */ in dasm_encode()
425 case DASM_EXTERN: n = DASM_EXTERN(Dst, cp, p[1], *p); p += 2; goto wd; in dasm_encode()
426 case DASM_MARK: mark = cp; continue; in dasm_encode()
427 case DASM_ESC: action = *p++; *cp++ = action; continue; in dasm_encode()
433 case DASM_DISP: if (!mark) mark = cp; { in dasm_encode()
443 db: if (!mark) mark = cp; mark[-2] += 2; mark = NULL; goto wb; in dasm_encode()
452 unsigned char *ex = cp - (t&7); in dasm_encode()
460 while (++ex < cp) ex[-1] = *ex; in dasm_encode()
462 cp--; in dasm_encode()
467 else if (n == 4 && t < 0x20) { cp[-1] ^= n; *cp++ = 0x20; } in dasm_encode()
468 cp[-1] ^= n; in dasm_encode()
475 n -= (unsigned int)(ptrdiff_t)(cp+4); goto wd; /* !x64 */ in dasm_encode()
479 n = *pb - ((int)(cp-base) + 4-shrink); in dasm_encode()
481 if (shrink == 4) { cp--; cp[-1] = *cp-0x10; } else cp[-1] = 0xeb; in dasm_encode()
500 case DASM_SPACE: { int fill = *p++; while (n--) *cp++ = fill; break; } in dasm_encode()
507 if (base + D->codesize != cp) /* Check for phase errors. */ in dasm_encode()