Тёмный

x86 Assembly - Hello World Explained 

NeuralNine
Подписаться 342 тыс.
Просмотров 44 тыс.
50% 1

In this video we will take a look at a simple hello world program in x86 Assembly and explore how this language works.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Наука

Опубликовано:

 

2 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@StephenEhrlichPhotos
@StephenEhrlichPhotos 2 года назад
About 1970, I first started to learn programming. Initially I had to write in Machine Code (Binary). Later we learned Assembler, which was so much easier than Machine Code. Later the programming languages we could learn was Fortran or BASIC (the first iteration of BASIC). All of our code had to be punched onto Punch Cards and then loaded into the computer. Our modems were either 110 or 300 baud. (yes, very slow). So seeing a video about assembler brings back many memories. FYI -- the largest Assembler program I wrote in college was about 500 to 900 punch cards. (You did not want to drop your box of punch cards.)
@MaxCE
@MaxCE 2 года назад
im afraid to ask how you wrote in binary
@StephenEhrlichPhotos
@StephenEhrlichPhotos 2 года назад
@@MaxCE On punch cards, Only could use zero or one, and each instruction was the exact number of bits. Typically a first few bits were the instruction (add, subtract or compare.) and the remaining bits were the parameters, such as which register and maybe a constant. This was about 50 years ago, so I do not remember all the specifics.
@adaptablerubenvideos3097
@adaptablerubenvideos3097 2 года назад
@@StephenEhrlichPhotos binary, that’s probably pretty insane if you are able to write on that language today because the only thing you see are numbers
@user-dn2ud7jl6i
@user-dn2ud7jl6i Год назад
So insane i thought u was ironic
@tahmidbhuiyan5591
@tahmidbhuiyan5591 Год назад
Remarkable
@decoder6878
@decoder6878 2 года назад
Damn!!! I never expected this content. Please make a series. Love your content!!! ❤️
@otiopo7459
@otiopo7459 2 года назад
Why so underrated
@LukieHZX
@LukieHZX 2 года назад
I found it after hours on my start page
@andrewlalis
@andrewlalis 2 года назад
Cuz nobody writes asm
@otiopo7459
@otiopo7459 2 года назад
@@andrewlalis what about other vids
@sw-code6027
@sw-code6027 2 года назад
Hello Sir! I recently watched your PRINTING Hello World in Assembly language. I was quite impressed from that video and I understood it very well. Unfortunately there's only one video of Assembly language in your channel. Please it's my humble request to add more videos about Assembly language. Thanks a lot in advance
@bishnudas3562
@bishnudas3562 2 года назад
Finally I can add Assembly on my resume
@isomane7911
@isomane7911 2 года назад
wow i did not expect x86 assembly here and although i've been learning it already, i'm still really excited
@ericmurithi8481
@ericmurithi8481 7 месяцев назад
This is your first video I have seen and I'm so impressed. You teach well
@abrarmasumabir3809
@abrarmasumabir3809 2 года назад
plz make a series on Assembly
@SVSingam273
@SVSingam273 2 года назад
@NeuralNine. More tutorials on Assembly would be much appreciated. Really interesting.
@ericchu4364
@ericchu4364 2 года назад
This is the clearest video I have seen about assembly language. Thanks a lot.
@si1az0
@si1az0 Год назад
ikr I could actually follow along without errors somehow
@edinetgrunhed6000
@edinetgrunhed6000 2 года назад
perfect !!! i like this video comparing assembly to C and how machine works
@MadGlitch
@MadGlitch 2 года назад
Thanks so much for this, looking forward for more assembly content ! Maybe a course ?
@rabibasukala7816
@rabibasukala7816 2 года назад
why is he so underrated?
@MrHasooooni
@MrHasooooni 2 года назад
i dont know it make me sad that he is not famous although his content is super rich !!
@oguzhantopaloglu9442
@oguzhantopaloglu9442 2 года назад
can you actually do an assembly 8086 lesson/course?
@malwareman2970
@malwareman2970 2 года назад
The subtitle helped me ALOT!
@mahmoudbechki8210
@mahmoudbechki8210 2 года назад
Ur the best man keep it up ♥️🔥
@seekilm_
@seekilm_ 7 месяцев назад
so smooth im impressed
@maxmuster7003
@maxmuster7003 2 года назад
There are some deleloper manuals from INTEL and AMD for x86 CPU and there is an online assembler to test some instructions.
@ahmedahmedeg7941
@ahmedahmedeg7941 2 года назад
I don't understand how this guys get low views in his videos, his content is really helpful and important
@tonysofla
@tonysofla 2 года назад
Assembler for a high-end CPU's like arm7 or x86 is not recommended, opcodes have many advanced variations like adding two registered and moving it to a third (MOV R1, R3, R8) 6502 and msp430 assembler is OK, but learn to program in C "assembler style" state machine, let the compiler handle the var placement and initialization.
@codzo2628
@codzo2628 2 года назад
Awesome content 👍👍
@RoyWalker-hc1gk
@RoyWalker-hc1gk 2 месяца назад
That is so amazing nothing like C at all but I think I will love this just as I love C.
@0verflowSec
@0verflowSec 2 года назад
Keep it up...Love you
@achiyederi3622
@achiyederi3622 2 года назад
Could you make a series out of it?.
@Brutalist_
@Brutalist_ Год назад
Which font are u using ? Its look amazing
@turgutbababalm9981
@turgutbababalm9981 2 года назад
please make more assembly!
@raghavsrivastava2910
@raghavsrivastava2910 2 года назад
Why did you link , there was just one translation unit... please explain.
@bgill7475
@bgill7475 2 года назад
I'm a little confused, it says x86 in the title but you're using 64 bit registers?
@D0Samp
@D0Samp 2 года назад
x86 is a family of processors and instruction sets (IA-16, IA-32 and 64-bit additions to it). Writing assembly for a Linux x86_64 program is a valid modern demonstration of it. The 32-bit hello world program looks exactly the same, except it's using 32-bit registers (eax, edi, esi, edx) and the SYSENTER instruction (or INT 0x80 if you're oldschool) since SYSCALL is an AMD invention that Intel processors only support in 64-bit mode.
@informationgiant7697
@informationgiant7697 10 месяцев назад
how does the code you wrote , understood by computer(or coverted to machine code)
@PoorSkill
@PoorSkill 2 года назад
Thank you!!!
@Nathan-xv1nd
@Nathan-xv1nd Месяц назад
Please make a Assembly for beginners course please
@guilherme5094
@guilherme5094 2 года назад
Nice!
@jedrzejkoszewski4342
@jedrzejkoszewski4342 2 месяца назад
Every 5 years, coding becomes 5 times easier. At present it's easy enough that anyone with enough time can create something with it and with A.I. on the horizon it will be easy enough that even complete amateur will be capable of creating something.
@baudysdev
@baudysdev 2 года назад
more assembly please!
@thomasgoodwin2648
@thomasgoodwin2648 2 года назад
Trippin' back now to places I been to.... I couldn't afford a decent assembler for my C64(6502/6510), so I wrote my own. The assembler itself was written in extremely tight Basic. Assy source files were written using Speedscript. I used it at the time mainly for a new threaded code compiler language I was working on. I don't think I could even imagine trying to solo write an assembler for modern systems today. How times have changed.
@javifontalva7752
@javifontalva7752 Год назад
Do you have a tutorial on x86 assembly?
@dexophobia
@dexophobia Год назад
for some reason its saying my file (test.o) isnt a reconised format (command) ld -o test test.o
@casinatorzcraft
@casinatorzcraft 2 года назад
Is msglength stored in memory in the data section or assembled as a constant?
@shaiavraham2910
@shaiavraham2910 2 года назад
It is assembled at compile time. The EQU directive instructs the compiler to replace all occurrences of msglength with the constant 0x20 (or the other constant it was set to). The object file has no idea what is msglength and it doesn't store it in memory. It only appears as a constant. It's very similar to a C or C++ macro or #define.
@thedevnoteyt
@thedevnoteyt 2 года назад
Thanks ❤️
@maxmuster7003
@maxmuster7003 2 года назад
I like to write into the framebuffer.
@elijahjflowers
@elijahjflowers Год назад
Thanks
@caleb22lr
@caleb22lr 2 года назад
I've been writing assembly for a year now. it's awful and I hate it. I highly recommend learning it 10/10
@maxmuster7003
@maxmuster7003 2 года назад
How the text is written to the screen memory is not shown and not explained.
@velvethamster9809
@velvethamster9809 Год назад
Didn’t know Ricky Martin is well versed in Assembly language
@billp37abq
@billp37abq 2 года назад
Going to try this under Ubuntu. Author: machine, assembly and system programming for the ibm 360. 1969. Been using Forth interactive, incremental assemblers since ~1982. No link step. :) Batch assemblers 1960 technology. :(
@trs80model14
@trs80model14 8 месяцев назад
Amazing how much of your list is still relevant!
@billp37abq
@billp37abq 8 месяцев назад
Experimenting writing machine code in portable transparent c bypassing assembler. Works on x86 and arm platforms so far. Let compiler writer tell us what machine codes to use.
@muthurubant5812
@muthurubant5812 2 года назад
🔥🔥🔥🔥
@xrafter
@xrafter 2 года назад
What does NR means ?
@himalpoudel7558
@himalpoudel7558 2 года назад
set noshowmode to hide the original status
@raydonmuregi132
@raydonmuregi132 7 месяцев назад
Learnt the MOV rax, 0x1 and what it means. Also how to start an assembly program. global _start section .something _start: I didn't quite catch the MOV rdi, 0x1 and MOV rsi, msg. Just heard that it's something to do with buffers. Learnt about msg: DB "Hello World", 0xA. (A is ten in hex) And nasm installation. Assembly is machine dependent. Yeah. Okay. Just made sure I could type the little bits I got.
@marsrocket
@marsrocket 2 года назад
EQU is equals, isn’t it?
@maxmuster7003
@maxmuster7003 2 года назад
Yes.
@asdasd-hr7xb
@asdasd-hr7xb 2 года назад
Starts at 2:13.
@alejandroalzatesanchez
@alejandroalzatesanchez 2 года назад
damn looks ez, i hope its ez
@raydonmuregi132
@raydonmuregi132 7 месяцев назад
How to write hello world. 14 minutes💀☠
@isaacurban2790
@isaacurban2790 Год назад
14 minutes
@mohamedabdelrehem7698
@mohamedabdelrehem7698 2 года назад
First❤
@scriptkiddie6151
@scriptkiddie6151 2 года назад
Firstttt
@Joey-dj4cd
@Joey-dj4cd 4 месяца назад
bro literally make a mistake in a Hello World program and couldn't figure it out. This talks a lot about ASSEMBLY
@volkwell-wk3eq
@volkwell-wk3eq 4 месяца назад
it tells you a lot about him as a programmer.
@trwwrt5687
@trwwrt5687 2 года назад
section .text for what
@c3a118
@c3a118 2 года назад
it is a section
@__gadonk__
@__gadonk__ 2 года назад
@@c3a118 ....
@__gadonk__
@__gadonk__ 2 года назад
@@c3a118 basically Memory is segmented into different segments that hold either data or instructions. I think it has to do with some limitations of the x86 architecture. That way you can load the diffrent parts of the programm into the corresponding segments by defining the section or segment inside it.
Далее
Hello World на Ассемблере (x86)
9:34
Просмотров 157 тыс.
I need your help..
00:28
Просмотров 5 млн
x86 Assembly Crash Course
10:45
Просмотров 819 тыс.
Top 10 Craziest Assembly Language Instructions
15:19
Просмотров 455 тыс.
2 Years Of Learning C | Prime Reacts
22:24
Просмотров 236 тыс.
What Is Assembly Language?
24:56
Просмотров 449 тыс.
Be Careful When Using scanf() in C
12:22
Просмотров 126 тыс.
Rust for the impatient
10:43
Просмотров 650 тыс.
Comparing C to machine language
10:02
Просмотров 5 млн
I made the same game in Assembly, C and C++
4:20
Просмотров 640 тыс.
Индуктивность и дроссель.
1:00
How charged your battery?
0:14
Просмотров 2,8 млн
ПК с Авито за 3000р
0:58
Просмотров 1,6 млн