X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCpeeph.c;h=dfd7d84cd3372d46ed12da9582c7ee56fdc53d68;hb=8fca63fbcde6e36936906190fa8e41f072a69e34;hp=e1c68e8be00669c8b295b75e10d4b3694a20e824;hpb=9f27173cb8b5814d638e82497ae1e303a7194b35;p=fw%2Fsdcc diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index e1c68e8b..dfd7d84c 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -114,6 +114,14 @@ FBYNAME (flat24bitMode) return (options.model == MODEL_FLAT24); } +/*-----------------------------------------------------------------*/ +/* xramMovcOption - check if using movc to read xram */ +/*-----------------------------------------------------------------*/ +FBYNAME (xramMovcOption) +{ + return (options.xram_movc && (strcmp(port->target,"mcs51") == 0)); +} + /*-----------------------------------------------------------------*/ /* labelInRange - will check to see if label %5 is within range */ /*-----------------------------------------------------------------*/ @@ -266,6 +274,10 @@ callFuncByName (char *fname, "24bitMode", flat24bitMode } , + { + "xramMovcOption", xramMovcOption + } + , { "labelRefCount", labelRefCount }