Last active
October 7, 2016 23:54
-
-
Save makubi/967310b27490cde348d557c2bf704725 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .data | |
... | |
section .bss | |
... | |
section .text | |
global _start | |
_start: | |
; check for two arguments (path + 2 args) | |
pop rax | |
cmp rax, 3 | |
jne _exit_error | |
; ignore path | |
pop rax | |
; read two args | |
pop rax | |
mov rcx, [rax] | |
pop rax | |
mov rbx, [rax] | |
; compare and jump | |
cmp rcx, rbx | |
je equals | |
jne nequals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment