News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TinyPE Nasm to Masm possible?

Started by -Alex-, June 25, 2011, 01:31:16 PM

Previous topic - Next topic

-Alex-

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

jj2007

Sure it's possible. WebDav is fascinating, isn't it?
:bg

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

-Alex-

Any example how exactly to do it? Seems like I need another keywords, because masm dont recognize them.

dedndave

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

qWord

jwasm has such capacities - japhet has also upload an example.
However, none of the referenced EXE's work on windows 7  :boohoo:
FPU in a trice: SmplMath
It's that simple!

-Alex-

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

dedndave

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