News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Save binary file in var

Started by shekel, June 05, 2015, 09:15:41 AM

Previous topic - Next topic

shekel

Sorry for my English

I require a file in my program and i was thinking put in the code.. exactly in .data section.

The size of the file is 2200 bytes... so i try this code...

.data
my_file       dd 12345678h,
                  dd 87654321h,
                  ...etc...


i get this error..

code.asm(512) : error A2042: statement too complex
code.asm(512) : error A2039: line too long

Can i put the file of this way?? or i need a resource file?

I prefer this way..

jj2007

Just do it without the commas.

.data
my_file       dd 12345678h
                  dd 87654321h
                  ...etc...

dedndave

commas if the same line
no comma at the end

data1 dd 12345678h,12345678h,12345678h
      dd 12345678h,12345678h,12345678h

shekel

Ohh god... you save my night

thanks both