#30 Local labels

open
nobody
None
5
2012-08-12
2006-12-01
Anonymous
No

Support for local labels, for example:

(tab=8)

putbyte NOP ; global
NOP
.bit MOVF fdelay2, W ; local
MOVWF floop
.loop DECFSZ floop, F ; local
GOTO .loop
DECFSZ fbitcount, F
GOTO .bit
NOP
getbyte NOP ; global
NOP
.bit MOVF fdelay2, W ; local
MOVWF floop
.loop DECFSZ floop, F ; local
GOTO .loop
DECFSZ fbitcount, F
GOTO .bit
NOP

Discussion

  • David Barnett
    David Barnett
    2007-06-25

    Logged In: YES
    user_id=896846
    Originator: NO

    I didn't understand where this came from until I read some documentation for the Scenix processors, which support this type of thing. I think it would be pretty easy to implement, but I'm not sure whether you'd want them to start with ".", ":", or either. I believe Scenix only supports ":".

    I may also consider limiting this feature to certain processors, because it's only a slight convenience, and it would make projects incompatible with MPASM.

     


Anonymous


Cancel   Add attachments