Skip to content

pioasm: please keep the labels #803

Open

Description

@m-u-xyz

pioasm replaces labels with line numbers. This is unfortunate. Please don't do that.

(a) Micropython can deal with textual labels, no problem at all.
(b) For C I'd like to be able to refer to a specific instruction so that I can send a jump command to PIO. Currently I need to look at the generated code and/or count instructions, and woe is me when that location changes.

Activity

  1. lurch commented on May 4, 2022

    @lurch
    Contributor

    Section 3.3.5 of https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf says "A PUBLIC label is exposed to the user code in the same way as a PUBLIC .define."
    Is that what you're looking for, or are you requesting something different?

  2. added this to the back burner milestone on Jul 11, 2022
  3. kilograham commented on Jul 11, 2022

    @kilograham
    Contributor

    This is quite a change to fix... is the PUBLIC not a workaround?

  4. magy00 commented on Mar 12, 2025

    @magy00
    Contributor

    For (a): Maybe just add an option to pioasm to dump all labels/defines and their values (either as text, code, or as comments included in the generated file to stdout, or as additional debug info to stderr).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions