Simplify out_PCRelByte by using PC

This commit is contained in:
ISSOtm
2020-03-20 20:22:19 +01:00
parent 5a0fcda4c8
commit af22cf182b

View File

@@ -405,7 +405,7 @@ void out_PCRelByte(struct Expression *expr)
nPC++;
} else {
/* Target is relative to the byte *after* the operand */
uint16_t address = pCurrentSection->nOrg + nPC + 1;
uint16_t address = sym_GetValue(pPCSymbol) + 1;
/* The offset wraps (jump from ROM to HRAM, for loopexample) */
int16_t offset = expr->nVal - address;