How Strings Are Compared in Assembly | Beginner Tutorial | x86-64 Machine Code
Follow along with me in the x64Playground: https://x64.halb.it (Select GNU as the Assembler!) Watch the course from the beginning: • Learn Assembly For Beginners | Introductio... Next Video in Course: • Building a Tiny Shell in Assembly | Beginn... Previous Video in Course: • How a Shell Reads Commands | Building a To... 00:00 Why CMP fails for Strings 01:36 Coding strcmp() in Assembly 07:10 Testing strcmp() 8:55 Outputting match/no match 12:40 CHALLENGE: Check only N characters of string ;##### Code Below exit: xor rdi, rdi mov rax, 60 syscall print: push rdi call slen pop rsi mov rdx, rax mov rax, 1 mov rdi, 1 syscall ret println: push rdi call slen pop rsi mov rdx, rax mov rax, 1 mov rdi, 1 syscall mov rax, 1 mov rdi, 1 lea rsi, [newline] mov rdx, 1 syscall ret slen: xor rcx, rcx slen.loop: mov al, [rdi + rcx] cmp al, 0 je slen.ret inc rcx jmp slen.loop slen.ret: mov rax, rcx ret ;#########

Building a Tiny Shell in Assembly | Beginner Tutorial | x86-64 Assembly Course

How C Really Works

How printf() Works in Assembly | x86-64 Beginner Tutorial | Print Strings, Chars, Hex, & Integers

C Strings are Terrible!

Mastering x86-64 Assembly: A Beginner's Guide to CPU Registers

Convert Integers to Strings in Assembly | Beginner Tutorial for x86-64 | itoa() Assembly Programming

Writing malloc() from Scratch in x86 Assembly

We're 99.9% sure this pattern is true, but no one can prove it

BASIC on This 80’s Minicomputer is Terrible!

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

How a Shell Reads Commands | Building a Tokenizer in Assembly

10 Tips for debugging Bash Scripts (actually useful and real-world applicable)

How Linux Boots

Integrated SSDs Should Be Illegal, But Why Would They Care!

but what is 'a lifetime?

String Length Function | Assembly Tutorial for Beginners | x86-64 Architecture | Learn Programming

Objects in Assembly | Beginner Tutorial | x86-64 Assembly Course | Learn Programming

Tips for C Programming

