How to Make Functions in Assembly: The JMP Command | Beginner Assembly Tutorial | x86-64 Assembly

Опубликовано: 21 Апрель 2026
на канале: Mxy
4,736
234

CODE TO COPY:

```
.intel_syntax noprefix
.global _start
.text
_start:

mov rax, 1
mov rdi, 1
lea rsi, s1
lea rdx, s1_len
syscall

mov rax, 60
xor rdi, rdi
syscall


s1: .ascii "hello, world!\n"
s1_len = . - s1
```
Next Video in Series:    • Why is the CALLSTACK so Important? Assembl...  
Emulator Link: https://x64.halb.it
First Assembly Beginner Video in Series:    • Learn Assembly For Beginners | Introductio...  
Previous Episode:    • Learn 'Hello World' in Assembly | Tutorial...  

00:00 Intro
01:00 Adding Labels to Memory Addresses
01:41 The JMP Command
05:13 How to Return from Function Call
09:45 Why we need the Stack