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 r8, text mov r9, text2 call diff_func cmp r10b, 0 jz _notdiffer _differ: mov rdi, differ cld call puts jmp _end _notdiffer: mov rdi, notdiffer cld call puts _end: add rsp, 8 ;exit ret