2021-09-18 06:06:05 -04:00
|
|
|
extern puts
|
|
|
|
|
2021-09-19 12:44:18 -04:00
|
|
|
%include "../inc/diff_func.inc"
|
|
|
|
|
2021-09-18 06:06:05 -04:00
|
|
|
section .data
|
2021-09-18 06:31:46 -04:00
|
|
|
text db "REEEEEEEEEE",0
|
|
|
|
text2 db "REEEEEEErEE",0
|
2021-09-18 06:06:05 -04:00
|
|
|
differ db "they differ",0
|
|
|
|
notdiffer db "they do not differ",0
|
|
|
|
section .text
|
|
|
|
global main
|
|
|
|
|
|
|
|
main:
|
|
|
|
sub rsp, 8 ;enter
|
|
|
|
|
2021-09-24 17:33:36 -04:00
|
|
|
mov rdi, text
|
|
|
|
mov rsi, text2
|
2021-09-19 12:44:18 -04:00
|
|
|
call diff_func
|
2021-09-18 06:31:46 -04:00
|
|
|
|
2021-09-24 17:33:36 -04:00
|
|
|
cmp r10b, 1 ;why tf did i make ut r10b as the return like tf?!?!?!?
|
2021-09-19 12:44:18 -04:00
|
|
|
jz _notdiffer
|
2021-09-18 06:31:46 -04:00
|
|
|
|
2021-09-18 06:06:05 -04:00
|
|
|
|
|
|
|
_differ:
|
|
|
|
mov rdi, differ
|
|
|
|
cld
|
|
|
|
call puts
|
|
|
|
jmp _end
|
|
|
|
|
|
|
|
_notdiffer:
|
|
|
|
mov rdi, notdiffer
|
|
|
|
cld
|
|
|
|
call puts
|
|
|
|
|
|
|
|
_end:
|
|
|
|
add rsp, 8 ;exit
|
|
|
|
ret
|