X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic16%2Fgen.c;h=fd084f76ef22d8e95ebc9f93d779fe33c725df40;hb=88148f76f1aaebb5722c83055ddb94714b174082;hp=3648a37c17e05eec45e7638e5d4e12e98a1d5fd1;hpb=ab0bc49797431b2747b7e5e37cfb89f8c0dad332;p=fw%2Fsdcc diff --git a/src/pic16/gen.c b/src/pic16/gen.c index 3648a37c..fd084f76 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -11977,7 +11977,7 @@ static void genNearPointerSet (operand *right, DEBUGpic16_emitcode ("; ***","%s %d",__FUNCTION__,__LINE__); while (size--) { - if (AOP_TYPE(right) == AOP_LIT) { + if (is_LitOp(right)) { pic16_emitpcode(POC_MOVLW, pic16_popGet(AOP(right),offset)); if (size) { pic16_emitpcode(POC_MOVWF,pic16_popCopyReg(&pic16_pc_postinc0));