Ejemplo n.º 1
0
// VC++ inline asm doesn't support D[BWDQ] directives after the __asm
// keyword.  But it can emit constant bytes using "_emit" keyword.
void SourceAssembler::emit_byte(const Constant& cst) {
  int imm = cst.immediate();
  if (GenerateInlineAsm)
    emit("\t__asm _emit 0x%02x\n", imm);
  else if (GenerateGNUCode)
    emit("\t.byte \t0x%02x\n", imm);
  else
    emit("\tdb %d\t\n", imm);
}