X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmcs51%2Fmain.c;h=2307724fcf8286e9b5d548ca79e0165b520960ba;hb=88911079e8f9eb7fb3dfb08c32e805bb7b5e62c1;hp=c1b18ea0b34b13abacb85fd877a23162dc320b7c;hpb=074adb199c4ec2a893012872d5020427a262f59c;p=fw%2Fsdcc diff --git a/src/mcs51/main.c b/src/mcs51/main.c index c1b18ea0..2307724f 100644 --- a/src/mcs51/main.c +++ b/src/mcs51/main.c @@ -590,7 +590,7 @@ asmLineNodeFromLineNode (lineNode *ln) asmLineNode *aln = newAsmLineNode(); char *op, op1[256], op2[256]; int opsize; - const unsigned char *p; + const char *p; char inst[8]; mcs51opcodedata *opdat; @@ -729,12 +729,15 @@ PORT mcs51_port = _defaultRules, getInstructionSize, getRegsRead, - getRegsWritten + getRegsWritten, + mcs51DeadMove }, { /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */ 1, 2, 2, 4, 1, 2, 3, 1, 4, 4 }, + /* tags for generic pointers */ + { 0x00, 0x40, 0x60, 0x80 }, /* far, near, xstack, code */ { "XSTK (PAG,XDATA)", // xstack_name "STACK (DATA)", // istack_name @@ -752,6 +755,9 @@ PORT mcs51_port = "XISEG (XDATA)", // xidata_name - initialized xdata initialized xdata "XINIT (CODE)", // xinit_name - a code copy of xiseg "CONST (CODE)", // const_name - const data (code or not) + "CABS (ABS,CODE)", // cabs_name - const absolute data (code or not) + "XABS (ABS,XDATA)", // xabs_name - absolute xdata/pdata + "IABS (ABS,DATA)", // iabs_name - absolute idata/data NULL, NULL, 1