X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=inline;f=src%2Fpic16%2Fgen.h;h=4dbf236590ba48a89efe201b9897d1abb94177d9;hb=fa322bf95734dde3e231b80bb083458459892eb2;hp=9f2d60597fe86cf1bed0a9ed3323b640ec7a5c8f;hpb=4010ec16975ed368963fc9f5bb689f1dbe4c23c4;p=fw%2Fsdcc diff --git a/src/pic16/gen.h b/src/pic16/gen.h index 9f2d6059..4dbf2365 100644 --- a/src/pic16/gen.h +++ b/src/pic16/gen.h @@ -156,7 +156,8 @@ extern unsigned pic16_fReturnSizePic; #define emitTOGC pic16_emitpcode(POC_BTG, pic16_popCopyGPR2Bit(PCOP(&pic16_pc_status),PIC_C_BIT)) int pic16_getDataSize(operand *op); -void pic16_emitpcode(PIC_OPCODE poc, pCodeOp *pcop); +void pic16_emitpcode_real(PIC_OPCODE poc, pCodeOp *pcop); +#define pic16_emitpcode(poc,pcop) do { if (pic16_pcode_verbose) pic16_emitpcomment ("%s:%u(%s):", __FILE__, __LINE__, __FUNCTION__); pic16_emitpcode_real(poc,pcop); } while(0) void pic16_emitpLabel(int key); void pic16_emitcode (char *inst,char *fmt, ...); void DEBUGpic16_emitcode (char *inst,char *fmt, ...); @@ -180,7 +181,7 @@ void pic16_genLeftShiftLiteral (operand *left, operand *right, operand *result, pCodeOp *pic16_popGet2p(pCodeOp *src, pCodeOp *dst); void pic16_emitpcomment (char *fmt, ...); -pCodeOp *pic16_popGetLabel(unsigned int key); +pCodeOp *pic16_popGetLabel(int key); pCodeOp *pic16_popCopyReg(pCodeOpReg *pc); pCodeOp *pic16_popCopyGPR2Bit(pCodeOp *pc, int bitval); pCodeOp *pic16_popGetLit(int lit);