Author |
Thread |
 |
|
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
|
06 Apr 2018, 20:47 |
|
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.
|
06 Apr 2018, 20:59 |
|
CandyMan
Joined: 04 Sep 2009
Posts: 259
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
|
good idea!, thanks
|
06 Apr 2018, 21:07 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 15629
Location: MACS J1149 Lensed Star 1
|
And always have backups 
|
06 Apr 2018, 21:10 |
|
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.
|
12 Apr 2018, 23:31 |
|
|
|