From 3eae1d082fbd86d48a8f9ee2c57b8931a468cb59 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 21 Nov 2019 05:04:37 +0100 Subject: Initial commit (i cant even compile this shit) --- ft_strcmp.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ft_strcmp.s (limited to 'ft_strcmp.s') diff --git a/ft_strcmp.s b/ft_strcmp.s new file mode 100644 index 0000000..4c5aee7 --- /dev/null +++ b/ft_strcmp.s @@ -0,0 +1,12 @@ +_ft_strcmp: + mov eax, sp + mov ebx, sp + 8 + FT_STRCMP_LOOP: + cmp eax, 0 + jneq FT_STRCMP_LOOP + cmp ebx, 0 + jneq FT_STRCMP_LOOP + cmp eax, ebx + jeq FT_STRCMP_LOOP + sub eax, ebx + ret -- cgit