I had a couple assembly programming classes during my CS course in university. It's definitely a much different way of writing programs compared to higher level languages. To me, it felt like a puzzle game, where management of "position" within memory was a huge part of it. Function calls are also interesting, since essentially it's just a block of code in memory with a pointer you can jump to, then jump back to your previous position once finished. Even a program to just do simple math was quite involved. No such thing as strings either, just char arrays. Funny enough, taking that class on assembly finally helped me "get" C. All the stuff about pointers and memory management/allocation didn't click until writing assembly, then I understood what it was for. Looking at C as an abstraction over assembly really helped me become a better programmer.
This gave me an idea for an actual puzzle game where you use simple opcodes to move numbers between boxes and it gets more and more complicated until you realise that you’re writing assembly
Yep, C is basically a better macro assembler. I feel your heureka moment! I came from the other direction, and it took a while to get what C was actually good for :)
Always wanted to learn Assembly, but never have I understood it's complexity. You simply explained the most basic part of the Assembly language in 100 seconds clearly. Thanks! I might use this for future references!
Hey! It helps to start learning assembly on older chips that were less complicated. In my Uni we work with assembly on 8051 microcontrollers. They are quite old, but it's easier to grasp the basics on them. Overall, architectures used in microcontrollers tend to be a bit easier to understand than x86.
You should go ahead and learn it. I personally feel that my ability to debug things and make programs work increased after working on some simple projects in which I coded in assembly language. I would say that instead of learning about x86 assembly language, you should learn asm of Arduino Uno/Atmega328p. That is where I started. It is simple, and when those LEDs blinks, you get a feel of what it means to write assembly and how stuff works.
I'd highly recommend starting with a RISC instruction set like ARM. It's a reduced instruction set so it will be a lot less confusing than x86 when you are just starting out. Derek Banas has a pretty good video to get you started: ua-cam.com/video/ViNnfoE56V8/v-deo.html
2 роки тому+10
Learning an assembly language is pretty useful to better understand how a computer operates, I would also recommend going for a RISC architecture, they tend to have less instructions and more registers and I feel that helps reducing the complexity to start doing something nice, even if it is just adding 2 numbers and saving the result in a third registry. The one I first started with, many years ago, was the MIPS 3000 variant, that was the cpu used in the PlayStation 1 and very similar to the one used in the Nintendo 64.
Assembly is simple, it consist of simple instructions. The complexity comes from trying to program more than adding two numbers together. You need alot of instructions, to construct higher level logic, take care of program state, access memory, data structures. Then you need to understand many registers in the processor, how talk with all the peripherals and so on. It's easier to start with microcontroller and move from there. I enjoyed the AVR architecture, it's 8-bit CPU with about 100 instructions. But the whole processor datasheet can have 500 pages for all the various modules like analog to digital converter or serial interface.
@@archmad Its hyped because it allows you to write web applications with all (or the majority of) Javascript abstracted away. I would never go back after using blazor wasm. Its just miles easier to write good code and you get access to powerful tools like resharper / nuget ecosystem ontop of anything javascript.
@@ZephrymWOW as much as i love wasm for what it allows, i must say my experience with it supposedly eradicating the need for js has proved that it isn't really finished. WebAssembly seems to focus too much on being 'headless', being able to be run without the web browser nor even js enviorement, completely ignoring that this is the whole point of why it was created in the first place. Every single possible action you'd want to perform in javascript can indeed be performed using wasm, but only after you: 1. Import the functions needed. 2. If they have anything to do with strings, go through thousands of loopholes to get them right for both the wasm memory and js memory. 3. Only then call said functions within your wasm. It results in that either you or your enviorement/build tools (emscripten, wasm-pack, etc) *will* end up generating a *huge* mess of a "glue" javascript file that does the thing your web browser should have done in the first place. This is completely unnecessary and shouldn't be a problem in the first place, yet it is. Thus every website implementing webassembly will come with these giant files that will sacrifice the page loading times, cache space and overall both user and programmer experience. One step forwards, two steps backwards. I love yet i hate it. It's awesome.
@@beProsto 1.) You are misusing dependency injection. You can enable everything globally and it will be injected as needed. It's a better version of web pack. 2.) Give me a real example of your talking out of your ass parroting someone else. 3.) Its headless because of MAUI. You can just use a blazor dll and now you have xplatform THAT RUNS ON KERNEL. Every other alternative spins up a chromium container and is a glorified browser.
Assembly only looks complicated to the beginners but it's really not. MASM even provides high level directives like IF, ELSE, WHILE and standard macros for I/O that makes it really straight forward to focus on the performance of your algorithm.
@@eUnkn0wn you can write inline assembly in C if you want, difference is of performance and control over your code, bit shifting and direct access to stack frame and hardware. You can't do that with C
I had a tutor back in the mid-90s when I was just a teen hanging out on the local BBS... he always said "it's all rather simple", and I never got it and was wholly confused. Until one day when it just clicked and I realized all you're doing is reading, changing, and writing values to memory or output ports, and whatever is there interprets it; like the value 10 can be a green pixel in video memory.
@@raz0229 There is a talk by Matt Godbolt "What has my compiler done for me lately" (or somesuch), where he demonstrates really well how unlikely you are to optimize better than your compiler at this point. Besides C is basically just that: High-level assembler. Not saying that dabbling in ASM doesn't have its place, but personally I needed it mostly for debugging.
0:46 WebAssembly should not be confused with normal Assembly dialects like x86. It is much more of a compilation target than a language you would actually want to write in for performance reasons.
I would say that the WebAssembly text representation totally qualifies as an assembly language for the WebAssembly binary representation. Also, you can also theoretically create actually hardware that runs WebAssembly binaries, it's just that it's intended use case is to run it on a VM, similar to Java.
While I was studying digital electronics, I used to count binary digits with my hands. People gave me weird looks, but hey, you can easily count up to 32 with one hand.
Former communication engineer with what was once the BBC World Service... The sender control system at transmitter sites was written in Assembly which controlled banks of microcontrollers which in turn controlled the sender transmission schedule. Even in 2000 that was an arcane system of control. That said it was reliable. The software manual which contained all the instructions for the control system was as dense as a doorstep. The programmer who designed the code could be found lay belly down on the floor of the sender control system rapidly flipping through the hundreds of pages of instructions from the system manual to try to find bugs. They knew their code structure inside out and back the front. An amazing feat given that there was no IDE or such like at the time of it's original development (80's) - simply amazing human memory and knowing instantly every line of code and where it sat in the overall program. We don't know we're born these days.
A quick correction: the bss section is for variables whose size is known but data is not. We reserve space for variables in the bss section with resb (reserve byte). The data section is for variables whose initial value is known, and the rodata (read only data) section is for constants
To further expand on that: the bss section is allocated at program start and initialized to 0. Thus, only the size of it needs to be stored in the executable file. This is also the reason why C initializes globals to zero unless a value is provided - because it is essentially free - compared to local variables, which are uninitialized by default to save a few instructions.
I started my software journey in middle school reverse engineering, so I studied x86 assembly, PE architecture, stack smashing, etc. It was SO interesting to me, I would print out Iczelion tutorials and bring them to class to study. It brings back so many happy memories ❤
A small but important caveat: in most use cases, assembly still sits above the OS / kernel. So you won't work with actual physical memory ("bare metal") but with virtual memory; an abstraction provided by the OS. An exception might be when you are programming in kernel space.
WE did assembly language one semester in my University CS days in a 8085 or 8086 Microprocessor kit. We needed to check the chart referring to codes which had instructions. It was fun doing until you miss one step and repeat all over again.
Man. Your videos are so clean. So precise. No junk. No dumb intro that lasts 10 seconds. You title it perfectly as well. Thank you for adding junk-free material to the internet.
I am sure there is some other language he didn't covered.... otherwise tomorrow another language will born... Does he covered "V"? The new replacement of go....
I didn't know this, Chris Sawyer, wow! And it's an awesome game, the kids loved it. Reminds me of Eric Chahi writing Another World for the Amiga. A masterpiece, which he wrote alone. Some computer games are really impressive examples what one or two persons can accomplish.
also, .data is not for constants that do not change, it's basically an initialised version of the .bss section that takes up space in the executable. you can actually change it. for actual constants that do not change, use .rodata. Interesting video though :)
that takes up space *in the executable*. .bss, .data and .rodata all take up space in memory, the difference is that .bss is not stored in the executable but initialized with all zero bits by the executable file loader.
At 'computer school' I had to write an assembly compiler (in C)... The exercise/project was called 'Microsim'. Also, store the assembly code at sector 0 of a floppy, and you got yourself a booting program 😄
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
@@benc589 Funny you say that. Jesus never claimed divinity and he rejects people calling in his name instead of The Father (The God Above) in many passages of the Bible. Should the god deserve being called and worship? Why don't you worship the one who sent Jesus? And believe in the ways of His Final Prophet Muhammad? The prophet that has been prophesized in the scriptures?
Note: The method you used to write your hello world program here wasn't really "just" assembly (which is understandable, since writing a miniature operating system for a '100 Seconds of'-video is probably out of scope). You still used the kernel-specific API calls.
TBF if you run something in a modern operating system you HAVE to use API calls (called system calls) for anything that isn't just calculations. Otherwise you'd segfault. So unless you want to install DOS or create your own ring 0 OS because you want to build the third temple on your computer or something. You gotta accept that nothing you write will truly be "in assembly".
@@mrmimeisfunny At my job we don't use a operating system (well, we make our own RTOS), instead we program an SPI link to a PuTTY-linked peripheral and printf by sending data down the SPI line. So you can do printf without any API/syscalls, but bugger me is it hard work
@@mrmimeisfunny I should have clarified that I know that there's really no other way to do this (without writing your own os). Would not exactly be great if any program could just run any instructions it wants to without restrictions (through syscalls/an API).
I got my start with MIPS32 in university and I'm currently learning 6502 assembly just for fun. It's a really fun CPU to learn and the X16 uses it just like the C64.
I learned MIPS in university as well, does it matter what version of assembly we learn? When starting out I was so confused on the difference between arms and mips, and when searching tutorials they never showed what I was learning in class. I want to learn assembly but don't know what version to go with.
@@sergiohernandez72 That depends on why you want to learn it. If you want to understand the concepts, it doesn't matter. Learn any or preferably several of them (to see the differences). You might even want to have a look at completely synthetic ones (like MIX or DLX) or byte-codes like Pascal's or Java's. If you want to write real-world code in assembly (to make if faster or smaller or remove side-channels) then you would learn the assembly language of a processor in wide use: x86_64, ARM, some microcontroller, maybe a GPU ...
0:06 Actually that's what hexadecimal is for. Hex is far easier to count than binary. What assembly is for is to remember the instructions' names instead of their number. That's literally it. Without assembly programmers would likely remember instructions in hex rather than binary anyways. In fact if you deassemble a program you not only see the assembly instructions generated by the compiler but it shows you those instructions in hex instead of binary.
eyyy i use ASM a lot for my little z80 computer i made. this is a nice video to help explain what im doing to other people. it also makes my work a little more appreciated because now some people have the context to know how much work i put into it. Thanks for this because i suck at explaining things >.>
Insane to know the original pokemon games were written in assembly. Then the absolute madman, Satoru Iwata, optimized the fire out of them and fit a whole other game into the cartridge. RollerCoaster Tycoon too, and that was one person!
Im here to learn how difficult it was for Chris Sawyer to make Rollercoaster Tycoon. He wrote 98% of the code in assembly, by himself. An absolute legend.
Literally how are these videos this good? Absolutely fantastic! The graphics were great, the pacing was on point, and the narration is just down-right awesome.
The madlad did it - and even flavoured the like and subscribe again! I have been looking at Gameboy assembly for a long time, mainly for the GameBoy and GameBoy Color. Starting with the GBA, you can use ARM instruction sets and the tooling for both is pretty incredible (sdcc, lcc, z80sdk, ...). It sure is far different from writing nice looking code, but if you want to get something critical done, then your best way of achieving it, is to skip every and all abstractions and go bare metal via Assembly. :)
Actually DevKitArm and GBDK is the way most people go nowadays and some people actually managed to make impressive stuff with it thanks to the layer of abstraction. We're seeing more and more people make games for those platforms and part of the reason is excellent support for the C programming language. Now, if only CC65 was actually just as nice...
@@doigt6590 GBDK uses SDCC and I personally am still waiting for it to actually support C99... I wanted to try and use V which compiles to C, but because of ampersand statements, it makes SDCC error out a lot. But, DevkitARM/-PPC is amazing! I have those installed too. Personally, I am impressed how many unofficial SDL ports there are for some of those handhelds, which is pretty amazing!
Just wanted to let you know that section .data is for declared variables, section .bss is for undeclared variables, and section .rodata is for constants. You can edit the value of variables in the .data section.
Having developed programs for Intel 8086, I can say that the language helped me to understand the low level workings of a program built with a high-level language (like C++, Python)
@@davidl.7383 as C++ is on a higher level of abstraction, plus the fact that it's a "superset" of C, it make it difficult to really understand the mechanics behind the language and it has a really steep learning curve. Assembly is basicslly simple oprations with basic logic. But at the end, it will obviously be easier to make an app in C++ rather than in assembly.
I grew up with the C64. You could relative simply write Basic programs, which was great but they were quite slow. Assembler (for the 6502) was difficult to learn (even more without the possiblity to get information via the internet, you needed books, books, books...) but gave you a lot more possibilities and exponentially more speed. Note that with assembly language you don't only have to learn the instructions (mnemonics) and how to build routines, but also how to use libraries or the system custom chip architecture with all of its registers and how they work. Using Assembler was a must for quality and speed. And so, on 8 bit systems like the C64 nearly all of the commercial software was written in this tedious but fast language. Note that the detail information from 1:00 in the video is for x86 assembly, which runs on modern pc systems but is ... as a language a bit clunky. If you want to try out assembly yourself I'd recommend 6502 asm f.e. for the C64, which is pure 8 bit oldschool. Or 68k assembly f.e. on the AtariST or Amiga. It's nearly orthogonal, which means it's a good/nice assembler dialect imho. Compared to 6502 asm this 16-bit assembly is a bit more powerful and convenient. Btw. Winuae is a good Amiga emulator and Asmone a good assembler to start with.
z80 asm is my favourite, i used to do small games on my ti-84 calc with this, and there's some insane programs made in assembly for this machine, while the basic is just about using the functions to draw math stuff and things like this, the processor is a 15mhz z80 (while the gameboy is a 4mhz one) and assembly programs can use all of the archive memory, aka about 480ko (with 24ko of ram)... there's programs like a doom "port", a gameboy emulator or games simulating 9-level grayscale (there's no native support for grayscale on this machine), all of them entirely made in asm
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
I like to use intel 80386/80387 32 bit CPU. Today on an Android tablet with a Dosbox emulator app. I put all instructions into batch file to create tiny executable with a little help from debug.
I disagree that 65xx Assembly was difficult to learn. The Programmer's Reference Guide from Commodore covered pretty much anything you would want or need to know... and at least there was no need to deal with segments and offsets, as with x86 Assembly. If you used an Assembler (like PAL)... the landscape was even easier.
@@TheUtuber999 To have some 16 bit offset register on x86 are easier to handle as two bytes in the zero page of the C64 for building an address. On C64 we have a lot of calculation with 16 bit values, but only 3 register with 8 bit.
Being a child of the 80's home computer revolution my first programming language was Basic on my Commodore 64. The second was MOS 6510 Assembly language. The learning curve was *steep* for a 13-year old with no access to the internet. But what I learned then has been useful to this day (I am now 52). M68K Assembly on the Amiga is still the most fun I have had developing software. It's a beautiful instruction set and the Amiga had great custom chips that could do amazing things. It still does today!
If you want to start out Assembler, take 68000 - life is so much easier there (compared to x86, or even Z80). 6502 might be similarly simple, since it's basically RISC.
I am a long-time coder whose first commercial products were written in 100% assembly. One of the things in this video that raised my eyebrows is the explanation of what a CPU "register" is. Do modern developers / coders / software engineers (you young things below the age of, say, 30) not understand the basics of CPU structure/organization? Do schools/colleges/universities still teach this, or are we letting our future software developers into the world thinking that a CPU is a magic black box that "just works"?
please keep in mind that a significant portion of viewers who watch these video is self-taught programmer who just want to get things done and in the context of current development toolchain that make a thousand abstract layer between code and bare metal i can see why they need him to explain what a register even is
I studied physics. It is much more useful to just think of things as stuff that just works. We only wanted our equations to be solved and show us pretty graphs. The world is changing and if someone wants to know the lowest level stuff possible, that is great. This skillset is still needed. However, things that people expect of newer technology, like video games for example, can't be written 100% in assembly within 3 lifetimes. The world needs both kinds of people.
Dude i can understand your concern but, ypu know what there are books in schools and universities where they teach you about things like how data is stored in floppy drives, older computers, older ball mouse. and there exist people who complain that the computer world has become more updated/agile/evolving there ain't so much time to learn about all these useless stuff. so it's up to individual's preference if they want to know about these things in deep or not.
I graduated with a CS degree last year. We had a few subjects related to the CPU architecture (including ALU theory), binary logic and discrete math. And yes, it had very little correlation with the programming we were doing.
Level 4 (first year) at a UK university here. Can confirm we learned that CPUs do indeed have buses, caches, clocks, etc. in them. Can also confirm that we didn’t go into more detail than that and that the magical things inside of the magical box just work.
writing in ASM is frustrating but awarding at the same time, it makes you analyze and breakdown the problem into small pieces, when your code function as it should be you feel accomplished unlike any other feeling you get from solving errors in a High level language.
All I ever heard about Assembly is that it's a complex and hard-to-understand language. But today, in college, I tried Assembly for the first time and I had so much fun. It was so straightforward to understand that I found it quicker to learn than Python.
This is exactly what I was thinking. Just to to print on a screen we needed 3 or 4 short coded lines... You had to code the mechanics of dividing numbers, etc...
x86 runs on amd too, intel came up with the architecture, but they're not the only ones using it, same with amd64, which was made by amd but intel uses it too
Instead of playing outside or hanging out and drinking with so called friends in my teens and early 20s, I learnt C and assembler in DOS. Spent years working on stuff and plugging in ASM here and there to make things faster.
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
This video inspired me to start learning assembly, and I thank you for that! I'm currently on multiplication, and know some basics about number comparaison ! (cmp, je, jne, jse, etc)
Used to love coding in assembler. Used mainly machine code monitors for the lack available assemblers (the software) for the C-128. Once i got an old 286 as a sidekick i started using tasm as a cross assembler. Hacked together a parallel data cable to transfer my compiled code to my favourite 8-bitter. Good ol' times :-D
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
I took assembly language course in my bachelors degree but i had a really hard time passing the course and honestly, now i just got the hang of it in less than 2 mins... kudos @fireship my number one tech channel
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
tbh learning to read x86 assembly is pretty easy but when it comes to actually using all those specialized instructions like "CVTTPS2PI" (god i hate SSE) its quite overwhelming
Hey Jeff do you plan on making a glsl in 100 seconds video or a tutorial? I've been playing with it for a bit with ThreeJS and I'm surprised you haven't made a video about it yet. I really love your videos and watch them as soon as you post them, keep up the good work!
I have been writing in assembly for over 50 years. First wrote in an IBM 1401. Then moved into an. IBM 36O.i wrote an entire accounting package (a/p, g/l, a/r, payroll) in under 32k. It also included the o/s (BPS) I wrote many many "helper" programs for programmers. One of them I wrote in 1982, IBM said could not be done, its still running today on Z/os. The mainframe was a great teacher as no matter what an application programmer wrote, would never crash the system. I wrote assembler on about 30 different CPU types and know 13 different languages. I read 3,000 page core dumps too! I would use the core dumps to show COBOL programmers where they went wrong. To me, there is assembler, then everything else
a wise person once said: "if you know assembly, every software is open source"
OllyDbg hehe
Big Brain Time
@@itzhexen0 Right
true lool
@@itzhexen0 calm down dear
It's wild to think Chris Sawyer managed to write the entirety of RollerCoaster Tycoon 1 and 2 all by himself in this language.
I just watched a video about him which is what brought me to this video.
I just saw that video like half hour ago he's god of game development
@@bo4-x2n What makes it so easy?
@@bo4-x2n scratch is the same as assembly, got it
Don't forget about Randy Linden, who wrote Doom for the SNES and the PS1 emulator 'Bleem!' in assembly
I had a couple assembly programming classes during my CS course in university. It's definitely a much different way of writing programs compared to higher level languages. To me, it felt like a puzzle game, where management of "position" within memory was a huge part of it. Function calls are also interesting, since essentially it's just a block of code in memory with a pointer you can jump to, then jump back to your previous position once finished. Even a program to just do simple math was quite involved. No such thing as strings either, just char arrays.
Funny enough, taking that class on assembly finally helped me "get" C. All the stuff about pointers and memory management/allocation didn't click until writing assembly, then I understood what it was for. Looking at C as an abstraction over assembly really helped me become a better programmer.
This gave me an idea for an actual puzzle game where you use simple opcodes to move numbers between boxes and it gets more and more complicated until you realise that you’re writing assembly
That's EXACTLY what C was designed for, my friend. Congrats
Yep, C is basically a better macro assembler. I feel your heureka moment!
I came from the other direction, and it took a while to get what C was actually good for :)
@@circuit10so like human resource machine
@@levaniandgiorgi2358 Oh, I didn’t realise that already existed
Am I the only one who thinks Jeff has the gift of making even the most complicated concepts look simple?
and he is the richest man alive...wait thats a different jeff (right?)
@u1121 It's assembly, and teaching isn't a easy job, even it's an easier language.
@@multiarray2320 the richest man alive is Elon XD
no, you're not the only one ^_^'
Yes, he is great at explaining concepts, but assembly is easy once you get used to it.
Always wanted to learn Assembly, but never have I understood it's complexity. You simply explained the most basic part of the Assembly language in 100 seconds clearly. Thanks! I might use this for future references!
Hey! It helps to start learning assembly on older chips that were less complicated. In my Uni we work with assembly on 8051 microcontrollers. They are quite old, but it's easier to grasp the basics on them. Overall, architectures used in microcontrollers tend to be a bit easier to understand than x86.
You should go ahead and learn it. I personally feel that my ability to debug things and make programs work increased after working on some simple projects in which I coded in assembly language.
I would say that instead of learning about x86 assembly language, you should learn asm of Arduino Uno/Atmega328p. That is where I started. It is simple, and when those LEDs blinks, you get a feel of what it means to write assembly and how stuff works.
I'd highly recommend starting with a RISC instruction set like ARM. It's a reduced instruction set so it will be a lot less confusing than x86 when you are just starting out. Derek Banas has a pretty good video to get you started: ua-cam.com/video/ViNnfoE56V8/v-deo.html
Learning an assembly language is pretty useful to better understand how a computer operates, I would also recommend going for a RISC architecture, they tend to have less instructions and more registers and I feel that helps reducing the complexity to start doing something nice, even if it is just adding 2 numbers and saving the result in a third registry. The one I first started with, many years ago, was the MIPS 3000 variant, that was the cpu used in the PlayStation 1 and very similar to the one used in the Nintendo 64.
Assembly is simple, it consist of simple instructions. The complexity comes from trying to program more than adding two numbers together. You need alot of instructions, to construct higher level logic, take care of program state, access memory, data structures. Then you need to understand many registers in the processor, how talk with all the peripherals and so on. It's easier to start with microcontroller and move from there. I enjoyed the AVR architecture, it's 8-bit CPU with about 100 instructions. But the whole processor datasheet can have 500 pages for all the various modules like analog to digital converter or serial interface.
"My favourite part about WebAssembly is that neither has it anything to do with assembly, neither has it necessarily to do with the web."
Wasm is a regression to software development. i dont understand the hype at all
@@archmad Its hyped because it allows you to write web applications with all (or the majority of) Javascript abstracted away. I would never go back after using blazor wasm. Its just miles easier to write good code and you get access to powerful tools like resharper / nuget ecosystem ontop of anything javascript.
@@archmad Wasm is Java done right with the experience of 2 decades of failing. Change my mind 😛
@@ZephrymWOW as much as i love wasm for what it allows, i must say my experience with it supposedly eradicating the need for js has proved that it isn't really finished.
WebAssembly seems to focus too much on being 'headless', being able to be run without the web browser nor even js enviorement, completely ignoring that this is the whole point of why it was created in the first place.
Every single possible action you'd want to perform in javascript can indeed be performed using wasm, but only after you:
1. Import the functions needed.
2. If they have anything to do with strings, go through thousands of loopholes to get them right for both the wasm memory and js memory.
3. Only then call said functions within your wasm.
It results in that either you or your enviorement/build tools (emscripten, wasm-pack, etc) *will* end up generating a *huge* mess of a "glue" javascript file that does the thing your web browser should have done in the first place.
This is completely unnecessary and shouldn't be a problem in the first place, yet it is.
Thus every website implementing webassembly will come with these giant files that will sacrifice the page loading times, cache space and overall both user and programmer experience.
One step forwards, two steps backwards.
I love yet i hate it. It's awesome.
@@beProsto 1.) You are misusing dependency injection. You can enable everything globally and it will be injected as needed. It's a better version of web pack. 2.) Give me a real example of your talking out of your ass parroting someone else. 3.) Its headless because of MAUI. You can just use a blazor dll and now you have xplatform THAT RUNS ON KERNEL. Every other alternative spins up a chromium container and is a glorified browser.
I literally just started learning Assembly for fun, and I came to UA-cam to take a break... and lo and behold... Fireship has a video on it!
Who tf learns assembly for fun?
@@KiranVishwak me ;v
Every video in this channel has a similar comment like this lol, these comments look rigged from my side
@@slowpoke8670 Goddamn
@@KiranVishwak The exact comment shows up every time fireship releases a 100s video, so this is just one of those.
Assembly only looks complicated to the beginners but it's really not. MASM even provides high level directives like IF, ELSE, WHILE and standard macros for I/O that makes it really straight forward to focus on the performance of your algorithm.
I never knew this, that's pretty cool.
What's the difference to C at that point?
@@eUnkn0wn you can write inline assembly in C if you want, difference is of performance and control over your code, bit shifting and direct access to stack frame and hardware. You can't do that with C
I had a tutor back in the mid-90s when I was just a teen hanging out on the local BBS... he always said "it's all rather simple", and I never got it and was wholly confused.
Until one day when it just clicked and I realized all you're doing is reading, changing, and writing values to memory or output ports, and whatever is there interprets it; like the value 10 can be a green pixel in video memory.
@@raz0229 There is a talk by Matt Godbolt "What has my compiler done for me lately" (or somesuch), where he demonstrates really well how unlikely you are to optimize better than your compiler at this point. Besides C is basically just that: High-level assembler.
Not saying that dabbling in ASM doesn't have its place, but personally I needed it mostly for debugging.
0:46 WebAssembly should not be confused with normal Assembly dialects like x86. It is much more of a compilation target than a language you would actually want to write in for performance reasons.
exactly, apples to oranges comparison, almost nothing related between those 2 other than having "assembly" on the name
I would say that the WebAssembly text representation totally qualifies as an assembly language for the WebAssembly binary representation.
Also, you can also theoretically create actually hardware that runs WebAssembly binaries, it's just that it's intended use case is to run it on a VM, similar to Java.
Wasm is a binary instruction format rather than assembly. However it does come with an assembly like language. I don’t know it’s name unfortunately
@@sohn7767 afaict it's just known as webassembly text format. Its file extension is usually .wat
@@missingsemi missed a golden opportunity there to call it .wtf
While I was studying digital electronics, I used to count binary digits with my hands. People gave me weird looks, but hey, you can easily count up to 32 with one hand.
31 you mean? unless 0 fingers was 1...
@@murkethecow exactly
And with both hands you can even count up to 1024
bro how many fingers you got?
@@Micahtmusic 10 fingers are equal to 10 Bits and 2^(10) are 1024
i can't believe the rollercoaster tycoon dev was insane enough to use this.
He not only used it, he created some masterpieces. More like, "He used the shit out of it" lol
@@treanglewho was he?
@@vulture-6 Chris Sawyer
Former communication engineer with what was once the BBC World Service...
The sender control system at transmitter sites was written in Assembly which controlled banks of microcontrollers which in turn controlled the sender transmission schedule. Even in 2000 that was an arcane system of control.
That said it was reliable. The software manual which contained all the instructions for the control system was as dense as a doorstep.
The programmer who designed the code could be found lay belly down on the floor of the sender control system rapidly flipping through the hundreds of pages of instructions from the system manual to try to find bugs. They knew their code structure inside out and back the front.
An amazing feat given that there was no IDE or such like at the time of it's original development (80's) - simply amazing human memory and knowing instantly every line of code and where it sat in the overall program.
We don't know we're born these days.
A quick correction: the bss section is for variables whose size is known but data is not. We reserve space for variables in the bss section with resb (reserve byte). The data section is for variables whose initial value is known, and the rodata (read only data) section is for constants
To further expand on that: the bss section is allocated at program start and initialized to 0. Thus, only the size of it needs to be stored in the executable file. This is also the reason why C initializes globals to zero unless a value is provided - because it is essentially free - compared to local variables, which are uninitialized by default to save a few instructions.
I started my software journey in middle school reverse engineering, so I studied x86 assembly, PE architecture, stack smashing, etc. It was SO interesting to me, I would print out Iczelion tutorials and bring them to class to study. It brings back so many happy memories ❤
A small but important caveat: in most use cases, assembly still sits above the OS / kernel. So you won't work with actual physical memory ("bare metal") but with virtual memory; an abstraction provided by the OS. An exception might be when you are programming in kernel space.
So we modify the virtual memory? That is protected?
WE did assembly language one semester in my University CS days in a 8085 or 8086 Microprocessor kit. We needed to check the chart referring to codes which had instructions. It was fun doing until you miss one step and repeat all over again.
why did you have to repeat it all over again? wasnt the code saved?
I have to study this year, czn you give me some tips or good books to help me understand it ?
@@SailorMoon-yv7xf there's an assembly subreddit
Man. Your videos are so clean. So precise. No junk. No dumb intro that lasts 10 seconds. You title it perfectly as well. Thank you for adding junk-free material to the internet.
10 second intro is hella short tbh
Congrats on hitting basically all of the languages 🥳 What's next, compilers/linkers/JIT in 100s? Pub/sub in 100s?
VHDL in 100 secinds.
I am sure there is some other language he didn't covered.... otherwise tomorrow another language will born...
Does he covered "V"? The new replacement of go....
Compiler Design in 100s would actually be cool.
From text to IR to output... yeah, would watch ^^
@@vaisakh_km Nim and Zig are also as of now uncovered
making a cpu in 100 seconds
And to think that Roller Coaster Tycoon 2 was completely written in Assembly language by one single guy, insane.
I didn't know this, Chris Sawyer, wow! And it's an awesome game, the kids loved it. Reminds me of Eric Chahi writing Another World for the Amiga. A masterpiece, which he wrote alone. Some computer games are really impressive examples what one or two persons can accomplish.
Nice video. A little correction: The .data section can be modified. The .rodata has the same purpose and can't be modified.
ro stands for read only
also, .data is not for constants that do not change, it's basically an initialised version of the .bss section that takes up space in the executable. you can actually change it. for actual constants that do not change, use .rodata.
Interesting video though :)
That makes sense, given that I gotta assume rodata stands for read-only data
@@finadoggie yep
that takes up space *in the executable*. .bss, .data and .rodata all take up space in memory, the difference is that .bss is not stored in the executable but initialized with all zero bits by the executable file loader.
@@mihiguy thanks for correcting that :)
@@Snail5008 you are welcome. Thanks for corrrecting your comment :)
At 'computer school' I had to write an assembly compiler (in C)... The exercise/project was called 'Microsim'.
Also, store the assembly code at sector 0 of a floppy, and you got yourself a booting program 😄
I did some assembly in my computer architecture class. Super interesting but glad I can use higher level languages for everyday programming 😂
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
@@benc589 Wait. Do we have to pray to the CPU? Which religion is that? Reset...beep.. peep. rebooting system.
@@benc589 Funny you say that. Jesus never claimed divinity and he rejects people calling in his name instead of The Father (The God Above) in many passages of the Bible. Should the god deserve being called and worship?
Why don't you worship the one who sent Jesus? And believe in the ways of His Final Prophet Muhammad? The prophet that has been prophesized in the scriptures?
@@maxmuster7003 He must have hate Assembly Language because C is the only true programming language.
@@crystalluze939 Assembly is an anarchist Language, whereas C (typicaly) is a fascist Language.
As someone who used to code sort routines in assembly, this video brings back some memories...and not all of them good.
Every programmer should learn the basics of NASM/FASM. It teaches you so much about architecture!
Note: The method you used to write your hello world program here wasn't really "just" assembly (which is understandable, since writing a miniature operating system for a '100 Seconds of'-video is probably out of scope). You still used the kernel-specific API calls.
TBF if you run something in a modern operating system you HAVE to use API calls (called system calls) for anything that isn't just calculations. Otherwise you'd segfault.
So unless you want to install DOS or create your own ring 0 OS because you want to build the third temple on your computer or something. You gotta accept that nothing you write will truly be "in assembly".
@@mrmimeisfunny At my job we don't use a operating system (well, we make our own RTOS), instead we program an SPI link to a PuTTY-linked peripheral and printf by sending data down the SPI line. So you can do printf without any API/syscalls, but bugger me is it hard work
@@mrmimeisfunny I should have clarified that I know that there's really no other way to do this (without writing your own os). Would not exactly be great if any program could just run any instructions it wants to without restrictions (through syscalls/an API).
@@mrmimeisfunny I set my screen resolution to 640x480 to please God
Gregory Fenn curious what exactly you do that requires this, sounds interesting
I got my start with MIPS32 in university and I'm currently learning 6502 assembly just for fun. It's a really fun CPU to learn and the X16 uses it just like the C64.
I learned MIPS in university as well, does it matter what version of assembly we learn? When starting out I was so confused on the difference between arms and mips, and when searching tutorials they never showed what I was learning in class. I want to learn assembly but don't know what version to go with.
@@sergiohernandez72 That depends on why you want to learn it. If you want to understand the concepts, it doesn't matter. Learn any or preferably several of them (to see the differences). You might even want to have a look at completely synthetic ones (like MIX or DLX) or byte-codes like Pascal's or Java's. If you want to write real-world code in assembly (to make if faster or smaller or remove side-channels) then you would learn the assembly language of a processor in wide use: x86_64, ARM, some microcontroller, maybe a GPU ...
Thank you! I watched all the 100 tutorials on your channel and now I am a senior programmer earning 100k/nanosecond!
This has to be one of the most concise ASM hello world tutorial I've ever seen
This is the most condensed one yet! Glosses over TONS!
Awesome video, I’m in a assembly language and computer organization class right now for my CS degree and we’re using the RISC-V assembly language.
☝️☝️☝️☝️✍️✍️❣️
0:06 Actually that's what hexadecimal is for. Hex is far easier to count than binary. What assembly is for is to remember the instructions' names instead of their number. That's literally it. Without assembly programmers would likely remember instructions in hex rather than binary anyways. In fact if you deassemble a program you not only see the assembly instructions generated by the compiler but it shows you those instructions in hex instead of binary.
So the easiest "decompiler" (not really) to make is a binary to hex?
eyyy i use ASM a lot for my little z80 computer i made. this is a nice video to help explain what im doing to other people. it also makes my work a little more appreciated because now some people have the context to know how much work i put into it. Thanks for this because i suck at explaining things >.>
z80 or gbz80? ;)
@@IngwiePhoenix_nb Z80
@@IngwiePhoenix_nb It uses an 8255 for the pia and the zilog DART for serial. 32k ram and 32k eeprom. got it to say hello world through an FTDI cable!
@@zilog1 that's really cool dude!
@@awsumturtle Thanks!
it's amazing how far we've come honestly my respect who daily codes in assembly
✍👆👆Invest now the market is affordable and profitable strategies ·
✍️✍️✍️❣️❣️
eh it's okay tbh you just write much but it basically boils down to basic arithmetic and memory management.
Insane to know the original pokemon games were written in assembly. Then the absolute madman, Satoru Iwata, optimized the fire out of them and fit a whole other game into the cartridge.
RollerCoaster Tycoon too, and that was one person!
Interesting how similar yet different this is from compiling with gcc
Gcc does the same thing, but just hides it away.
in steps of compilation + linking of c++, converting to asm is an intermediate, so basically we start from there in this case
its basically the same thing, c and c++ are just higher level
This is propably the best video about assembly which I have ever seen (so far).
A guy in my school designed his own opearating system and gave our names to the various functions
Always wondered how he did that
Thx for the video
That's actually pretty awesome
I just found out about your channel and I don't know what to watch first. Only thing I have to say.. Good JOB!!!
Im here to learn how difficult it was for Chris Sawyer to make Rollercoaster Tycoon.
He wrote 98% of the code in assembly, by himself.
An absolute legend.
My great aunt used to program 30 years ago, and said her favorite language was assembly by far.
Looking at low level languages always blows my mind because of how far we've come.
Literally how are these videos this good? Absolutely fantastic! The graphics were great, the pacing was on point, and the narration is just down-right awesome.
Must-have knowledge for a Cybersecurity professional. Especially in reverse-engineering malware.
The madlad did it - and even flavoured the like and subscribe again!
I have been looking at Gameboy assembly for a long time, mainly for the GameBoy and GameBoy Color. Starting with the GBA, you can use ARM instruction sets and the tooling for both is pretty incredible (sdcc, lcc, z80sdk, ...). It sure is far different from writing nice looking code, but if you want to get something critical done, then your best way of achieving it, is to skip every and all abstractions and go bare metal via Assembly. :)
Actually DevKitArm and GBDK is the way most people go nowadays and some people actually managed to make impressive stuff with it thanks to the layer of abstraction. We're seeing more and more people make games for those platforms and part of the reason is excellent support for the C programming language. Now, if only CC65 was actually just as nice...
@@doigt6590 GBDK uses SDCC and I personally am still waiting for it to actually support C99... I wanted to try and use V which compiles to C, but because of ampersand statements, it makes SDCC error out a lot. But, DevkitARM/-PPC is amazing! I have those installed too. Personally, I am impressed how many unofficial SDL ports there are for some of those handhelds, which is pretty amazing!
Just wanted to let you know that section .data is for declared variables, section .bss is for undeclared variables, and section .rodata is for constants. You can edit the value of variables in the .data section.
Having developed programs for Intel 8086, I can say that the language helped me to understand the low level workings of a program built with a high-level language (like C++, Python)
Next up: I made 100 web apps in 100 languages in 100 seconds and here's what I learned.
☝️☝️☝️☝️✍️✍️❣️.
It's amazing how I just started learning Assembly yesterday and here you are with this awesome video.🔥
☝️☝️☝️☝️✍️✍️❣️.
Bro assembly is way more complicated than that you can't just learn it in one day. It'll take months to learn the basics and another months to master
@@unknownguywholovespizza Cool. Any resources you could recommend ?
@@tebogonomnqa sorry but I swear idk 😩
Pure chaos 🤯Up to now, I've been more advanced than my CS courses, but this semester might be a challenge.
Man learning this language as a comp sci student is a torture.
And some of my friends still complain about C++ lol
Actually, learning assembly is easier than learning C++
@@TheKelor i can relate
@@TheKelor Can you elaborate on that?
@@TheKelor depends on the person but i agree
@@davidl.7383 as C++ is on a higher level of abstraction, plus the fact that it's a "superset" of C, it make it difficult to really understand the mechanics behind the language and it has a really steep learning curve.
Assembly is basicslly simple oprations with basic logic.
But at the end, it will obviously be easier to make an app in C++ rather than in assembly.
Dude you're so unbelievably awesome at making these short videos!
I grew up with the C64. You could relative simply write Basic programs, which was great but they were quite slow. Assembler (for the 6502) was difficult to learn (even more without the possiblity to get information via the internet, you needed books, books, books...) but gave you a lot more possibilities and exponentially more speed. Note that with assembly language you don't only have to learn the instructions (mnemonics) and how to build routines, but also how to use libraries or the system custom chip architecture with all of its registers and how they work. Using Assembler was a must for quality and speed. And so, on 8 bit systems like the C64 nearly all of the commercial software was written in this tedious but fast language.
Note that the detail information from 1:00 in the video is for x86 assembly, which runs on modern pc systems but is ... as a language a bit clunky.
If you want to try out assembly yourself I'd recommend 6502 asm f.e. for the C64, which is pure 8 bit oldschool. Or 68k assembly f.e. on the AtariST or Amiga. It's nearly orthogonal, which means it's a good/nice assembler dialect imho. Compared to 6502 asm this 16-bit assembly is a bit more powerful and convenient. Btw. Winuae is a good Amiga emulator and Asmone a good assembler to start with.
z80 asm is my favourite, i used to do small games on my ti-84 calc with this, and there's some insane programs made in assembly for this machine, while the basic is just about using the functions to draw math stuff and things like this, the processor is a 15mhz z80 (while the gameboy is a 4mhz one) and assembly programs can use all of the archive memory, aka about 480ko (with 24ko of ram)... there's programs like a doom "port", a gameboy emulator or games simulating 9-level grayscale (there's no native support for grayscale on this machine), all of them entirely made in asm
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
I like to use intel 80386/80387 32 bit CPU. Today on an Android tablet with a Dosbox emulator app. I put all instructions into batch file to create tiny executable with a little help from debug.
I disagree that 65xx Assembly was difficult to learn. The Programmer's Reference Guide from Commodore covered pretty much anything you would want or need to know... and at least there was no need to deal with segments and offsets, as with x86 Assembly. If you used an Assembler (like PAL)... the landscape was even easier.
@@TheUtuber999 To have some 16 bit offset register on x86 are easier to handle as two bytes in the zero page of the C64 for building an address. On C64 we have a lot of calculation with 16 bit values, but only 3 register with 8 bit.
Being a child of the 80's home computer revolution my first programming language was Basic on my Commodore 64. The second was MOS 6510 Assembly language. The learning curve was *steep* for a 13-year old with no access to the internet. But what I learned then has been useful to this day (I am now 52).
M68K Assembly on the Amiga is still the most fun I have had developing software. It's a beautiful instruction set and the Amiga had great custom chips that could do amazing things.
It still does today!
If you want to start out Assembler, take 68000 - life is so much easier there (compared to x86, or even Z80). 6502 might be similarly simple, since it's basically RISC.
☝️☝️☝️☝️✍️✍️❣️
You have an amazing ability to make me pumped, this feels like the next big javascript framework
☝️☝️☝️☝️✍️✍️❣️
I am a long-time coder whose first commercial products were written in 100% assembly. One of the things in this video that raised my eyebrows is the explanation of what a CPU "register" is. Do modern developers / coders / software engineers (you young things below the age of, say, 30) not understand the basics of CPU structure/organization? Do schools/colleges/universities still teach this, or are we letting our future software developers into the world thinking that a CPU is a magic black box that "just works"?
please keep in mind that a significant portion of viewers who watch these video is self-taught programmer who just want to get things done and in the context of current development toolchain that make a thousand abstract layer between code and bare metal i can see why they need him to explain what a register even is
I studied physics.
It is much more useful to just think of things as stuff that just works. We only wanted our equations to be solved and show us pretty graphs.
The world is changing and if someone wants to know the lowest level stuff possible, that is great. This skillset is still needed.
However, things that people expect of newer technology, like video games for example, can't be written 100% in assembly within 3 lifetimes.
The world needs both kinds of people.
Dude i can understand your concern but, ypu know what there are books in schools and universities where they teach you about things like how data is stored in floppy drives, older computers, older ball mouse. and there exist people who complain that the computer world has become more updated/agile/evolving there ain't so much time to learn about all these useless stuff. so it's up to individual's preference if they want to know about these things in deep or not.
I graduated with a CS degree last year. We had a few subjects related to the CPU architecture (including ALU theory), binary logic and discrete math. And yes, it had very little correlation with the programming we were doing.
Level 4 (first year) at a UK university here. Can confirm we learned that CPUs do indeed have buses, caches, clocks, etc. in them. Can also confirm that we didn’t go into more detail than that and that the magical things inside of the magical box just work.
writing in ASM is frustrating but awarding at the same time, it makes you analyze and breakdown the problem into small pieces, when your code function as it should be you feel accomplished unlike any other feeling you get from solving errors in a High level language.
I learned MIPS-Assembly in university. Confusingly I found it much easier and had more fun with it than with C.. I don't know why.
lol same
Assembly is quite literally the most simple programming "language" there is. No other language has my heart like assembly does.
It's so funny how he calls it an app lmao
All I ever heard about Assembly is that it's a complex and hard-to-understand language. But today, in college, I tried Assembly for the first time and I had so much fun. It was so straightforward to understand that I found it quicker to learn than Python.
100 seconds = 1 minute and 40 seconds. Length of video = 2:43
The 100 seconds start at the "tutorial" section
It's hard to keep up with this video format.
I am completely blown right now... How did you read my mind...
This is amazing! i love assembly. i use it for cheat engine. and on windows for decompiling C++ programs!!
☝️☝️☝️☝️✍️✍️❣️.
Just a quick useless note that 1 is SYS_WRITE and 60 is SYS_EXIT works only on x86_64 systems.
Modern assembly is very different from old assembly, which was basically just a frontend for machine language
This is exactly what I was thinking. Just to to print on a screen we needed 3 or 4 short coded lines... You had to code the mechanics of dividing numbers, etc...
Hell.... This is way more informative than our lecture slides...
Amazing job! Suggestion: HLSL ( High-Level Shading Language ) in 100 Seconds
I immediately subscribed and Press the bell icon after watching the quality of the content.
I like how he uses "Hi Mom" instead of "Hello World" 😂😂
yeah, lol, obviously not a real programmer
Its kinda cool that assembly has a section for your data and a section for your logic
x86 runs on amd too, intel came up with the architecture, but they're not the only ones using it, same with amd64, which was made by amd but intel uses it too
Instead of playing outside or hanging out and drinking with so called friends in my teens and early 20s, I learnt C and assembler in DOS. Spent years working on stuff and plugging in ASM here and there to make things faster.
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
Thank you so much, these are really appreciated for learning or getting a glimpse of important techs !
Fun fact: 99% of the code for RollerCoaster Tycoon was written in x86 assembly language, with the remaining one percent written in C.
No discussion on assembly would be complete without this fact. Chris Sawyer is a very patient man.
first language ive ever learned (even before english ;))
Assembly is a language of cpu mnemonics commands.every mnemonic is one of cpu operation add,sub,mul,je label,etc
This video inspired me to start learning assembly, and I thank you for that! I'm currently on multiplication, and know some basics about number comparaison ! (cmp, je, jne, jse, etc)
Update: I've managed to code an entire biginteger library in x86 assembly. Truly has been a ride.
Great buddy!
Used to love coding in assembler. Used mainly machine code monitors for the lack available assemblers (the software) for the C-128.
Once i got an old 286 as a sidekick i started using tasm as a cross assembler. Hacked together a parallel data cable to transfer my compiled code to my favourite 8-bitter.
Good ol' times :-D
Now that you've done 100 seconds for most languages, could you possibly try a 5 min projects/1000 seconds series?
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
Omg man, the coupling you made with NASN & WASM! I think this takes the title of amazingly good video by accident,l🤣 I applaud 👏🏿🙏🏿🙏🏿
Respect to Assembly's developpers
you mean people who write assembly code or people who invented assembly?
@@multiarray2320 both deserve respect tbh
@@小鳥ちゃん exactly
@@小鳥ちゃん thanks for the respect :)
I have tried to learn asm... 32bit...
WT. Was that...(T-T)
I learned assembly language for Motorola MC 68000 in college. I loved it.
After instruction, there are zero or more operands. (Not one or more operands). For instance, a NOP (no-op) instruction has no operands.
I took assembly language course in my bachelors degree but i had a really hard time passing the course and honestly, now i just got the hang of it in less than 2 mins... kudos @fireship my number one tech channel
if you didn't take the course before, you will not understand this video, you should give the course credit
Repent and follow Jesus my friend! Repenting doesn't mean confessing your sins to others, but to stop doing them altogether. Belief in Messiah alone is not enough to get you into heaven, you must become a new creation and be born again by responding to the Holy Spirit. - Matthew 7:21-23, Revelation 3:15-16 cf. Hebrews 10:26-29. Pay close attention to your thoughts and how you respond to your inner monologue because it has a greater impact than you think. Call on the name of Jesus and pray for Him to intervene in your life, and do all that you can to follow His ways.
writing assembly programs is actually fun. It becomes hell when the program is more complicated though
I remember the times when 100 seconds was 1:40 instead of 2:40 😄
I know, I am getting frustrated
Boy this video would helped so much 6 months ago. Very basic but easy to understand
tbh learning to read x86 assembly is pretty easy but when it comes to actually using all those specialized instructions like "CVTTPS2PI" (god i hate SSE) its quite overwhelming
The fact i KNOW it is real is bad.. like it shouldn't exist
Perfect timing! Was writing a bootloader for 8086. When channels like yours and Dave's garage talk about low level stuff, it makes me feel great!!
I remember spending a 1:15 class in school just to do hello world with assembly
Damn, I was waiting for this. Thanks Jeff! Very cool 👍
Hey Jeff do you plan on making a glsl in 100 seconds video or a tutorial? I've been playing with it for a bit with ThreeJS and I'm surprised you haven't made a video about it yet. I really love your videos and watch them as soon as you post them, keep up the good work!
Me at the university today: doing an Assembly test.
Fireship: behold my 100 sec tutorial.
Thanks for your amazing videos, learned so much from them.
Love your videos!Keep doing the good work and you'll reach 10M+ subscribers
It just became clear to me why c is the way it is
Right when I thought you ran out of ideas
I have been writing in assembly for over 50 years. First wrote in an IBM 1401. Then moved into an. IBM 36O.i wrote an entire accounting package (a/p, g/l, a/r, payroll) in under 32k. It also included the o/s (BPS) I wrote many many "helper" programs for programmers. One of them I wrote in 1982, IBM said could not be done, its still running today on Z/os.
The mainframe was a great teacher as no matter what an application programmer wrote, would never crash the system.
I wrote assembler on about 30 different CPU types and know 13 different languages. I read 3,000 page core dumps too! I would use the core dumps to show COBOL programmers where they went wrong.
To me, there is assembler, then everything else
Wow
@@khaliifshiikh2289 tnx
I was on the hub
But this is more important
Ayo wtf man🤨
same
wait what
@@kiyu3229 Kann mir bitte jemand die Schrotflinte meines Großvaters geben?
@@trein6958 ich bin kartoffel
my dad programs in assembly and when I took the assembly class in collage that was super helpful