flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Undefined symbol 'n' in match

Author
Thread Post new topic Reply to topic
Jin X



Joined: 06 Mar 2004
Posts: 104
Location: Russia
Jin X
Error occurs: undefined symbol 'n'
What's wrong?
Code:
macro xxx [opt]
{
  local rcaddr_reg, bh_zero
  rcaddr_reg equ bp
  bh_zero equ 0
  is_set equ 0

  match =rcaddr:reg_n, opt \{
    match reg==n, reg_n \\{
      rcaddr_reg equ reg
      match =bx, reg \\{
        bh_zero equ 1
      \\}
      if n <> 0
        display "Only value '0' is allowed for register in option 'rcaddr'!"
        err
      end if
      is_set equ 1
    \\}
    match =0, error \\{
      rcaddr_reg equ reg_n
    \\}
    is_set equ 1
  \} ; rcaddr
}

xxx rcaddr:bx=0    
Post 28 Feb 2021, 19:49
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18170
Location: In your JS exploiting you and your system
revolution
I notice you have mismatched closing \\} for the third level at "match =bx, reg \\{".
Post 01 Mar 2021, 03:11
View user's profile Send private message Visit poster's website Reply with quote
Jin X



Joined: 06 Mar 2004
Posts: 104
Location: Russia
Jin X
Oh, thanks! Very Happy
Post 01 Mar 2021, 10:32
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.