flat assembler
Message board for the users of flat assembler.

flat assembler > Compiler Internals > fasm limitation for symbol pattern

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
someone asked how to place multiline comment from point up to end of file
Code:
db 0 ; output ends here without error
We could place here and after anything we want.
mov eax,edx
include '1.asm'
he he
And compilation will be succesful!    


Code:
;We could ever comment it
but effect on unclosable multiline comment will remains.    


Code:
db 0and even that will work    


Tomasz, can you describe internal nature of that.
Is it feature or bug? I like it.


Description: sintactically correct
but "" it is very special symbol
Filesize: 38.37 KB
Viewed: 128 Time(s)

0.jpg



_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
Post 04 Oct 2019, 11:21
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7372
Location: Kraków, Poland
fasm traditionally respects the EOF character defined by MS-DOS/Windows.
Post 04 Oct 2019, 11:28
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16782
Location: In your JS exploiting you and your system
It's in PREPROCE.INC:
Code:
      next_line:
        cmp     byte [esi-1],0
        je      file_end
        cmp     byte [esi-1],1Ah
        jne     preprocess_source
      file_end:    
Either 0x00 or 0x1a will signal the end of the file.
Post 04 Oct 2019, 11:32
View user's profile Send private message Visit poster's website 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-2019, Tomasz Grysztar.

Powered by rwasa.