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

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

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.

thank's for the reply it works like a charm but you mention i could change offsets to label and add in any opcodes could you help me how to do that

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.