Shop OBEX P1 Docs P2 Docs Learn Events
same label behavior in assembly — Parallax Forums

same label behavior in assembly

Fred HawkinsFred Hawkins Posts: 997
edited 2007-12-16 21:14 in Propeller 1
Looking at the assembly code·in keyboard.spin, I noticed that the label [noparse]:p[/noparse]ar is used at least three times. I assume that each time it is repeated the compiler just replaces the previous value without changing the already assembled code. Am I correct?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-16 21:14
    Labels that start with a colon ([noparse]:)[/noparse] are local labels, whose scope includes only the code between global (beginning with a letter or underscore) labels.

    -Phil
Sign In or Register to comment.