How Do I Learn Assembly?

  Рет қаралды 191,901

Low Level Learning

Low Level Learning

6 ай бұрын

Live on Twitch: / lowlevellearning
Learn assembly through C coding! Understand the binary, stack, and while loop concepts. #Assembly #Programming #Ccoding #TechEducation #CodeLearning
🏫 COURSES 🏫 Check out my new courses at lowlevel.academy
🙌 SUPPORT THE CHANNEL 🙌 Become a Low Level Associate and support the channel at / lowlevellearning
Why Do Header Files Exist? • why do header files ev...
How Does Return Work? • do you know how "retur...
🔥🔥🔥 SOCIALS 🔥🔥🔥
Low Level Merch!: lowlevel.store/
Follow me on Twitter: / lowleveltweets
Join me on Discord!: / discord

Пікірлер: 95
@shanehebert396
@shanehebert396 2 ай бұрын
We used to call C "High Level Assembly".
@zFede_Rico
@zFede_Rico Ай бұрын
i started programming in assembly to learn it and now i get why people say this
@KanjiCoder_RTFM
@KanjiCoder_RTFM 10 күн бұрын
I've been coding C since 2020 and still don't know assembly .
@CallousCoder
@CallousCoder 6 ай бұрын
I have 5 or 6 episodes on ARM64 assembly where we even end up doing GPIO on the pi, for those who are interested
@mr.incognito4640
@mr.incognito4640 5 ай бұрын
Where?
@CallousCoder
@CallousCoder 5 ай бұрын
@@mr.incognito4640 on my channel there’s a play list.
@imperim
@imperim 2 ай бұрын
send
@CallousCoder
@CallousCoder 2 ай бұрын
@@imperim have fun.
@imperim
@imperim 2 ай бұрын
@@CallousCoder where?
@_Zie_
@_Zie_ 17 күн бұрын
So, my journey learning about computers started at the bottom, with that I mean, learning how binary works, learning how transistors work, and learning how logic gates work. I downloaded logisim and re-created Ben Eaters breadboard computer. In that process you have to write control words for instructions, literally bit by bit turning parts of the CPU on and off. Assembly didn't seem so hard after writing programs in machine code.
@squid13579
@squid13579 26 күн бұрын
start with sasm( ide for assembly), ida free ( to view in graphs xrefs , imports )and tools like objdump and readelf ( to understand got, ptl .rodata , understand linkers and lazy and dynamic binding , and other crazy stuffs..) 😂.
@coolbrotherf127
@coolbrotherf127 6 ай бұрын
I started with 32bit ARM Assembly for raspberry Pi CPUs. The architecture is a bit more beginner friendly compared to standard x86 assembly. Great way to also learn how to use the Linux command line as well.
@rviewer7452
@rviewer7452 6 ай бұрын
Same, that is what they used in my Computer architecture class
@davep8221
@davep8221 3 күн бұрын
I love that architecture. I began programming way too long ago. No superscalar, 0 depth pipelines, etc. When I saw the conditional execution instructions and realized how MFing brilliant they were, it put a smile on my face. The FIQs are brilliant, and on the SOC I used, the MMU design was optimized for so many situations, yet simple to use. I'd never done actual MMU programming, but ARM made it easy.
@AndrewMilesMurphy
@AndrewMilesMurphy 5 ай бұрын
Assembly and any references to the stack ALWAYS make me feel like I’ve eaten an entire tube of off-brand Pringles and am now suffering digestive trauma to my esophagus.
@mayapankhaj9124
@mayapankhaj9124 6 күн бұрын
Glad someone feels the same
@AK-hw9ij
@AK-hw9ij 29 күн бұрын
I don’t know why your channel isn’t gigantic. I’m confident it will be one day. I beg you, never stop.
@FrozenKnight21
@FrozenKnight21 6 ай бұрын
I learnt ASM through online tutorials. It was fun, it was even more fun learning how to count cpu clock cycles, and eventually how to compleatly ignore ebp based stack frames.
@BigTurtleMane
@BigTurtleMane 6 ай бұрын
I learned with “Assembly Language Step-by-Step” over Christmas break one year when I was like 19. I felt so 1337 😂
@steamrangercomputing
@steamrangercomputing 5 ай бұрын
I did the opposite. I learnt to code in assembly on the Amiga and then tried to make a large project, thought "This is shit", and moved to an optimising C compiler.
@skryfall
@skryfall 5 ай бұрын
I learned assembly by doing my own ISA and creating a custom processor in Verilog. I honestly believe that while it isn't the most optimal way to learn, you will learn a lot.
@6srer
@6srer 6 ай бұрын
I want to understand computers like this guy, #lowlevel learning 🎉
@kcvinu
@kcvinu 6 ай бұрын
I started coding as a hobby in 2014 and only last week I learned the difference between malloc and calloc. Because, I have been playing with language with GC all these years.
@6srer
@6srer 6 ай бұрын
@@kcvinu 🤣🤣🤣oh, there's also realloc.
@6srer
@6srer 6 ай бұрын
@@kcvinu Everyday we learn something new ✊
@kcvinu
@kcvinu 6 ай бұрын
@@6srer Yeah
@nolanrata7537
@nolanrata7537 Ай бұрын
I learned x86 assembly by writing a bootloader that can read and load an ELF kernel from an ext2 partition, it was a lot of pain but also a lot of fun!
@user-gn1em4ly4b
@user-gn1em4ly4b 6 ай бұрын
Is ARM a good platform to start learning Assembly?
@georgehelyar
@georgehelyar 6 ай бұрын
It's all fun and games until every instruction is relative to the current location
@davep8221
@davep8221 3 күн бұрын
Now use -O3 on a moderately complex program. IIR, strcmp() is so optimized (and inlined) that the asm is almost unrecognizable. Some things will use SIMD instructions (if available).
@ibi3846
@ibi3846 6 ай бұрын
Just learn beta assembly with MIT course as an introduction (course is free on the net). Then code a compiler from any source to beta uasm. Then learn classic assembly. At this point, ur top 0.01% of programmer in terms of deep understanding and C has even become easy !
@_____MMM
@_____MMM 6 ай бұрын
I did the opposite, I wanted to learn C, so I started with Assembly. I had a verry hard time learning C even tho I had years of experience in programming (High level languages), but ASM was much easier.
@koiledPythonRain
@koiledPythonRain 6 ай бұрын
: 💀
@baranjan6969
@baranjan6969 6 ай бұрын
Lmao same happened I failed to learn C after python so learned assembly then C and now I can't write python codr anymore
@BigTurtleMane
@BigTurtleMane 6 ай бұрын
@@baranjan6969😅
@wil-fri
@wil-fri 5 ай бұрын
I started with C and Visual Basic 😅. That helped me a lot 😊
@davidgari3240
@davidgari3240 5 ай бұрын
if you know some C, then this is good advice because you can see how C works. If not, then a good simple assembler/disassembler for your favorite CPU is the best way. You are learning assembly for a reason: to become intimate with that and only that one CPU. You have to crawl (through broken glass) before you can walk. Take some electronics courses too, if you want to code bare metal. Performance benefits of machine code are diminishing as I write this. There was a time when computers waited for us. Now we wait for them. Soon they will be telling us what to do.
@mayapankhaj9124
@mayapankhaj9124 6 күн бұрын
You sound like a philosopher. We need more like you in the field. I trust you and your expertise. Any concrete tools I can start with?
@xerathgaming1915
@xerathgaming1915 Ай бұрын
ive been coding in c and limiting myself to syscalls and malloc and slowly building myself a library. im currently trying to recreate printf, its really fun tbh
@missquprison
@missquprison Ай бұрын
@@xerathgaming1915 when are you making your own temple OS?
@MikhailFederov
@MikhailFederov 6 ай бұрын
Respectfully I disagree. The best way to learn assembly is to painfully program in assembly. I had an architecture class in college that only allow us to write in x86-except for the last project. That was intentional as it showed how how grateful we were to have the abstractions afforded to us by C, after a semester-long drought of not being able to write even a single if statement
@ercntreras
@ercntreras 6 ай бұрын
Once you realize that everything wasn't so hard once you dedicated the time to learn it
@azhagurajaallinall126
@azhagurajaallinall126 6 ай бұрын
"This is the for loop" nice Have to try for the golden classic "hello world",then start off with simple "compare programs" to learn 😊(thats a good way) Have to learn how to make a compiler more over,internet is wretched,to find right resources,filled with scraps,manipulations like some kinda misbelief,mlm network or so,whatever Thank you Wish all be well 😃🌟✨🙌 04.02.2024 06:26 pm ist (43rd comment,3.2k+ likes,59,266+1views)
@AdiVarshney-f6i
@AdiVarshney-f6i 23 күн бұрын
Wait what is the reason that people learn assembly or like what’s the benefit? Can’t most high level languages(like java or cpp) provide everything that a typical modern programmer needs(like for jobs or other coming use cases for programming and cs)?
@PlayBASIC-Developer
@PlayBASIC-Developer Ай бұрын
To kick start learning Assembly today, get into retro emulation. Amiga/Atari St/Classic Mac for 68000 or even DosBox for classic 286/386/486 etc .. easy and safe !
@mayapankhaj9124
@mayapankhaj9124 6 күн бұрын
Sounds golden. Thank you
@SirArtanis7
@SirArtanis7 6 ай бұрын
By chance, do you know how to get your hands on IBM assembly? Or IBM cobol? I'm working on my own solution for this and the best I have is a rasberry pi that runs z/os
@AlTiri-rd7ly
@AlTiri-rd7ly 5 ай бұрын
Nice
@D0J0P
@D0J0P 7 күн бұрын
When I learn programming, I will start with C, then probably Assembly afterwards.
@seeker4430
@seeker4430 24 күн бұрын
But how do I view the assembly after compiling C code?
@kamilziemian995
@kamilziemian995 2 ай бұрын
I want to learn assembly.
@joshuathomas512
@joshuathomas512 26 күн бұрын
Cosworth getting all the business
@cerberusrap
@cerberusrap 4 күн бұрын
I tried that way but didn't work for me. I dived into books.
@wisteela
@wisteela 6 ай бұрын
What application is being used to disassemble the code?
@MaKaNufilms
@MaKaNufilms 6 ай бұрын
seems to be objdump, but what I am more curious about how he builded, so my x539 is positioned at a different place. I am a total noob of C and ASM, just builded with gcc -o main.o main.c
@baranjan6969
@baranjan6969 6 ай бұрын
objdump -d a.out works but idk what he used here
@tlhIngan
@tlhIngan 10 күн бұрын
Ah ARM assembly.... Though I think this code is a bit too little to determine if it's AArch32 or AArch64. There are subtle differences between the two, mostly in system level code, but a few drop in user code too.
@daanhoek1818
@daanhoek1818 6 ай бұрын
Not only that, but the best way to *write* assembly is also by writing C code!
@ottersmeep25
@ottersmeep25 6 ай бұрын
What is a variable? Is that like saying MOV XXXXXXX BAK
@jakubkucera1973
@jakubkucera1973 6 ай бұрын
It's actually more important to be able to read assembly than to actually write it
@kwazar6725
@kwazar6725 5 ай бұрын
Write ur own Assembler, disassember, compiler, opimizer linker and then come here😂
@j.ysr0
@j.ysr0 2 ай бұрын
Font name?
@GavHern
@GavHern 3 ай бұрын
honestly if you have never worked in assembly at all i wouldn’t recommend this. maybe after a few starter assembly projects
@Walkingdeadman1991
@Walkingdeadman1991 5 ай бұрын
I was just starting to get my head around x86-64 ASM and now I'm getting hit with ARM 😭
@john7samuel85
@john7samuel85 4 ай бұрын
how to access the memory like he does
@brenomanhaes9322
@brenomanhaes9322 2 ай бұрын
Gdb
@daviddelaney363
@daviddelaney363 6 ай бұрын
Is this 3270 Assembler?
@RealCadde
@RealCadde Ай бұрын
There are two even better alternatives to learning assembly if you know nothing to begin with. 1) Play Shenzhen IO. and/or 2) Watch Ben Eaters videos on breadboard computers. That gets you up and running with the wind in your back.
@mayapankhaj9124
@mayapankhaj9124 6 күн бұрын
Thank you!
@alst4817
@alst4817 17 күн бұрын
I code in assembly, I run Temple.
@imme7439
@imme7439 6 ай бұрын
How you got compiled c assembly code?
@CaridorcTergilti
@CaridorcTergilti 6 ай бұрын
You have to use a special compiler flag
@imme7439
@imme7439 6 ай бұрын
@@CaridorcTergilti oh thx
@menoone2042
@menoone2042 6 ай бұрын
You can learn assembly using cheat engine
@rty1955
@rty1955 5 ай бұрын
I could NOT disagree more. The best way to learn assembly is to pick up or obtain on the internet how the particular CPU functions. Learn all the Op codes and What they do. Then pick an assembler (they are different) and learn the particular assembly directives and how they work. Flowchart your work first so you can break down each block of work into proper assembly code. I have been coding in assembly since 1969
@vmdehart2
@vmdehart2 6 ай бұрын
What is assembly? Is this like coding? what is being assembled here
@lautarobeheran
@lautarobeheran 6 ай бұрын
Its basically machine code. Instead of a more human readable code, asembly shows you the instructions that are being sent to the computer, at a very fundamental level
@ares106
@ares106 5 ай бұрын
Human resource machine.
@MrGeometres
@MrGeometres 6 ай бұрын
Just play Shenzhen I/O.
@jmooroof1769
@jmooroof1769 6 ай бұрын
Shenzhen I/O is something you should do after learning ASM
@romania-n6q
@romania-n6q 2 ай бұрын
This is not how human write assembly code this could help if you're not a beginner. We use a lot of tools and libraries and we got our own best practices
@liquid8980
@liquid8980 6 ай бұрын
The best way to learn assembly is through blood sweat and tears.. Go find a tutorial online and sit and trust that you will learn how it all works with time. C programming can help for sure but the Best way is sitting and actually trying to program in assembly.
@oussama7132
@oussama7132 6 ай бұрын
but why? unless you're being paid money that will make you retire in a year
@iLLuzion1st
@iLLuzion1st 2 ай бұрын
Some people learn to ya know learn because they think it is cool. Not everything in life has to be money motivated.
@navidjalilian5087
@navidjalilian5087 6 ай бұрын
Duh, obviously!
@musicdudejoe263
@musicdudejoe263 6 ай бұрын
What
@rod653
@rod653 16 күн бұрын
i uh what???
@maximilianoalvarez8086
@maximilianoalvarez8086 13 күн бұрын
Nah, I’m good fam.
@mohamedb5060
@mohamedb5060 6 ай бұрын
can you stop the music because it is very annoying
@princemarkied8071
@princemarkied8071 2 ай бұрын
nope... just nope..
@KayC352
@KayC352 6 ай бұрын
yall learning assembly by learning C, im learning assembly by writing a bootloader, we are not the same
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 729 М.
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 19 МЛН
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 1,9 МЛН
zig will change programming forever
9:34
Low Level Learning
Рет қаралды 271 М.
Chunked Responses: Scaling File Exports for Production
8:27
Code & Stuff
Рет қаралды 735
How Does a Computer (Physically) Read Code?
13:23
Apeulu
Рет қаралды 21 М.
I stole a bunch of buttons...
Theo - t3․gg
Рет қаралды 262
computers suck at division (a painful discovery)
5:09
Low Level Learning
Рет қаралды 1,6 МЛН
Difficult Programming Concepts Explained
11:13
Engineer Man
Рет қаралды 69 М.
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3,1 МЛН
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Programming with Mosh
Рет қаралды 3,8 МЛН
reverse engineering makes you a better programmer (let’s try it out)
13:12
Low Level Learning
Рет қаралды 178 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 9 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 7 МЛН