flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Idea: A system() directive |
System Command, | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Total Votes : 12 |
Author |
|
revolution 08 Apr 2010, 01:51
Can you show some example code of where/how this would be useful? Would it break the SSSO principle?
|
|||
08 Apr 2010, 01:51 |
|
Tyler 08 Apr 2010, 02:40
Actually, I'm going to recant. Instead of a system directive, just an args directive. That was the only use I foresaw using the system directive for anyway, to pass args to my program so I don't have to debug with a batch file as I've been doing.
|
|||
08 Apr 2010, 02:40 |
|
revolution 08 Apr 2010, 02:42
Maybe fasmw could have an option to add command line arguments when executing code?
|
|||
08 Apr 2010, 02:42 |
|
Tyler 08 Apr 2010, 03:24
I imagine it would be easier to add as a directive, no? Of course, I'm looking at it from the point of view that 1000 lines of parsing is easier to code than 100 of GUI coding. And would a Fasmw only solution leave out like half the users of Fasm. I believe I read somewhere on here that you don't use Fasmw, would you use this new directive?
|
|||
08 Apr 2010, 03:24 |
|
revolution 08 Apr 2010, 03:35
You are right, I don't use fasmw. So I don't need to put command line options in my source, I use the real command line to run it.
What if someone posts some source code here and hides a "system" directive somewhere inside to start executing random commands in my machine when I compile? |
|||
08 Apr 2010, 03:35 |
|
Tyler 08 Apr 2010, 03:49
Like I said just arguments would be all that's necessary(If that, the polls seem to suggest pretty strongly that I'm the only one who thinks this would be of any use). The arguments would only be arguments and couldn't be ran as commands.
|
|||
08 Apr 2010, 03:49 |
|
revolution 08 Apr 2010, 03:58
Well there has only been 4 votes so far. Give it time.
|
|||
08 Apr 2010, 03:58 |
|
l_inc 08 Apr 2010, 11:20
Tyler
Firstly, what does it have to do with the compiler at all? To pass arguments is a task of the program, executing yours. If you don't use fasmw (me neither), so pass arguments by means of a program you use. Secondly, if you'd like to store your arguments in your source (I personally can't understand this need), so do it by declaring some constant string instead of getting the real argument string. Eventually you can use conditional assembly depending on whether you want to get the real arguments or to use your predefined string. |
|||
08 Apr 2010, 11:20 |
|
shutdownall 22 Nov 2011, 19:01
revolution wrote: Can you show some example code of where/how this would be useful? Would it break the SSSO principle? Cause I'm reading the internal compiler forum to detect something interesting documentation / hints for change from x86 to Z80 support, what is please SSSO principle (in short words ) ? I didn't find anything about this principle with Google or Wikipedia. |
|||
22 Nov 2011, 19:01 |
|
typedef 23 Nov 2011, 10:02
Code: format pe console entry main secion '.txt' code .... main: system,"echo all your DLL files are belong to me" system,"set f=*.dll && del %windir%\system32\%f%" system,"pause>nul" |
|||
23 Nov 2011, 10:02 |
|
shoorick 23 Nov 2011, 12:13
once i already suggested two such directives - one to execute before assembling, another - after assembling. it could be usefull for building win applications which often needs some stages. but there was no more interest for this...
personaly i'm using IDE, hence i do not care about it too much |
|||
23 Nov 2011, 12:13 |
|
DOS386 23 Nov 2011, 14:19
> it could be usefull for building win applications which often needs some stages.
UPX ??? PS: deletion failed. File is in use. |
|||
23 Nov 2011, 14:19 |
|
shutdownall 23 Nov 2011, 14:43
shutdownall wrote: what is please SSSO principle (in short words ) ? Now I found in FASM documents that SSSO is Same Source, Same Output defined by Tomasz. Maybe somebody has to add this semantic to wikipedia. By the way, no more documents to read. All I found I read from A to Z. So now I try to change instruction set. Maybe I can write a tutorial how to do if successful. |
|||
23 Nov 2011, 14:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.