wokwi/rp2040js

IRQ flags not set in the PIO INTR register

urish opened this issue · 0 comments

urish commented

The following test case passes on silicone but fails with the emulator:

  it('should update INTR after executing an `IRQ 2` instruction', async () => {
    await resetStateMachines();
    await cpu.writeUint32(IRQ, 0xff); // Clear all IRQs
    await cpu.writeUint32(SM2_INSTR, pioIRQ(false, false, 0x2));
    expect((await cpu.readUint32(INTR)) & 0xf00).toEqual(1 << 10);
  });