flat assembler
Message board for the users of flat assembler.

flat assembler > Main > source and target file name equals

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 274
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
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: 15912
Location: SDSS J140821.67+025733.2
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: 274
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
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: 15912
Location: SDSS J140821.67+025733.2
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: 2292
Location: Usono (aka, USA)
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-2018, Tomasz Grysztar.

Powered by rwasa.