Specifications
Saturn Local Labels 7-3
Psy-Q Development System
The code above shows a typical use for Local Labels, as "place markers" within a
self-contained sub-routine. The scope is defined by the non-local labels, Plot2 and
Plot3; the SET statement does not de-scope the routine. The labels @chk1 and @ret
are re-usable.
plot2 move.b comp\w,d3
moveq chrbit-1,d2
cmp.w #-84,d3
bge.s @chk1
add.w #168,d3
bra.s setplot
@chk1 cmp.w #83,d3
move.w d3,d0
setplot set x+1
...
dbra d2,@chk1
In the example, the final branch will cause an error, since it is outside the scope of
@chk1.