flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > fasm limitation for symbol pattern

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 770
Location: Russian Federation, Sochi
ProMiNick 04 Oct 2019, 11:21
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.

sintactically correctbut "" it is very special symbol
Image

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.


Last edited by ProMiNick on 08 Dec 2020, 13:51; edited 1 time in total
Post 04 Oct 2019, 11:21
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8266
Location: Kraków, Poland
Tomasz Grysztar 04 Oct 2019, 11:28
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: 19871
Location: In your JS exploiting you and your system
revolution 04 Oct 2019, 11:32
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.