NASM Assembly Template
Assembly is planned to be added as a language but until then you can use Linux's NASM assembler.
You can learn NASM in @JustAWalrus' tutorial here.
Edit main.asm
in the template to start
Example Programs
Hello World
section .data msg db 'Hello world!', 0xa len equ $-msg section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 mov eax, 1 mov ebx, 0 int 0x80
If statement
section .text global _start _start: mov eax, 15 mov ebx, 10 cmp eax, ebx jg greater jl less greater: mov eax, 1 mov ebx, 0 ; exit with status code 0 if greater int 0x80 less: mov eax, 1 mov ebx, 1 ; exit with status code 1, something is wrong int 0x80
TysonBoring
Would you like to collaborate to produce a boot sector game? Something like a NES game?
programmeruser
@TysonBoring uh, sure, but I'm not the best at collaborations. And we would probably need to do it outside of repl.it since getting the software needed onto repl.it isn't the easiest task. Or, we could just use NASM and x86.
programmeruser
@TysonBoring hello?
Leroy01010
COOL!
Any good Assembly tutorials out there?
@jort57 https://repl.it/talk/learn/Assembly-Language-Crash-Course-1/44836
Note that it is for Linux, and will therefore not work with Windows.
@programmeruser i use chromebook with linux beta would that be ok?
@jort57 if you use repl.it it will work, and the linux beta on chromebook should be fine too.