flat assembler
Message board for the users of flat assembler.

Index > Windows > Problem with 'virtual'

Author
Thread Post new topic Reply to topic
Dunduk



Joined: 08 Sep 2003
Posts: 38
Location: Russia
Dunduk
Hi all
I don't know either it's feature or bug. Or I do something wrong. Piece of code:
Code:
proc some_proc, arg1, arg2...
.arg SOME_STRUCTURE
  enter
  ...
  virtual at edi
    edi_x SOME_STRUCTURE
  end virtual
  lea edi,[.arg]
  ...
  return
    

When compile error appears:
Code:
  lea edi,[.arg]
  error: undefined symbol.
    

What's wrong?
Post 18 Sep 2003, 07:07
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
You define a global label "edi_x" and it breaks your locals. You should use something like this instead:
Code:
virtual at edi 
    .edi_x SOME_STRUCTURE 
end virtual    
Post 18 Sep 2003, 10:13
View user's profile Send private message Visit poster's website Reply with quote
Dunduk



Joined: 08 Sep 2003
Posts: 38
Location: Russia
Dunduk
Sure! Where was my brain? I don't know... I should reach it myself... I must update my brains Smile
Post 18 Sep 2003, 11:15
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.