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
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?
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?
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?
The problem is the fact your have { } braces around the text part's... if you remove them it will compile..
:alright:
NaN
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
thanks!:)