Remove Zero Page linker patch RPN_PCEZP

This patch isn't used because it's meant to be an optimization for
labels in the memory region 0x2000-0x20FF. That memory region doesn't
have anything special on the Game Boy, and there are no instructions
optimized to read or write from there, so it was probably meant for
another hardware that was supported by ASMotor in the past.

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-02 00:38:09 +01:00
parent 53842cd07d
commit 01a710a47d
3 changed files with 8 additions and 11 deletions

View File

@@ -86,7 +86,10 @@ enum {
RPN_HRAM,
RPN_PCEZP,
/* TODO: This hasn't been removed in order not to break compatibility
* with the existing object files, but it will be removed in a future
* version. */
RPN_unused,
RPN_RANGECHECK,

View File

@@ -44,7 +44,10 @@ enum eRpnData {
RPN_HRAM,
RPN_PCEZP,
/* TODO: This hasn't been removed in order not to break compatibility
* with the existing object files, but it will be removed in a future
* version. */
RPN_unused,
RPN_RANGECHECK,

View File

@@ -175,15 +175,6 @@ calcrpn(struct sPatch * pPatch)
pPatch->pzFilename, pPatch->nLineNo);
}
break;
case RPN_PCEZP:
t = rpnpop();
rpnpush(t & 0xFF);
if (t < 0x2000 || t > 0x20FF) {
errx(1,
"%s(%ld) : Value must be in the ZP area",
pPatch->pzFilename, pPatch->nLineNo);
}
break;
case RPN_CONST:
/* constant */
t = (*rpn++);