Hi, when i use INC then the pro0gramm crashes.
I need di increment a dword variable.
or is there a way to use another variable and convert it to dword????

DEEP REGARDS HJ-FF
Posted on 2003-05-30 07:43:14 by Forginforcer
inc is obviously not the problem with your program. I would check where it's crashing, maybe get olly debug and find out what point your program crashes.

mov Var,1
inc Var
; Var = 2
Posted on 2003-05-30 10:53:26 by donkey
but it my progs crashes every time, when i inc a dword-varaibe.
arggg
Posted on 2003-05-30 11:06:01 by Forginforcer
INC works fine, it's pretty much up to you to find out why your program is crashing or post some code that crashes and some-one might figure it out for you.
Posted on 2003-05-30 11:12:25 by donkey
Quite likely you're trying to access a place in memory you shouldn't be. Inc will work ok, as long as the memory referred is writable and accessible from your code. Check what address you're incrementing.

Fake
Posted on 2003-05-30 11:13:50 by Fake51
its just a simple loop where a dword get inc'ed.:confused:
Posted on 2003-05-30 18:08:47 by Forginforcer
Post program.
Posted on 2003-05-30 18:37:43 by comrade
Mmmm...

Let's look at this logically Red, first you only tell us that you are trying to increment a value using INC. No probs, the INC opcode is probably executed about a trillion times a day, not a million, not a billion but a trillion times a day given that it is used extensively in every x86 program running on the planet. Are you suggesting that you have found a bug in the 80x86 processor that you are using ? Like if you request the processor execute an INC command that it crashes Windows ? Because outside of that you have not supplied any information. FYI - there is no bug in the INC opcodes so obviously we need more information about what you are doing other than simply incrementing a value. Just executing INC on a valid DWORD will not crash a program, there has to be some other reason that it crashed.
Posted on 2003-05-30 19:09:03 by donkey
You are right.
the bug have to be somwhere else.
Posted on 2003-05-31 02:07:59 by Forginforcer
In other words... everyone here is asking you post some of your code.

Unless you are trying to write a trojan or virus, I don't see your reason for not wanting to post an example of your code. Just let these guys help you and they will. They are being more than patient with you, so help THEM help YOU.
Posted on 2003-05-31 19:00:49 by The Beginner