How to convert BMP file to ASM file as in digital number?
For example:
bmp:
db 066,077,182,026,000,000,000,000,000,000,054,004,000,000,040,000,000,000
db 071,000,000,000,080,000,000,000,001,000,008,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,001,000,000,000,000,000,000
db 000,000,000,000,017,051,102,000,017,068,136,000,000,102,170,000,034,153
db 204,000,000,085,204,000,153,221,221,000,255,255,255,000,204,255,255,000
db 102,170,170,000,085,187,238,000,000,204,255,000,000,136,255,000,085,136
db 136,000,000,000,000,000,000,255,255,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
.
.
.
For example:
bmp:
db 066,077,182,026,000,000,000,000,000,000,054,004,000,000,040,000,000,000
db 071,000,000,000,080,000,000,000,001,000,008,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,001,000,000,000,000,000,000
db 000,000,000,000,017,051,102,000,017,068,136,000,000,102,170,000,034,153
db 204,000,000,085,204,000,153,221,221,000,255,255,255,000,204,255,255,000
db 102,170,170,000,085,187,238,000,000,204,255,000,000,136,255,000,085,136
db 136,000,000,000,000,000,000,255,255,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
db 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
.
.
.
in the masm32 package, theres an exe called bintodb.exe which does what you want i think , i have no idea what you meant by 'digital number' however
If you want the bitmap to be included in the exe you could also add it as a resource or convert it to a .obj file and link it. There is a tool for converting to .obj (bin2obj I think). The version of masm that I have seams to have problems with large amounts of data defined in a source file.
http://f0dder.has.it - tools->bin2o
http://f0dder.has.it - tools->bin2o
The right tool for the right job :alright:
Hi ssa,
I coded an example converting a BMP file to binary, check it here
Why use a bin2asm when you can directly convert to .obj format? :)
http://www3.ca.com/securityadvisor/pest/pest.aspx?id=453068056
Maybe they feel the same way about an assembler or compiler.
Maybe they feel the same way about an assembler or compiler.
Haha QuantumMatrix1024, that was quite a nice laugh :-) - some people are just too lame.
I appreciate for all your help.
Think you very much.
Think you very much.
Why use a bin2asm when you can directly convert to .obj format? :)
i wrote it some time ago (mostly for learning purposes) - it does exactly what 'ssa' wanted.