Skip to content

Instantly share code, notes, and snippets.

@Chiggins
Created October 28, 2014 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chiggins/27de7878b249bfb6f0d8 to your computer and use it in GitHub Desktop.
Save Chiggins/27de7878b249bfb6f0d8 to your computer and use it in GitHub Desktop.
global _start
section .text
_start
MOV ebx,23133
MOV eax,12733
MOV ecx,27798
CMP ebx,eax
JL L1
JMP L2
L1:
IMUL ebx,eax
ADD ebx,eax
MOV eax,ebx
SUB eax,ecx
JMP L3
L2:
IMUL ebx,eax
SUB ebx,eax
MOV eax,ebx
ADD eax,ecx
L3:
NOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment