mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 21:32:19 +00:00
ca65 jmp (abs) wrap warning only applies to 6502, later CPUs do not have this bug
This commit is contained in:
parent
c226e58a3c
commit
016b03e356
@ -1617,11 +1617,12 @@ static void PutJMP (const InsDesc* Ins)
|
||||
if (EvalEA (Ins, &A)) {
|
||||
|
||||
/* Check for indirect addressing */
|
||||
if (A.AddrModeBit & AM65_ABS_IND) {
|
||||
if (A.AddrModeBit & AM65_ABS_IND && CPU < CPU_65SC02) {
|
||||
|
||||
/* 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
|
||||
** things will go weird later.
|
||||
** things will go weird later. This only affects the 6502 CPU,
|
||||
** and was corrected in 65C02 and later CPUs in this family.
|
||||
*/
|
||||
ExprNode* E = GenNE (GenByteExpr (CloneExpr (A.Expr)), 0xFF);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user