flat assembler
Message board for the users of flat assembler.

Index > Main > doesn't compile, why ??

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 29 Jul 2010, 08:05
Code:
(A)
---
 include 'win32a.inc'

 jmp hello

 proc proc_A
 nop
 inside_A:
 hello:
 nop
 endp

 mov eax,proc_A 
    
Code:
(B)
---
 include 'win32a.inc'

 jmp hello

 proc proc_A
 nop
 inside_A:
 hello:
 nop
 endp

 ;mov eax,proc_A 
    


(A) : OK
(B) : doesn't compile

why ? (thank you)

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 29 Jul 2010, 08:05
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 29 Jul 2010, 08:22
The proc macro checks if proc_A is referenced (used) within the code. If proc_A is not referenced then the entire function is not assembled.
Post 29 Jul 2010, 08:22
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 29 Jul 2010, 08:29

thank you revolution Razz

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 29 Jul 2010, 08:29
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.