zombie-core-utils/diff.asm
zombie d8f9936073 made it more system v complient
in diff i use fucking r10b for somereason
2021-09-24 17:33:36 -04:00

37 lines
512 B
NASM

extern puts
%include "../inc/diff_func.inc"
section .data
text db "REEEEEEEEEE",0
text2 db "REEEEEEErEE",0
differ db "they differ",0
notdiffer db "they do not differ",0
section .text
global main
main:
sub rsp, 8 ;enter
mov rdi, text
mov rsi, text2
call diff_func
cmp r10b, 1 ;why tf did i make ut r10b as the return like tf?!?!?!?
jz _notdiffer
_differ:
mov rdi, differ
cld
call puts
jmp _end
_notdiffer:
mov rdi, notdiffer
cld
call puts
_end:
add rsp, 8 ;exit
ret