Page 1 of 1

x86_64 Assembly

Posted: Mon Apr 20, 2026 7:55 am
by zero
Alongside C++ I am learning assembly, specifically for x86. I want to learn RISC-V assembly as well but at the moment it wouldn't be very practical as i do not have any devices with a RISC-V processor, but i plan on using one for a prototype eventually.

Funny enough, assembly isn't that hard. I actually have an easier time understanding calls.

I can print to the terminal.

Code: Select all

.global _start
.intel_syntax noprefix

_start:
        // sys_write
        mov rax, 1
        mov rdi, 1
        lea rsi, [hello_world]
        mov rdx, 39
        syscall
        
        // sys_exit
        mov rax, 60
        mov rdi, 69
        syscall

hello_world:
        .asciz "The application executed successfully.\n"
Try it!

If you want to discuss assembly or learn with me feel free :Wolf: