flat assembler
Message board for the users of flat assembler.

Index > Main > source and target file name equals

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 06 Apr 2018, 20:47
needed protection in fasm, the inspection or the source file name is equal target. I happened several times through carelessness to lose the source.

_________________
smaller is better
Post 06 Apr 2018, 20:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20300
Location: In your JS exploiting you and your system
revolution 06 Apr 2018, 20:59
Set your source file as read-only.
Post 06 Apr 2018, 20:59
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 06 Apr 2018, 21:07
good idea!, thanks
Post 06 Apr 2018, 21:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20300
Location: In your JS exploiting you and your system
revolution 06 Apr 2018, 21:10
And always have backups Wink
Post 06 Apr 2018, 21:10
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 12 Apr 2018, 23:31
It's probably harder than it sounds because you'd have to normalize any filenames, e.g. "./blah.asm" and "blah.asm" and (case insensitive filenames) "BLAH.ASM" and "c:\source\blah.asm".

FASM doesn't force you to specify output filename (anymore) in most cases, but I assume you knew that. "fasm dumb.asm" (using org 100h) will auto-default to dumb.com output.

If you use a simple .BAT or makefile, you won't have to do it again or type it all manually.
Post 12 Apr 2018, 23:31
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.