diff --git a/gen/asmstmt.cpp b/gen/asmstmt.cpp index 7fe9ea14..43afb613 100644 --- a/gen/asmstmt.cpp +++ b/gen/asmstmt.cpp @@ -255,7 +255,7 @@ AsmStatement::toIR(IRState * irs) return; static std::string i_cns = "i"; - static std::string p_cns = "p"; + static std::string p_cns = "m"; static std::string m_cns = "*m"; static std::string mw_cns = "=*m"; static std::string mrw_cns = "+*m"; diff --git a/gen/d-asm-i386.h b/gen/d-asm-i386.h index cabf144b..44fc5a40 100644 --- a/gen/d-asm-i386.h +++ b/gen/d-asm-i386.h @@ -1907,7 +1907,7 @@ struct AsmProcessor addLabel(lbl->asmLabelNum); } else if ((decl && decl->isCodeseg())) { // if function or label use_star = false; - addOperand("$a", Arg_Pointer, e, asmcode); + addOperand("*$", Arg_Pointer, e, asmcode); } else { if (use_star) { insnTemplate->writebyte('*');