flat assembler
Message board for the users of flat assembler.

Index > Windows > Help combining two codes

Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author
Thread Post new topic Reply to topic
peet



Joined: 13 Dec 2011
Posts: 63
peet
ok if necessary let's take the one always is best the systems32 directory itself, so we need no paths for system commands and other calls for commands (like copy) shouds always be used in absolute path coding way when batching as this is always too dangerous to leave it up to shell. is it possible perhaps to use %COMSPEC% in any way? or any other var reflecting the home directory of cmd which is always sys32.?
Post 22 Dec 2011, 15:13
View user's profile Send private message Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
the way backwards may be possible bx cmd's Sys Clipboard function (write clipbord)
Post 22 Dec 2011, 15:28
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
Yes, and same function (CreateProcess) also allows to supply the Environment too. I used it to start FASM.EXE with its famous FASMINC value (for my IDE).
Smile


Last edited by AsmGuru62 on 22 Dec 2011, 17:30; edited 1 time in total
Post 22 Dec 2011, 17:29
View user's profile Send private message Send e-mail Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
@peet: how big are your files?
Post 22 Dec 2011, 17:30
View user's profile Send private message Send e-mail Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
please do not be angry with me, but i don't know about that FASMINC by now, can i find this in documentation of fasm? and do i understand right you are (too) behind fasm?

my files? you mean the code (snippets) i want to take with me in exe? just a couple of lines each, it would be acceptable even to a one line limit without returns if this makes handling easier. and lets say an amount of 15 to 30 snippets must be enough, otherwise it is more senceful to take a real file with you i guess.

so to dtermine amount, lets say a set of 5 idea to solve a problem should be good, from these idea there may consequence to up to three directions and give you another 2 alternatives. and lets say we will take an example each way with us , we result in about 15. so everything above 15 lines of code may be enough ยด. too the cmd input is limited anyway so we would need about 20 times the input limit?
Post 22 Dec 2011, 18:33
View user's profile Send private message Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
anybody know programmers notepad? reduce it, add missing tranparency and background-screenshot, include the snippets in exe itself and port it to assembler --> guess that's kinda what i want to to someday, if no one did already
Post 22 Dec 2011, 20:53
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
@peet: what file size the MiniPAD will be able to load? 10Kb? 100Kb, 1Mb? 1Gb?
Post 23 Dec 2011, 15:30
View user's profile Send private message Send e-mail Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
AsmGuru62 wrote:
@peet: what file size the MiniPAD will be able to load? 10Kb? 100Kb, 1Mb? 1Gb?


how do you mean that?
Post 23 Dec 2011, 16:09
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
1Gb is multi-threading point. Calculate the file size and give each thread a section to read.
Post 23 Dec 2011, 16:36
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
@peet: ??? I do not follow.... you aware that MiniPAD is a text editor, right? So, how much of text are you going to edit with it? How much of text supposed to be fit into it?
Post 23 Dec 2011, 17:25
View user's profile Send private message Send e-mail Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
AsmGuru62 wrote:
@peet: ??? I do not follow.... you aware that MiniPAD is a text editor, right? So, how much of text are you going to edit with it? How much of text supposed to be fit into it?


if that can't get handled dynamically like to load always only a part into memory i'd cut off at a max size of 1MB most bigger files are bad logs i open with HiEditor, cool app btw. too - with dynamic loading file partialy

a working table of 1MB is a lot in textfiles i think, maybe 250 would be enough? how much should it be at least or topmost in your opinion?
Post 23 Dec 2011, 17:33
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
I just wanted a reference of the file size you can work with. So, I see, these are pretty big, so I'll start with 1Mb as an initial size, which grows until OS has memory (~2Gb).
Post 23 Dec 2011, 18:03
View user's profile Send private message Send e-mail Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
to keep footprint small i'd suggest starting with 100KB

i just found fresh and took a look at the project (john found), but it crashes on my system when compiling

does anybody know a good snippet repository for fasm code, i did not even find a tutorial or well commented source code to learn with. examples out there are rare i experience. am i blind mybe? which is the mistirious keyword to add? fasm assembler tutorial snippet ... it all does not deliver me useful links.
Post 23 Dec 2011, 18:17
View user's profile Send private message Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
at the moment i did start with trying to make the window stay on top, so i added an menuitem, did increase array size for an accelerator and now was searching for command to setWindow focus and to see maybe a var to handle the status - b ut i can't find example codes anywhere
Post 23 Dec 2011, 18:21
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
maybe I have not been following but what exactly are you doing ?

Are you working on a project or learning ?
Post 23 Dec 2011, 19:12
View user's profile Send private message Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
learning by pimping an example up to maybe a project. and too trying to find code snippets for easier coding ... e.g. with pnotepad or fresh
Post 23 Dec 2011, 19:21
View user's profile Send private message Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
on the one hand there is nice FASM, provided working and with examples which is very nice to start, because you can see working results and grow with em. on the other there is not much example and snippet code to find (at least not for me).

winasm which i now tried again is a lot bigger and is maybe easier to handle whole projects, i am exploring the examples in it now (while i did set up a FASM-WinASM) to be able to work further with this.
Post 23 Dec 2011, 21:53
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
Well, the issue is that not many FASM coders write a large programs with it and if they do - they do not want to open their codes for everyone to see. FASM itself is a cool exception of that rule (thanks, Tomasz)!
Post 24 Dec 2011, 00:09
View user's profile Send private message Send e-mail Reply with quote
peet



Joined: 13 Dec 2011
Posts: 63
peet
yes i like fasm really too. it's small, powerful and really cool.

when we talk about code, hm, i wonder what some guys have in mind. they want to get honoration for their work, but by closing code nobody is able to adopt and this is contraproductive as they - for the truth - want to get honoration.

the more the knowledge they have is only possible because manchild did open up it's knowledge base and teach em, they even got thought to walk, lol. now they think their knowledge is private, i don't sign that, but this is up to each of it's own. these guys should think about how evolution would get further if everybody would keep he's wisedom.

i just was thinkin these times went by, but maybe they repeat it like all manstory does.

i am shure a lot do not open because they stole themselves and don't want that discovered. and a lot are quite shure the code they wrote is trash and everybody would see.

and the others should open because if they really wrote a good piece of code, everybody will see, respect, adopt and make you and your code immortal - what else could you achieves? get linus!
Post 24 Dec 2011, 00:44
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
AsmGuru62 wrote:
Well, the issue is that not many FASM coders write a large programs with it and if they do - they do not want to open their codes for everyone to see. FASM itself is a cool exception of that rule (thanks, Tomasz)!


Hey, it is not true. Smile I write big programs with FASM. And most of them are open source accessible here. There are other FASM programmers as well. KolibriOS team writes a great OS in FASM.
Post 24 Dec 2011, 08:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5, 6  Next

< 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.