Move irq rel flag to setting bit 4 instead of bit 5

This commit is contained in:
Tristan Miller 2021-01-25 04:10:32 -07:00 committed by Graham Sanderson
parent da22bf95de
commit 7b97967fe4

View File

@ -304,7 +304,7 @@ raw_encoding instr_wait::raw_encode(const program &program) {
raw_encoding instr_irq::raw_encode(const program &program) {
uint arg2 = num->resolve(program);
if (arg2 > 7) throw syntax_error(num->location, "irq number must be must be >= 0 and <= 7");
if (relative) arg2 |= 0x20u;
if (relative) arg2 |= 0x10u;
return {inst_type::irq, (uint)modifiers, arg2};
}