[cc65] Macro label scoping (Was: printf for ca65)

From: MagerValp <MagerValp1cling.gu.se>
Date: 2005-03-22 16:29:54
>>>>> "M" == MagerValp  <MagerValp@cling.gu.se> writes:

M>   @readdir:
M> 	jsr fs_dir_read
M> 	bcs @eod

M> 	printf "%04x%04x\t%s\n", fs_dir_node, fs_dir_node + 2, fs_dir_name
M> 	jmp @readdir
M>   @eod:

Actually, there's a small problem here:

  boot.s(72): Error: Symbol `@readdir' is undefined
  boot.s(69): Error: Symbol `@eod' is undefined

In the printf macro, I make the two labels (arglist and string)
.local, but apparently they still create a new scope (or is it the
segment changes that cause problems?). @labels can't be made .local,
so I'm not sure how to handle this. Any suggestions?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Mar 22 16:29:57 2005

This archive was generated by hypermail 2.1.8 : 2005-03-22 16:30:12 CET