Hello,

I have a set of assembly instructions that I am trying to assemble with nasm and execute however I am receiving errors and i am not sure why. The result of executing these instructions should print out a sting. Any help would be much appreciated.

xor eax,eax
push eax
push dword(0x79787576)
push dword(0x73227679)
push dword(0x27777676)
push dword(0x79787971)
push dword(0x79202422)
push dword(0x72762079)
push dword(0x75242270)
push dword(0x74767072)
push dword(0x76737471)
push dword(0x23757124)
push dword(0x79767125)
push dword(0x25717478)
push dword(0x76222523)
push dword(0x70717522)
push dword(0x24757172)
push dword(0x74257976)
push dword(0x24247172)
push dword(0x73782475)
push dword(0x27232071)
push dword(0x25252725)
push dword(0x72257976)
push dword(0x27702071)
push dword(0x78772523)
push dword(0x27782071)
push dword(0x72712578)
push dword(0x22737773)
push dword(0x23257774)
push dword(0x78222370)
push dword(0x27792725)
push dword(0x76707225)
push dword(0x72277522)
push dword(0x77742076)
push esp
pop esi
mov edi,esi
mov edx,edi
cld
mov ecx,0x80
mov ebx,0x41
xor eax,eax
push eax
lods byte[esi]
xor eax,ebx
stos byte[es:edi]
loop 0xb7
push esp
pop esi
int 0x3

I have a set of assembly instructions that I am trying to assemble with nasm and execute however I am receiving errors and i am not sure why.

Please post the errors as well as the code; this will help us help you.

...looks dangerous :|

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.