Shop OBEX P1 Docs P2 Docs Learn Events
Basic Assembly Question RE: Mouse.spin — Parallax Forums

Basic Assembly Question RE: Mouse.spin

KEggemeyerKEggemeyer Posts: 3
edited 2007-01-26 17:44 in Propeller 1
I am very new to Assembly (well, programming in general) and decided that dissecting a few programs would help me to learn the language.· Since I plan to use "Mouse.spin" in my program, I started there.· Everything was good, for a few lines at least...

On line #222 where the purpose is to modify the port registers, what is the purpose/affect of "_d1" in that line?· I know that "_d1" is a label (line #360), but I don't understand the affect of putting a label here.··Is this documented somewhere in the "Propeller Manual" or "Exploring the SX" that I've missed?·· smile.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-25 20:10
    "_d1" is just another label ("_" is considered a legitimate alphabetic character). I believe the labels beginning with "_" in mouse.spin and some other programs are used for instruction that are modified by initialization code.
  • KEggemeyerKEggemeyer Posts: 3
    edited 2007-01-26 17:44
    Ooooh... I get it now. Thanks, Mike!
Sign In or Register to comment.