The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: white scorpion on May 29, 2005, 01:24:09 PM

Title: creating a piece of data of more then 256 bytes
Post by: white scorpion on May 29, 2005, 01:24:09 PM
Hi all,

i'm trying to create a string which is larger then 256 bytes and when i try to assemble the program i get as result:
"Statement too complex".

eg:

.DATA
string db    "This is my teststring, blah blah blah blah blah blah blah",13,10,\
             "here some more text to fill up the string",13,10,13,10,\
             "and another line after the newline.....",13,10,\
             "some more text here as well.... i think this string now is long enough to",13,10,\
             "give the error in during assembly...",0

When i split the string into 2 pieces the program assembles like it should.

How can i solve this problem?

Thanks in advance!

Title: Re: creating a piece of data of more then 256 bytes
Post by: hutch-- on May 29, 2005, 02:13:54 PM

.data
  txtname db "This is a text string",13,10
           db "This is a text string",13,10
           db "This is a text string",13,10,0
Title: Re: creating a piece of data of more then 256 bytes
Post by: white scorpion on May 29, 2005, 08:07:53 PM
Works like a charm,
Thanks for your help  :U