flat assembler
Message board for the users of flat assembler.

Index > Main > [solved] proc @@ / call @@

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

if "A" does compile
then ... why " undefined symbol" with "B" ???

PS : both with "if used name" removed in PROC32.INC

I agree that "B" does not compile,
but then "A" should not be allowed and should not compile either.


Code:
A) does compile --> 2 passes 11 bytes
   ----------------------------------

include 'win32a.inc'

proc @@ v:dword
  nop
  ret
endp 

    

Code:
B) does not compile
   ----------------

include 'win32a.inc'

proc @@ v:dword
  nop
  ret
endp

;push x
call @@ ;<------ undefined symbol
                ;-----------------
    

_________________
I am not young enough to know everything (Oscar Wilde)- Image


Last edited by ouadji on 03 Oct 2010, 00:34; edited 1 time in total
Post 02 Oct 2010, 20:57
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7724
Location: Kraków, Poland
Tomasz Grysztar
Well, since you removed the "if used name" from PROC32.INC, this should compile fine:
Code:
proc @@ v:dword
  nop 
  ret 
endp 

;push x 
call @b    


And with the "if used @@" the problem is obvious. Wink Of course you can add additional check for that, something like
Code:
   if `name eq '@@' | used name    
should be enough.
Post 02 Oct 2010, 21:26
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
Code:
proc @@ v:dword
  nop 
  ret 
endp 

;push x 
call @b
    

not "call @@" but "call @B" !!! Smile
that is indeed perfectly logical, thank you Tomasz.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 02 Oct 2010, 21:48
View user's profile Send private message Send e-mail 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.

Powered by rwasa.