PDA

View Full Version : plz answer



spartacchio
03-23-2008, 02:23 PM
[ENABLE]
0000000: <<<<<< opk adddie here
jmp 0000000 <<<<< jmp to a address not in use(this is were your jumping your code)
nop
0000000: <<<<<<< same addie as your jmp (this is what youve jmped the code too)
mov ebx,458CA000
mov eax,0
mov [ecx+00000174],ebx
mov [ecx+00000178],eax
mov [ecx+0000017c],ebx
jmp 0000000 <<<<<<<jump +16 to opk addie here
nop
[DISABLE]
0000000:<<<<< opk addie here
mov [ecx+00000174],edx
mov edx,[esp+0c]
mov [ecx+00000178],eax
mov [ecx+0000017c],edx

ok,i can do all BUT i don't understand
jmp 0000000 <<<<<<<jump +16 to opk addie here

wht means?
i need to add 16 in hex to my opk addy?

sry for my noobish i really want to understand MORE.
Plz ansewr..

Dxt-Cobra
03-24-2008, 09:34 AM
yes ,open calculator and hit hex, add opk addie,then + 16 ,is your address to jump back to.



[ENABLE]
0100000:
jmp 0900000
nop
0900000:
mov ebx,458CA000
mov eax,0
mov [ecx+00000174],ebx
mov [ecx+00000178],eax
mov [ecx+0000017c],ebx
jmp 0100016
nop
[DISABLE]
0100000:
mov [ecx+00000174],edx
mov edx,[esp+0c]
mov [ecx+00000178],eax
mov [ecx+0000017c],edx


understand now? those are just example addies,so you get how to.

spartacchio
03-24-2008, 01:57 PM
yes ,open calculator and hit hex, add opk addie,then + 16 ,is your address to jump back to.



[ENABLE]
0100000:
jmp 0900000
nop
0900000:
mov ebx,458CA000
mov eax,0
mov [ecx+00000174],ebx
mov [ecx+00000178],eax
mov [ecx+0000017c],ebx
jmp 0100016
nop
[DISABLE]
0100000:
mov [ecx+00000174],edx
mov edx,[esp+0c]
mov [ecx+00000178],eax
mov [ecx+0000017c],edx


understand now? those are just example addies,so you get how to.

ok,now i've understand! thx

But..(i've got a lot of problem,i think that I'm the problem!! fgt85 =)

i use this asm code in this functions

void func(){
__asm{
// asm code <---i put the code here!
};
};

When i recompile the prog Vc6++ tell me i'm noob because

C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(385) : error C2400: inline assembler syntax error in 'opcode'; found 'constant'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(386) : error C2041: illegal digit '9' for base '8'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(387) : error C2415: improper operand type
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(388) : error C2041: illegal digit '9' for base '8'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(388) : error C2400: inline assembler syntax error in 'opcode'; found 'constant'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(389) : error C2041: illegal digit 'C' for base '10'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(389) : error C2041: illegal digit 'A' for base '10'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(392) : error C2041: illegal digit '8' for base '8'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(393) : error C2041: illegal digit 'c' for base '8'
C:\Programmi\Microsoft Visual Studio\MyProjects\dll2\functions.cpp(395) : error C2415: improper operand type
Generating Code...
Error executing cl.exe.

dll2.dll - 10 error(s), 0 warning(s)


This my function--------

void opk2(){
__asm{
0100000: // i know that is not the good addy
jmp 0900000
nop
0900000:
mov ebx,458CA000
mov eax,0
mov [ecx+00000174],ebx
mov [ecx+00000178],eax
mov [ecx+0000017c],ebx
jmp 0100016
nop
};
};


--------end code-------

I need to declare something in the top of prog? #include...?
i've declared <window.h> but my function still NOT work,seems that vc++(6) can't read my ASM code..

[i make this function in Dll than i call dll in the main program (xxxDlg.cpp)]


I need to modify the ASM to put it in c++? i think no (MSDN tell that "if c++ compile an ASM code the compiler compile it as he find in code")

Can someone give me an hand? I like to know more and discover new ways to do what i want to do.

Thx a lot for people who want to waste yours time and help a poor noob like Me!

my mind is next to fusion

improper operand type when i write nop

'jmp' : identifier is reserved word

inline assembler syntax error in 'opcode'; found 'constant' when i call an address
f ex. 0x0000001

PLZ HELP ME :(:(