microzig icon indicating copy to clipboard operation
microzig copied to clipboard

Fix deprecated tokenize->tokenizeAny in PIO assembler

Open cortex opened this issue 6 months ago • 0 comments

std.memset.tokenize was deprecated in zig 0.14 https://ziglang.org/download/0.14.0/release-notes.html#List-of-Deprecations

The output when you get a PIO asm compile error still outputs a loot of whitespace before the error, but I'm not sure if something is wrong in the implementation or if this is intended:

/home/cortex/Projects/pixelmatrix/microzig/port/raspberrypi/rp2xxx/src/hal/pio/assembler.zig:129:13: error: failed to assemble PIO code:

                                                                                                                out pins 6 side 0 [1]
                                                                                                                ^
                                                                                                                .side_set directive must be specified for program to use side_set

            @compileError(format_compile_error(d.message.slice(), source, d.index));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cortex avatar Jun 17 '25 00:06 cortex