pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

PIOasm disasm comment wrong

Open NollKollTroll opened this issue 1 year ago • 0 comments

When compiling the following test-code:

.program test
.fifo txput
.wrap_target
    mov  rxfifo[0], ISR
    mov  rxfifo[1], ISR
    mov  rxfifo[2], ISR
    mov  rxfifo[3], ISR
    mov  rxfifo[Y], ISR
.wrap

I seem to get a correct binary according to the documentation. Sadly the disasm comments are wrong, swapping indexed and Y-mode:

static const uint16_t test_program_instructions[] = {
            //     .wrap_target
    0x8018, //  0: mov    rxfifo[y], isr             
    0x8019, //  1: mov    rxfifo[y], isr             
    0x801a, //  2: mov    rxfifo[y], isr             
    0x801b, //  3: mov    rxfifo[y], isr             
    0x8010, //  4: mov    rxfifo[0], isr             
            //     .wrap
};

I tried very hard to use code-blocks in this text, but the line-endings failed hard in the preview whatever I tried.

NollKollTroll avatar Sep 29 '24 07:09 NollKollTroll