mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Move irq rel flag to setting bit 4 instead of bit 5
This commit is contained in:
parent
da22bf95de
commit
7b97967fe4
1 changed files with 1 additions and 1 deletions
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue