| | |
need help how about assebly error
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
i just want to ask how can i add a another value in this code
this is for educational purpose and im not familiar with asm
i know java programming but this is far different
mov eax,[000003E8+100] crash my system
honestly i dont know how to add in asm
any one can help me here
this is for educational purpose and im not familiar with asm
i know java programming but this is far different
mov eax,[000003E8+100] crash my system
honestly i dont know how to add in asm
any one can help me here
d97aede:
add eax,00
alloc(newmem,256)
label(returnhere)
0D97AC8C:
jmp newmem
nop
returnhere:
newmem:
label(empiesa)
label(setea)
label(sigue)
label(resetea)
alloc(Patiniox,4)
jmp empiesa
empiesa:
cmp [Patiniox],00000000
je setea
jmp sigue
setea:
mov [Patiniox],00000001
jmp empiesa
sigue:
inc [Patiniox]
cmp [Patiniox],00000004
je resetea
jmp d97ac92
resetea:
mov [Patiniox],00000000
jmp d97b2e4
alloc(newmem2,128)
label(returnhere2)
label(originalcode2)
label(exit2)
d97afb5:
jmp newmem2
nop
returnhere2:
newmem2:
mov eax,000003E8 <-- this part of the code how am i able to add another 100 value here its 1000 so i want to add 100
mov ecx,000003E8
originalcode2:
add esp,08
mov ecx,[edi+08]
exit2:
jmp returnhere2 0
#2 Oct 18th, 2009
To change,
newmem2:
mov eax,0x3e8
so that EAX will be loaded with the value
0x3e8+0x100 replace with:
mov eax,0x3e8+0x100
This varient of mov instruction has immediate as the source
operand, and this has memory operand as source:
mov eax,[0x3e8+0x100]
Using a hardwired offset could cause an Access Violation.
Once you have a dissassembled source listing of a
executable image you can change offsets to labels
and add in any opcodes you wish.
newmem2:
mov eax,0x3e8
so that EAX will be loaded with the value
0x3e8+0x100 replace with:
mov eax,0x3e8+0x100
This varient of mov instruction has immediate as the source
operand, and this has memory operand as source:
mov eax,[0x3e8+0x100]
Using a hardwired offset could cause an Access Violation.
Once you have a dissassembled source listing of a
executable image you can change offsets to labels
and add in any opcodes you wish.
Last edited by NotNull; Oct 18th, 2009 at 1:36 am.
----------------------------------------------------------
To control a mind violates a man, and all it has been used for is
hurting and afflicting. Nowonder I progam in assembly...
--->Now available http://dotcoding.netai.net/
To control a mind violates a man, and all it has been used for is
hurting and afflicting. Nowonder I progam in assembly...
--->Now available http://dotcoding.netai.net/
![]() |
Similar Threads
- GTK Hangs & An Index Error (C#)
- Php email error (PHP)
- When I boot computer Error Appear. (Windows Vista and Windows 7)
- Error with a linked function (C++)
- How to Fix "Error loading Operating System" (Windows NT / 2000 / XP)
- XML to XML via XSL Transform Error... (XML, XSLT and XPATH)
- javac error message (Java)
Other Threads in the Assembly Forum
- Previous Thread: help with MIPS snprintf function?
- Next Thread: Question about arrays
| Thread Tools | Search this Thread |





