mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove redundant 0xC7 masking for RST values (the parser handles it)
This commit is contained in:
@@ -590,9 +590,6 @@ void Expression::makeCheckRST() {
|
|||||||
} else if (int32_t val = value(); val & ~0x38) {
|
} else if (int32_t val = value(); val & ~0x38) {
|
||||||
// A valid RST address must be masked with 0x38
|
// A valid RST address must be masked with 0x38
|
||||||
error("Invalid address $%" PRIx32 " for RST\n", val);
|
error("Invalid address $%" PRIx32 " for RST\n", val);
|
||||||
} else {
|
|
||||||
// The target is in the "0x38" bits, all other bits are set
|
|
||||||
data = val | 0xC7;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user