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
.
.
.
Posted on 2005-01-04 01:44:49 by ssa
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
Posted on 2005-01-04 02:01:56 by evlncrn8
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.
Posted on 2005-01-04 06:46:37 by QuantumMatrix1024
http://f0dder.has.it - tools->bin2o
Posted on 2005-01-04 11:01:21 by f0dder
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
Posted on 2005-01-04 12:17:19 by Vortex
Posted on 2005-01-04 13:13:05 by ti_mo_n
Why use a bin2asm when you can directly convert to .obj format? :)
Posted on 2005-01-04 15:20:23 by f0dder
http://www3.ca.com/securityadvisor/pest/pest.aspx?id=453068056

Maybe they feel the same way about an assembler or compiler.
Posted on 2005-01-04 15:45:54 by QuantumMatrix1024
Haha QuantumMatrix1024, that was quite a nice laugh :-) - some people are just too lame.
Posted on 2005-01-04 15:59:02 by f0dder
I appreciate for all your help.
Think you very much.
Posted on 2005-01-05 01:10:43 by ssa
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.
Posted on 2005-01-05 08:30:41 by ti_mo_n