Shop OBEX P1 Docs P2 Docs Learn Events
labels — Parallax Forums

labels

[Deleted User][Deleted User] Posts: 0
edited 2006-11-20 05:40 in Propeller 1
hi,

what is the differnce ,if any of these to labels ( field·· &··· :nobl , why do some have a colon & some don't)

Thanks Brian



······················· test··· _mode,#%0100··· wz····· 'get interlace into nz
field················· wrlong· visible,par············ 'set status to visible
······················· tjz···· vb,#:nobl·············· 'do any visible back porch lines
······················· mov···· x,vb
······················· movd··· bcolor,#colortable
······················· call··· #blank_line
:nobl
······················· mov···· screen,_screen········· 'point to first tile (upper-leftmost)
······················· mov···· y,_vt·················· 'set vertical tiles
:line·················· mov···· vx,_vx················· 'set vertical expand
:vert·· if_nz·········· xor···· interlace,#1··········· 'interlace skip?
······· if_nz·········· tjz···· interlace,#:skip

Comments

  • AndreLAndreL Posts: 1,004
    edited 2006-11-20 05:37
    The colons mark local lables. So you can use the same name like ":loop" over and over as long as its in the scope of a new global label.

    Andre'
  • [Deleted User][Deleted User] Posts: 0
    edited 2006-11-20 05:40
    Thank's Andre'


    Brian
Sign In or Register to comment.