flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > source and target file name equals

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 259
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop

source and target file name equals

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: 15629
Location: MACS J1149 Lensed Star 1

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: 259
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: 15629
Location: MACS J1149 Lensed Star 1

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: 2224
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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.