X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic16%2Fgenutils.c;h=c4743a581232c71f502e5b336f800cda039a09e9;hb=0e140c69ad2d70806ce52b3cf0517494aeeef5e2;hp=1d25c2c60ca17cbe391a3810a3b015d126b6e742;hpb=a408d9da29a7cd633e158f65770f223a83210a90;p=fw%2Fsdcc diff --git a/src/pic16/genutils.c b/src/pic16/genutils.c index 1d25c2c6..c4743a58 100644 --- a/src/pic16/genutils.c +++ b/src/pic16/genutils.c @@ -317,23 +317,10 @@ void pic16_DumpAop(char *prefix, asmop *aop) DEBUGpic16_emitcode (";", " %s type:AOP_DIR",prefix); DEBUGpic16_emitcode (";", " %s aopu.aop_dir:%s",prefix,aop->aopu.aop_dir); } - if (aop->type == AOP_DPTR) - DEBUGpic16_emitcode (";", " %s type:AOP_DPTR",prefix); - if (aop->type == AOP_DPTR2) - DEBUGpic16_emitcode (";", " %s type:AOP_DPTR2",prefix); - if (aop->type == AOP_R0) - DEBUGpic16_emitcode (";", " %s type:AOP_R0",prefix); - if (aop->type == AOP_R1) - DEBUGpic16_emitcode (";", " %s type:AOP_R1",prefix); if (aop->type == AOP_STK) DEBUGpic16_emitcode (";", " %s type:AOP_STK",prefix); if (aop->type == AOP_STA) DEBUGpic16_emitcode (";", " %s type:AOP_STA",prefix); - if (aop->type == AOP_IMMD) - { - DEBUGpic16_emitcode (";", " %s type:AOP_IMMD",prefix); - DEBUGpic16_emitcode (";", " %s aopu.aop_immd:%s",prefix,aop->aopu.aop_immd); - } if (aop->type == AOP_STR) { DEBUGpic16_emitcode (";", " %s type:AOP_STR",prefix); @@ -620,7 +607,7 @@ int pic16_genCmp_special(operand *left, operand *right, operand *result, tmplbl = newiTempLabel( NULL ); pic16_emitpcode(POC_TSTFSZ, pic16_popGet(AOP(left), 0)); pic16_emitpcode(POC_BRA, pic16_popGetLabel(tmplbl->key)); - pic16_emitpcode(POC_BRA, pic16_popGetLabel(rIfx->lbl->key)); + pic16_emitpcode(POC_GOTO, pic16_popGetLabel(rIfx->lbl->key)); pic16_emitpLabel(tmplbl->key); ifx->generated = 1;