InlineASM_LittleQuestion

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Hey Guys,
played around with a bit inline asm and noticed that a division doesnt work without setting edx to 0 o_O

C++:
int inlDIV(int a, int b)
{
	int result = 0;

	_asm
	{
		MOV eax, a
		MOV ebx, b
		MOV edx, 0
		DIV ebx
		MOV result, eax
	}

	return result;
}
can some1 tell me why ? xD

,greez
 
Status
Not open for further replies.
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods