Remove redundant 0xC7 masking for RST values (the parser handles it)

This commit is contained in:
Rangi42
2024-12-23 10:10:01 -05:00
parent b058bb6e15
commit 22838ce2d8

View File

@@ -590,9 +590,6 @@ void Expression::makeCheckRST() {
} else if (int32_t val = value(); val & ~0x38) {
// A valid RST address must be masked with 0x38
error("Invalid address $%" PRIx32 " for RST\n", val);
} else {
// The target is in the "0x38" bits, all other bits are set
data = val | 0xC7;
}
}