Sorry to bother you guys with a question, but it should be quick.

I have the following code in the .DATA section of my program



instruction struct
byco word ?
next byte 14 dup(?)
iname byte 16 dup(0)
instruction ends

instrs instruction {0c38bh,{1,1,1,1,1,1,1,1},{"mov eax,ebx"}}, {0d88bh,{1,1,1,1,1,1,1,1},{"mov ebx,eax"}}, \
{0c303h,{1,1,1,1,1,1,1,1},{"add eax,ebx"}}, {0d803h,{1,1,1,1,1,1,1,1},{"add ebx,eax"}}, {0c32bh,{1,1,1,1,1,1,1,1},{"sub eax,ebx"}}, \
{0d82bh,{1,1,1,1,1,1,1,1},{"sub ebx,eax"}}, {0e0d1h,{1,1,1,1,1,1,1,1},{"shl eax,1"}}, \
{0e3d1h,{1,1,1,1,1,1,1,1},{"shl ebx,1"}}


I get an "error A2041: string or text literal too long" error from masm. It seems to have something to do with the text in quotes. How do I fix this error?
Posted on 2002-02-20 20:32:52 by LOLTH
on another topic, can someone give me a link to an assembly program which takes an array of 32-bit RGB values and turns it into a bitmap?
Posted on 2002-02-20 21:40:49 by LOLTH
The problem is the fact your have { } braces around the text part's... if you remove them it will compile..
is2 instruction <0c38bh,<1,1,1,1,1,1,1,1>,"mov eax,ebx">,{0d88bh,{1,1,1,1,1,1,1,1},"mov ebx,eax"}, \ 

{0c303h,{1,1,1,1,1,1,1,1},"add eax,ebx"}, {0d803h,{1,1,1,1,1,1,1,1},"add ebx,eax"}, {0c32bh,{1,1,1,1,1,1,1,1},"sub eax,ebx"}, \
{0d82bh,{1,1,1,1,1,1,1,1},"sub ebx,eax"}, {0e0d1h,{1,1,1,1,1,1,1,1},"shl eax,1"}, \
{0e3d1h,{1,1,1,1,1,1,1,1},"shl ebx,1"}

:alright:
NaN
Posted on 2002-02-20 21:43:18 by NaN
thanks!:)
Posted on 2002-02-21 19:05:34 by LOLTH