🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 3 Min Lesezeit
0

Learn Assembly in 3 Minutes ⏳💻

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Hey there, fellow curious mind! 👋 Did you know that the word computer comes from the Latin computare, which means to calculate? 🧠 A computer is basically a hyper-fast calculator with fancy tricks. These tricks are powered by a set of interconnected circuits running programs. Cool, right? 😎



Now, let’s go a step further—every modern computer you’ve ever used is based on something called the von Neumann architecture. It’s got four major parts:




  • 1️⃣ ALU (Arithmetic Logic Unit): Does the number crunching and logical operations. 🧮

  • 2️⃣ Control Unit: The “manager” that keeps everything running smoothly. 🕹️

  • 3️⃣ Memory: Stores your data and programs. 🧠

  • 4️⃣ Input/Output devices: These let you talk to your computer and vice versa (e.g., keyboard, monitor). 📠



All these parts are connected by highways of data called buses. 🚌



Alright, that’s enough history—let’s dive into the nitty-gritty and learn Assembly Language, the secret sauce of speaking to your CPU directly. Let’s gooo! 🚀






Step 1: Setting Up Your Toolkit 🛠️






Windows




  • Download the NASM assembler from the official site.

  • Install it and add it to your system PATH so you can call nasm from anywhere.

  • Use a text editor (like NeoVim) to write your .asm or .s files.






Linux




  • Open your terminal.

  • Install NASM by running:




CODE
sudo apt update && sudo apt install nasm







  • You're all set to write .asm files using any text editor!






Step 2: Learn the Basics 📖






Registers: Your CPU's Pocket Notebook 📓



Registers are small storage spaces in the CPU for quick data access. Here are the essential ones:




  • RAX: General-purpose accumulator. Often used for return values.

  • RBX: Another general-purpose register.

  • RCX/RDX: Used for counters and data handling.

  • RSI/RDI: For string operations.

  • RSP/RBP: Stack Pointer and Base Pointer for managing the stack.






System Calls: How the CPU Talks to the OS 📞



Syscalls are like knocking on the operating system’s door to ask for services like printing or reading input. Each syscall has a number. For example:



1 (write): Write something to the screen.

60 (exit): Terminate the program.





Step 3: Write and Run Your First Program ✍️💻



Here’s a simple Assembly program that prints "Hello, world!" and exits.



Code: hello.asm




CODE
section .data
message db "Hello, world!", 0xA ; Define a string with a newline

section .text
global _start ; Entry point for the linker

_start:
mov rax, 1 ; Syscall number for write
mov rdi, 1 ; File descriptor (1 = stdout)
mov rsi, message ; Address of the message
mov rdx, 14 ; Message length
syscall ; Call the kernel

mov rax, 60 ; Syscall number for exit
xor rdi, rdi ; Exit code 0
syscall ; Call the kernel









Assemble and Run






On Linux:



Assemble the program:




CODE
nasm -f elf64 hello.asm






Link it:




CODE
ld -o hello hello.o






Run it:




CODE
./hello









On Windows:



Assemble the program:




CODE
nasm -f win64 hello.asm -o hello.obj






Link it using a linker like GoLink or MinGW:




CODE
golink /console /entry:_start hello.obj






Run it:




CODE
hello.exe









Step 4: Bonus: A Read and Print Example 📖✏️



Let’s read user input and print it back!



Code: echo.asm




CODE
section .bss
input resb 32 ; Reserve 32 bytes for input

section .text
global _start

_start:
; Read input
mov rax, 0 ; Syscall number for read
mov rdi, 0 ; File descriptor (0 = stdin)
mov rsi, input ; Buffer for input
mov rdx, 32 ; Max number of bytes to read
syscall

; Write input back to stdout
mov rax, 1 ; Syscall number for write
mov rdi, 1 ; File descriptor (1 = stdout)
mov rsi, input ; Address of the input buffer
syscall

; Exit
mov rax, 60 ; Syscall number for exit
xor rdi, rdi ; Exit code 0
syscall






And that’s it! 🎉 You’ve just learned the basics of x86-64 Assembly! Keep experimenting, and soon you’ll feel like a wizard casting CPU spells. 🧙‍♂️✨

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Learn Assembly in 3 Minutes ⏳💻

Thematisch verwandte Begriffe: Learn, Assembly, Minutes · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...