I have found this page, where u can create the smalles possible PE file: http://www.phreedom.org/solar/code/tinype/
However, all the stuff is in Nasm, and i wanted to ask, if its possible to do the same in Masm?
Alex
Sure it's possible. WebDav is fascinating, isn't it?
:bg
I confess I have always laughed as this crap keeps turning up like a broken record. A cursory reading of PECOFF.DOCX from Microsoft will solve theproblem as to what is a PE file and what is not.
Any example how exactly to do it? Seems like I need another keywords, because masm dont recognize them.
hi Alex, welcome to the forum :U
we have another member named Alex (Antariy) that likes to play with this stuff, as well
he has made a few very small EXE's that seem to work under all OS's
you can use the forum search tool - Advanced Search - to locate threads/posts by Antariy
one that comes to mind is the "meminfomicro" program
jwasm has such capacities - japhet has also upload an example (http://www.masm32.com/board/index.php?topic=12240.0).
However, none of the referenced EXE's work on windows 7 :boohoo:
dedndave, thx, but seems like he done it with hexeditor, i make the same with a simple app i wrote, however, i wanted to get this done from the source :P
qWord, tbh, i wanted to use masm only, no other stuff, if its possible :P
the easiest way is probably not to create an EXE at all
instead, use the 16-bit linker and create a raw binary, similar to a .COM program but ORG'ed at 0
i am not sure if this can be done using the 32-bit linker - never tried it :P