Lines Matching refs:cp
367 #define dasmb(x) *cp++ = (unsigned char)(x)
373 do { *((unaligned_short *)cp) = (unsigned short)(x); cp+=2; } while (0)
375 do { *((unaligned_int *)cp) = (unsigned int)(x); cp+=4; } while (0)
377 do { *((unaligned_long_long *)cp) = (unsigned long long)(x); cp+=8; } while (0)
383 static unsigned char *dasma_(unsigned char *cp, ptrdiff_t x) in dasma_() argument
389 return cp; in dasma_()
391 #define dasma(x) (cp = dasma_(cp, (x)))
398 unsigned char *cp = base; in dasm_encode() local
414 case DASM_DISP: if (!mark) mark = cp; { in dasm_encode()
424 db: if (!mark) mark = cp; mark[-2] += 2; mark = NULL; goto wb; in dasm_encode()
433 unsigned char *ex = cp - (t&7); in dasm_encode()
441 while (++ex < cp) ex[-1] = *ex; in dasm_encode()
443 cp--; in dasm_encode()
448 else if (n == 4 && t < 0x20) { cp[-1] ^= n; *cp++ = 0x20; } in dasm_encode()
449 cp[-1] ^= n; in dasm_encode()
456 n -= (unsigned int)(ptrdiff_t)(cp+4); goto wd; /* !x64 */ in dasm_encode()
460 n = *pb - ((int)(cp-base) + 4-shrink); in dasm_encode()
462 if (shrink == 4) { cp--; cp[-1] = *cp-0x10; } else cp[-1] = 0xeb; in dasm_encode()
481 case DASM_SPACE: { int fill = *p++; while (n--) *cp++ = fill; break; } in dasm_encode()
484 while (((cp-base) & n)) *cp++ = 0x90; /* nop */ in dasm_encode()
486 case DASM_EXTERN: n = DASM_EXTERN(Dst, cp, p[1], *p); p += 2; goto wd; in dasm_encode()
487 case DASM_MARK: mark = cp; break; in dasm_encode()
490 default: *cp++ = action; break; in dasm_encode()
498 if (base + D->codesize != cp) /* Check for phase errors. */ in dasm_encode()