Skip to content

Instantly share code, notes, and snippets.

@febnug
Created February 22, 2022 00:31
Show Gist options
  • Save febnug/de23b343559414f3efecc5cace75192a to your computer and use it in GitHub Desktop.
Save febnug/de23b343559414f3efecc5cace75192a to your computer and use it in GitHub Desktop.
xor dx,dx ; zf = 0
div sp ; or any other reg that <> 0
jnz .AMD ; on any div/idiv operation ZF flag will not be changed on Intel but will be set on AMD
.Intel:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment