add jmp page crossing to --relax-checks, document it, fix --relax-checks documentation (segment branch error is not suppressed)

This commit is contained in:
bbbradsmith
2023-08-19 15:39:51 -04:00
parent f31d8efc1e
commit 28ffe2f59b
2 changed files with 9 additions and 6 deletions

View File

@@ -1618,7 +1618,7 @@ static void PutJMP (const InsDesc* Ins)
if (EvalEA (Ins, &A)) {
/* Check for indirect addressing */
if ((A.AddrModeBit & AM65_ABS_IND) && (CPU < CPU_65SC02)) {
if ((A.AddrModeBit & AM65_ABS_IND) && (CPU < CPU_65SC02) && (RelaxChecks == 0)) {
/* Compare the low byte of the expression to 0xFF to check for
** a page cross. Be sure to use a copy of the expression otherwise