News:

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

Raw binary code

Started by enitol, September 07, 2010, 07:55:01 PM

Previous topic - Next topic

enitol

Can masm32 produce raw code? (without all the "junk" that goes in the .obj files)
The thing you get with nasm when using "nasm whatever.asm"
I'm sure it can but I'm wondering how it's done.

clive

Use a linker that generates a HEX or BIN file. Or use a COFF/OMF to BIN tool.
It could be a random act of randomness. Those happen a lot as well.

enitol

Quote from: clive on September 07, 2010, 08:12:27 PM
Use a linker that generates a HEX or BIN file. Or use a COFF/OMF to BIN tool.
Any specific suggestions?

enitol

Did some searching but couldn't find anything. Exe2bin doesn't work and neither a few other apps I tried. If you know of such an application a link would be appreciated.

bomz

may be you mean this?

Quote
@ECHO OFF
COLOR 9F
CLS
C:\masm32\bin\ml.exe /AT /Bl C:\masm32\bin\link16.exe noname.asmĀ 
DEL noname.obj
pause

enitol

That's what I need. Thanks.

Vortex

Quote from: enitol on September 07, 2010, 07:55:01 PM
(without all the "junk" that goes in the .obj files)

Did you read ever the MS COFF and \ or OMF object file format specification before naming the content of .obj files as "junk" ?

enitol

I only needed the generated opcodes, nothing else. Therefore I reserve my right to call everything else "junk" lol
I know that "the named contents of .obj files" aren't junk and have their specific use but in this case they are.

On the other hand this wasn't supposed to be an argument. I got an answer to my question and I thank you guys for that.

Vortex

Quote from: enitol on September 13, 2010, 10:35:02 AM
I only needed the generated opcodes, nothing else. Therefore I reserve my right to call everything else "junk" lol

So, you didn't have to mention about object files...

enitol

True. But object files were the closest thing to "raw binary code" I had at the time of posting. So it felt natural to mention that.
No hurt feelings?

Vortex

Yes, but "junk" is a bit strong word here.

bomz

#11
*

hutch--

bomz,

Share this piece of genius with us, what is the point of posting a list of API functions ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php