Building an OS - 1 - Hello world

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

ความคิดเห็น • 518

  • @edy1219
    @edy1219 ปีที่แล้ว +1985

    "so far our operating system does nothing and does it perfectly" top tier programming here

    • @dklima
      @dklima ปีที่แล้ว +22

      I loved it

    • @HaganeNoGijutsushi
      @HaganeNoGijutsushi ปีที่แล้ว +75

      The only time when an OS will be 100% bug and vulnerability free.

    • @edy1219
      @edy1219 ปีที่แล้ว +9

      @@HaganeNoGijutsushi yeah

    • @supa3ek
      @supa3ek ปีที่แล้ว +10

      That would actually be a relief for it to do exactly what you expect 😀
      99% of the time this doesn't happen

    • @hackdesigner
      @hackdesigner ปีที่แล้ว +1

      Yep sounds legit. About half of the demos I'm being shown.

  • @Fernando-du5uj
    @Fernando-du5uj 3 ปีที่แล้ว +543

    This is the most complete video I've ever seen on building an OS. Thank you, sir! Don't stop, please

    • @PoolNoodleOGAE
      @PoolNoodleOGAE ปีที่แล้ว +12

      That’s what your mom said last night

    • @KkkKkk-re9il
      @KkkKkk-re9il ปีที่แล้ว

      He has stopped 😢

    • @Amhighwiwiuwiu
      @Amhighwiwiuwiu ปีที่แล้ว

      @@PoolNoodleOGAElmfao

    • @EinSatzMitX
      @EinSatzMitX ปีที่แล้ว

      He did​nt stop here

    • @adityapandey9018
      @adityapandey9018 10 หลายเดือนก่อน

      @@PoolNoodleOGAEsasti backhodi

  • @bluexo256
    @bluexo256 ปีที่แล้ว +27

    That is the most complex "Hello, World" tutorial I've ever seen. Thank you for that

  • @brickch4pel
    @brickch4pel ปีที่แล้ว +85

    Absolutely adding this to the study list. I feel like this would probably be a great reference for delving further into CompSci

    • @yaroslavpanych2067
      @yaroslavpanych2067 ปีที่แล้ว

      Do not waste your time on this crap

    • @sastashroud7646
      @sastashroud7646 ปีที่แล้ว +2

      This is real computer science not website Makin

    • @sepmercury5180
      @sepmercury5180 5 หลายเดือนก่อน

      @@sastashroud7646you re-tard. The browsers are one the most complex systems out there.

  • @abdulelahaljeffery6234
    @abdulelahaljeffery6234 ปีที่แล้ว +33

    it's really rare to find quality videos in this topic.
    Thank you sir for this excellent demo 🙏

  • @stupossibleify
    @stupossibleify 3 ปีที่แล้ว +67

    What a fantastic series of videos, they really tickle my tech curiousity. Everything I've been puzzled by is explained so well. Thank you for making these

  • @Unfaced85
    @Unfaced85 ปีที่แล้ว +5

    just discovered this series , need to binge watch that now. This is so cool

  • @samarthtandale9121
    @samarthtandale9121 ปีที่แล้ว +19

    I'm literally into tears 😭 ... Overwhelmed by grateful emotions ☺️😌 ... Can't believe you put it for free on TH-cam! Thank You man, I can't thank you enough... !❣️🙏🏾🙏🏾

    • @thewaterwave222
      @thewaterwave222 ปีที่แล้ว +3

      You really sound like a bot rn

    • @samarthtandale9121
      @samarthtandale9121 ปีที่แล้ว

      @@thewaterwave222 That's what she said bro 😭😅

    • @minecraftify95
      @minecraftify95 10 หลายเดือนก่อน

      ok bot

    • @SpamtonFan-pc9kv
      @SpamtonFan-pc9kv 10 หลายเดือนก่อน

      @@samarthtandale9121 thats what the [[BIG SHOT]] said

    • @SpamtonFan-pc9kv
      @SpamtonFan-pc9kv 10 หลายเดือนก่อน

      damn thats one useless bot

  • @NebulaDev
    @NebulaDev 3 ปีที่แล้ว +24

    This is brilliant. All the other tutorials are messy file trees, horrible code, and hard to follow. This is perfect, easy to do, and the teacher is great. Keep going dude!

    • @allanbranson4693
      @allanbranson4693 หลายเดือนก่อน

      How does one set up the environment?

  • @kamikaze_kev
    @kamikaze_kev ปีที่แล้ว +208

    loved this! back in 1985 i built an 8-bit z80 computer on breadboard (with a 1k static-ram chip) and had to program the RAM chip using 8 dip-switches (no assember) just in pure binary! it took hours to write code similar to this. after writing the binary code to RAM, i would then send a signal to the RES pin on the CPU to begin the instruction pointer (IP) at zero and begin execution of the code. all i had was an array of 8 led's as my output display. the code I wrote made the led's flash from left to right and vice versa, amazing days! this brings it all back! 😊 ps. i had to clock the z80 cpu at only 1 instruction per second (1hz) to be able to see the led lights move and the z80 assembly for that code was something like: l0: ld b,7 ld a,128 l1: out 0,a rra djnz l1 ld b,7 l2: rla out 0,a djnz l2 jp l0 (program size was just 21 bytes lol!)

    • @satyamraj2779
      @satyamraj2779 ปีที่แล้ว +13

      Wow... that's quite fascinating.

    • @adversemiller
      @adversemiller ปีที่แล้ว +7

      That's incredible, love it

    • @tharindudhanushka2201
      @tharindudhanushka2201 ปีที่แล้ว +2

      wow

    • @techtime3125
      @techtime3125 ปีที่แล้ว +5

      real programmer

    • @homeopathicfossil-fuels4789
      @homeopathicfossil-fuels4789 ปีที่แล้ว +10

      You did programming as von Neumann and the lord above us intended it, binary input, binary output, nothing else but switches and lights.
      A truly enlightening experience for anyone seeking the raw essence of what programming is. Its flicking switches to convince lights to blink in the right pattern.

  • @davidmarshal6729
    @davidmarshal6729 ปีที่แล้ว +4

    i can say nothing more about this video other the "its perfect", the best OSDev tutorial i've seen yet. AMAZING

  • @redaloui
    @redaloui ปีที่แล้ว +32

    If anything TH-cam does good from time to time, is that he suggested this to me. I highly valuate this type of content, and as a developer and a lover of coding I have a big respect to this type of talented people, its way out of my league to do such things, even that like 25 years ago when started coding using basic 1, I had such ideas 😅, now you know the life took me, and have to pay the bills so I am a web dev, thankfully I am still in the coding family.
    Big love and respect bro ❤

  • @nebuladevelopments
    @nebuladevelopments 2 ปีที่แล้ว +27

    Excellent Tutorial. I love how you explain everything you are doing, this is a much better tutorial then any of the others I have seen!

  • @LegoPossessed
    @LegoPossessed 11 หลายเดือนก่อน

    I can already see that this is going to be easy with this tutorial! PLEASE DON'T STOP, KEEP UP THE GOOD WORK!

  • @vynxie
    @vynxie ปีที่แล้ว +7

    It's really good to see people having fun with Assembly like this. I know we live in the age of languages like Python and Assembly can be a frustrating, painfully slow, counterintuitive language at times that tests your patience and confidence when things don't work, but I think everyone who enjoys programming should learn to work with at least one instruction set and experiment with it like this. Just mess around, play with it. At the end of the day we're just kids playing with really complicated toys and making them do tricks when we program anyway.

  • @Viral757_
    @Viral757_ 11 หลายเดือนก่อน

    You explained the most complicated subject like it's a piece of cake. Hats off to you man !!
    This video deserves millions of likes ☘☘

  • @ARandomOSDever
    @ARandomOSDever 2 ปีที่แล้ว +14

    Hey Nanobyte, you are one of the best and most underrated OSDev channels on TH-cam!
    You even inspired me to create a OSDev channel. Just need to find a easy to use video editor and it's done!
    BTW I am a Legacy BIOS Windows 10 user (and I will change to Linux in 2025)

    • @astric32dll
      @astric32dll ปีที่แล้ว

      Why 2025?

    • @antonGanG
      @antonGanG ปีที่แล้ว +1

      @@astric32dll thats the end of support for windows 10

    • @ferdinandw.8952
      @ferdinandw.8952 ปีที่แล้ว

      @@antonGanG not anymore now it is end of 2023

    • @CrimeWithEli
      @CrimeWithEli ปีที่แล้ว

      Dual boot to get more familiar with Linux

  • @AboMazen404
    @AboMazen404 2 ปีที่แล้ว +9

    This is gold , Thank you for the efforts

  • @michaelhawthorne8696
    @michaelhawthorne8696 ปีที่แล้ว +1

    Nice video...
    Looking forward to see how this progresses...
    Made 4 yrs ago, I'll check your channel for other updates...
    Thanks for the start. 👌

  • @m4rt_
    @m4rt_ ปีที่แล้ว +4

    Amazing video, I managed to follow along, and I even learned some more asm.
    I have always been kind annoyed with there being very few resources online for learning asm, so I barely know any, so nice to finally find a good resource.

  • @IntensiverPinguin
    @IntensiverPinguin ปีที่แล้ว

    Randomly youtube recommended me this video. I wont try to build an OS but I always wondered how it works, thank you

  • @PrzestronnyMistrz-ly8rp
    @PrzestronnyMistrz-ly8rp ปีที่แล้ว +1

    this video would have saved me days of research if i knew it before i got into operating systems. Very consise and coherent, 10/10

  • @Learnerofthings
    @Learnerofthings 2 ปีที่แล้ว +11

    Thank you VERY much for this series. I have mentioned wanting to get into OS design many times on other programming groups and been laughed at and mocked because why am I not in the kitchen making dinner lol. I've been writing in C and recently learning assembly, so now I will go back to them with an OS (after a few more years of this).

    • @spytonic4171
      @spytonic4171 2 ปีที่แล้ว +2

      have you completed your os?

    • @Learnerofthings
      @Learnerofthings 2 ปีที่แล้ว +3

      @@spytonic4171 Not even close. Life got in the way, but I am picking it back up now.

  • @schvarts1177
    @schvarts1177 ปีที่แล้ว +1

    this video is really good i never seen a complete video like this

  • @puceno
    @puceno 2 ปีที่แล้ว +1

    the title is literally the content of the the video, you are amazing :) , dont stop never

  • @Gamercat01
    @Gamercat01 5 ปีที่แล้ว +22

    Hi! I thought this was great! I hope you'll make more some day. All the best from a fellow programmer(mostly c# :))!

  • @danielmosner5802
    @danielmosner5802 ปีที่แล้ว +3

    This is awesome. I watch it, and get like 50% of it. Then I search for while and I understand it more. But it was till I start building my own floppy disk OS bootloader to understand it on 100% Thank you very much for this. It made me eager to learn more!

  • @gearboxworks
    @gearboxworks ปีที่แล้ว +1

    That is one of the best tutorials of a complex subject I have ever watched. Kudos! 👏

  • @null12346
    @null12346 2 ปีที่แล้ว +2

    Thank you for making this tutorial. Now I learned a lot of things that will be useful for me

  • @nightwintertooth9502
    @nightwintertooth9502 ปีที่แล้ว +6

    Terry Davis would be proud. Now everyone can homebrew their own temple OS.

  • @CunningBard
    @CunningBard 2 ปีที่แล้ว +1

    I like this guy, he hesitates and still gets it wrong (13:29), but all in all good tutorial

    • @nanobyte-dev
      @nanobyte-dev  2 ปีที่แล้ว +1

      Recording videos was really stressful, especially when I started making videos. Today, I have a better workflow which helps a bit, but mistakes still happen.

  • @crogersdev
    @crogersdev ปีที่แล้ว

    This is a wonderful video, friend! Thank you for doing these videos, I'm loving them!

  • @thewaterwave222
    @thewaterwave222 ปีที่แล้ว +1

    YOU ARE A LEGEND ONLY THIS ONE WORKED PERFECTLY!!!!! THANK YOU!!!!

  • @10bokaj
    @10bokaj ปีที่แล้ว +2

    This is the perfect level of explanation for me, thanks!

  • @leochavez6833
    @leochavez6833 หลายเดือนก่อน

    I have no idea what I'm watching, but I'm here for it lol. I have a lot to learn.

  • @Superwastaken1
    @Superwastaken1 ปีที่แล้ว

    This made me actually understand kind of how an is works and I already have an idea of how a kernel works too

  • @danym-98
    @danym-98 ปีที่แล้ว

    Thanks!

    • @stx_1
      @stx_1 ปีที่แล้ว

      🤑🤑

    • @nanobyte-dev
      @nanobyte-dev  11 หลายเดือนก่อน

      Wow, thank you very much, you are very kind.

  • @alicewyan
    @alicewyan ปีที่แล้ว +77

    A stack is LIFO (last-in-first-out), not FIFO. The FIFO equivalent is called a queue.

    • @MamaMia84oo7
      @MamaMia84oo7 ปีที่แล้ว

      Lov u

    • @theocrandall
      @theocrandall ปีที่แล้ว +6

      Yes I came down here to make this exact comment.

    • @michaelt126
      @michaelt126 ปีที่แล้ว +2

      at least the animations were right

    • @Kolundi
      @Kolundi ปีที่แล้ว

      thank you, I was thinking the same thing !

  • @victorsalvans7418
    @victorsalvans7418 ปีที่แล้ว

    The best video for begginers about this topic!! Excellent!

  • @skychip7784
    @skychip7784 ปีที่แล้ว

    this probably needed so much work thanks for the effort!

  • @pythonwithpandy9200
    @pythonwithpandy9200 2 ปีที่แล้ว +1

    Cool Thank you so much you are the best person who has explained assembly:)

  • @trebabcock
    @trebabcock 2 ปีที่แล้ว +1

    Finally, someone who appreciates micro. I absolutely love it.

    • @nanobyte-dev
      @nanobyte-dev  2 ปีที่แล้ว +1

      It's a nice editor, but I don't use it as much nowadays, VSCode is just better. When I need a simple editor on linux, I always fallback to vim because it's always there preinstalled, and I've learned a few basic commands.

    • @trebabcock
      @trebabcock 2 ปีที่แล้ว

      @@nanobyte-dev Totally understandable. I never did get productive with vim, unfortunately. But with micro, I was actually able to learn a lot of shortcuts, so I'm pretty productive. I go back and forth between that and VS Code because it genuinely is amazing.

    • @OriGeometryDash
      @OriGeometryDash 2 ปีที่แล้ว

      @@trebabcock I Agree, My Chromebook Sucks At Running VS code, And Micro Is Much Better, Yes, Understandable.

  • @bolow
    @bolow ปีที่แล้ว +1

    I love this, please keep doing this kind of tutorial

  • @qadirhussain7679
    @qadirhussain7679 ปีที่แล้ว +1

    This video is gold for people who want to learn something new everyday, but unfortunately we live in a world where a tiktoker easily gets millions of followers but a youtuber hardly gets any recognition.

  • @rahulr9301
    @rahulr9301 3 ปีที่แล้ว +20

    just amazing!!!! in 17:11 u mentioned stack as fifo but it should be like LIFO right?

  • @laybackluke
    @laybackluke ปีที่แล้ว +2

    I really enjoy technical low-level programming projects that present the necessary theory and definitions. I hope to see you building a compiler for a toy language from scratch one day. Or a webbrowser :)

  • @justman7656
    @justman7656 ปีที่แล้ว

    Greatest stuff that i seen ever, man, continue plea

  • @anthonymaxsalien
    @anthonymaxsalien 2 ปีที่แล้ว +2

    Badass dude really badass, this is Bill Gates level of making an OS. I will be looking forward to this. I am an Windows and Linux user so i play around with virtual machines so this should come out simple for me. Can't wait to make my own OS

  • @botobeni
    @botobeni ปีที่แล้ว

    I've been searching for ages to find something like this

  • @thatoneguy3_
    @thatoneguy3_ ปีที่แล้ว

    Best for creating os. Please do more videos!

  • @andreycwb
    @andreycwb ปีที่แล้ว +3

    Wow, everything in 23 minutes, it took me several days, weeks, to find info and figure out how to create a bootloader exactly like this 17 years ago in the 2000s internet

  • @inevitable_yt
    @inevitable_yt หลายเดือนก่อน +2

    viewing from five years later...really helpfull

  • @DalamoniNass5436
    @DalamoniNass5436 ปีที่แล้ว

    This is truly fascinating tutorial, congratulation

  • @cremeeggstudios
    @cremeeggstudios 3 ปีที่แล้ว +4

    Very underrated

  • @mcvmedia2024
    @mcvmedia2024 4 ปีที่แล้ว +4

    waiting for the next video !!!!

  • @authorotar
    @authorotar ปีที่แล้ว

    Very easy to follow instructions and explanations. One factual error: a stack is a LIFO not a FIFO.

  • @nuutti2957
    @nuutti2957 ปีที่แล้ว

    Absolutely amazing video! Thank you loads!

  • @zachthe-arcticfox
    @zachthe-arcticfox 14 วันที่ผ่านมา +1

    Better than windows 8 👍 (Amazing video btw)

  • @elizabethkroll8144
    @elizabethkroll8144 9 หลายเดือนก่อน

    whenever i get to the point of 8:55 and i try to test the operating system, i get an error saying "make: *** No targets specified and no makefile found. Stop." I've searched high and low over the internet and none of the recommendations work. If anyone one has any advice, that'd be greatly appreciated.

    • @kibaofficial6332
      @kibaofficial6332 9 หลายเดือนก่อน

      are you in the right directory where the makefile is?
      should look like something like this:
      .
      ├── build
      ├── makefile
      ├── readme.md
      └── src
      └── main.asm
      (i used the tree -L 2 command for it)

    • @WaterBucketXD2024
      @WaterBucketXD2024 4 หลายเดือนก่อน

      Just type make Makefile

    • @YourNameHere-ui5jv
      @YourNameHere-ui5jv หลายเดือนก่อน

      You probably put the Makefile in the build directory, place it out of the build djrectory

    • @ShivSindhu088
      @ShivSindhu088 12 วันที่ผ่านมา +1

      Create just main.asm file and run these commands one by one, it will create a boot.iso file, use this iso file in any virtual machine and enjoy the OS
      nasm -f bin main.asm -o boot.bin
      dd if=/dev/zero of=disk.img bs=1k count=1440
      dd if=boot.bin of=disk.img conv=notrunc
      mkisofs -o boot.iso -b disk.img disk.img

  • @issam76
    @issam76 ปีที่แล้ว +1

    assembled successfully
    copied to a Virtual floopy disk(blank that got formatted)
    bios didn't recognized it: "Non-system disk or disk error"

    • @nanobyte-dev
      @nanobyte-dev  ปีที่แล้ว

      Something didn't go properly. You can check if the disk has the proper data using a hex editor (for example HxD can open raw disks).

    • @issam76
      @issam76 ปีที่แล้ว

      @@nanobyte-dev i apologize for my mistake, i didn't knew that my device wasn't bootable, i debug to make it bootable, thank you very much for recognizing, i am using msdos(why, because it's kinda fun ngl)

  • @a_anddrade
    @a_anddrade ปีที่แล้ว

    Thats's fck'n awesome, i'm writting a compiler and the video is sooooo usefull

  • @DevNugget
    @DevNugget 2 ปีที่แล้ว +1

    Thank you so much for these videos!!

  • @ryuen-vn8em
    @ryuen-vn8em ปีที่แล้ว

    17:06 should it not be a filo manner?The stack works like first in last out or?

  • @KaosPCtech
    @KaosPCtech 2 ปีที่แล้ว

    This is great, thanks for teaching us. I thought it would have been funny if you used nano to build your os

  • @pythondoesstuff5722
    @pythondoesstuff5722 3 ปีที่แล้ว +2

    Thanks a lot sir, amazing explaination

  • @nikolaradovanovic4883
    @nikolaradovanovic4883 ปีที่แล้ว

    I love you man! Greetings from Serbia.

  • @makidoko
    @makidoko ปีที่แล้ว +2

    17:04 *LIFO (Last In First Out). The FIFO is more for stream actions.

  • @JtagSheep
    @JtagSheep 2 ปีที่แล้ว

    Wow amazing tutorials, I have previously written assembly bootloaders and a basic operating system more like a shell tbh and no one really explained about the syntax of certain assembly things like $ and $$, I knew I could jump to $ for a hlt but never what the $ - $$ did in the times loop and now I do!

    • @maxmuster7003
      @maxmuster7003 ปีที่แล้ว

      FLIP db "blub blub"
      fliplen = (FLIP - $)
      $ is the current location in memory.

  • @kinars8160
    @kinars8160 3 ปีที่แล้ว +3

    i had an error while running the qemu-system-i386 -fda build/main_floppy.img command,it shows
    Unable to init server: Could not connect: Connection refused
    WARNING: Image format was not specified for 'build/main_floppy.img' and probing guessed raw.
    Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
    Specify the 'raw' format explicitly to remove the restrictions.
    gtk initialization failed
    running on ubuntu wsl which is on windows

    • @nanobyte-dev
      @nanobyte-dev  3 ปีที่แล้ว

      Try a Windows build of qemu, instead of running it in WSL.

    • @kinars8160
      @kinars8160 3 ปีที่แล้ว

      it works when i used the virtual box ran everything from there.

    • @kinars8160
      @kinars8160 3 ปีที่แล้ว

      but why cant i run that command in wsl

    • @nanobyte-dev
      @nanobyte-dev  3 ปีที่แล้ว +1

      It depends on X, and you don't have any X server running. Google how to run GUI programs in WSL. There may be other issues and limitations with WSL that I'm not aware of, so qemu may not run at all under it. The easiest alternative is to just use a Windows version of qemu.

    • @nanobyte-dev
      @nanobyte-dev  3 ปีที่แล้ว +1

      @@kinars8160 I found this article which describes how to run qemu in WSL: boxofcables.dev/running-windows-2000-on-wsl/

  • @exploitingcodes756
    @exploitingcodes756 2 ปีที่แล้ว +1

    This channel is amazing. Keep the great work, mate!

  • @vedantpatil215
    @vedantpatil215 6 หลายเดือนก่อน

    can anyone tell me why did he set only ds and es resigter to 0 and not cs at 18:30

    • @alexmercer-d8b
      @alexmercer-d8b 6 หลายเดือนก่อน

      bro it is not a cup of your tea, stop it dont make. you will waste your time .moreover indians like you cheat on leetcode and codeforces to get good rating but rememeber in interview they will kick you out and shame you. i would recommend you to stop coding and start a shop. bad luck, alex

  • @AwesomeAggron1000
    @AwesomeAggron1000 ปีที่แล้ว +2

    Do you know how you could load this onto a usb and have it working on bare metal? I tried on linux using dd command, it does find boot sector but no string prints

  • @2EZShadow
    @2EZShadow ปีที่แล้ว

    I actually followed this tutorial on android😂
    Excellent tutorial 👍❤

    • @CEJOPawHAR
      @CEJOPawHAR ปีที่แล้ว

      There is probably absolutely no way you are making an OS on Android unless probably if you got an extremely high-end Phone.

    • @2EZShadow
      @2EZShadow ปีที่แล้ว

      @@CEJOPawHAR Samsung Galaxy A42 5G

  • @programmieren_lernen
    @programmieren_lernen ปีที่แล้ว

    The best Tutorial guy!

  • @mehrdad-mixtape7970
    @mehrdad-mixtape7970 ปีที่แล้ว

    That was amazing man!

  • @raunaksrarf1179
    @raunaksrarf1179 2 ปีที่แล้ว +3

    17:20 stack is LIFO(Last In First Out) not FIFO (First In First Out)

  • @f23anone82
    @f23anone82 ปีที่แล้ว

    Great video, thank you. Subscribed!

  • @sharadverma8792
    @sharadverma8792 10 วันที่ผ่านมา

    can you do a assembly tutorial. I am interested in this but can't find an easy explanation of it like you did

  • @cedric6941
    @cedric6941 7 หลายเดือนก่อน +2

    6:50 fire voice crack 🔥🔥

  • @SFoX-On-Air
    @SFoX-On-Air ปีที่แล้ว

    Rollercoaster Tycoon 2 was written entirely in Assembler. I cant even imagine how much work the guy put in this to make it happen.

  • @RegisMichelLeclerc
    @RegisMichelLeclerc ปีที่แล้ว

    When using VMware, it's actually faster to use PXE than going all the way to using floppy images, you just make an empty VM with a network card and you setup your Ubuntu as a BootP server + NFS server (in the old Sun style). From there, just reboot the VM, everything else is automatic, you can jump to 64-bit mode much earlier, even before you display anything.
    By the way, ISO images are also easy to generate and somewhat more "portable" than floppy images.

  • @alejandrocaviellesmartin1328
    @alejandrocaviellesmartin1328 10 หลายเดือนก่อน

    Very good videos dude, congrats! The stack is LIFO Last In First Out not FIFO 😂

  • @eritra4303
    @eritra4303 3 ปีที่แล้ว +3

    Wouldnt xor ax, ax be better than mov ax, 0. Because it uses less space?

    • @nanobyte-dev
      @nanobyte-dev  3 ปีที่แล้ว

      Yes, maybe. But the difference is extremely small. If you're writing performance critical code, it might matter, but for this which just initializes the system and runs once, a few nanoseconds isn't a huge performance gain.

    • @kamikaze_kev
      @kamikaze_kev ปีที่แล้ว

      defo, much more efficient 🤣😂

  • @matteoramanzini1842
    @matteoramanzini1842 ปีที่แล้ว +1

    How do I exit the file main.asm😅

    • @gameguy-gx7tv
      @gameguy-gx7tv ปีที่แล้ว

      depends on what text editor u using, if using one in video press alt g, for commands, ctrl s for save and ctrl q for exit

  • @allanmingau
    @allanmingau 3 ปีที่แล้ว +2

    just amazing

  • @arpanmukherjee4625
    @arpanmukherjee4625 16 วันที่ผ่านมา

    Would have loved more if you could do this series with ARM or maybe RISC V processor. That is because I remember doing with x86 already once with a book that used exactly the same NASM assembler and did the exact code you were showing. Would have loved to see how newer processors would boot, I hope there's no real mode to extended mode fiasco there but something other than that.

  • @dr.deathvolt655
    @dr.deathvolt655 3 ปีที่แล้ว +5

    This tutorials are really awesome ! i just wanted to ask, is knowledge of Data structures and Algorithms are necessary for building an OS

    • @nanobyte-dev
      @nanobyte-dev  3 ปีที่แล้ว +5

      There are some areas where they are useful, like memory management, or process scheduling. Also keep in mind that when you are building an OS you don't have the standard libraries, and you may need to implement some of these yourself. The good part is that there are a lot of resources available online, so you can learn them as you go.

    • @dr.deathvolt655
      @dr.deathvolt655 3 ปีที่แล้ว +1

      @@nanobyte-dev thank you for your reply, you are doing great job for the community thank you so much!!

  • @solarisNT-v4j
    @solarisNT-v4j 2 ปีที่แล้ว

    I was sent here by a link in a comment written by someone named Tomi Ivaswort. I have no idea who you are, but I just want to say, thanks for that link.

  • @mhamdmarch8709
    @mhamdmarch8709 ปีที่แล้ว

    The best youtube channel ❤❤

  • @WistrelChianti
    @WistrelChianti 2 ปีที่แล้ว +1

    Thanks! That made good sense.

  • @peterrobinson9935
    @peterrobinson9935 5 หลายเดือนก่อน +1

    This is a brilliant introduction to building an OS. I will look forward to working through the rest of the series of videos in an attempt to build my own PJR-DOS!
    My only criticsm is that I am building my OS in one virtual machine, and running it in another virtual machine, and all the while I have your video windowed in a third corner of my screen. Because you're using a 'black screen' for your coding, it is very difficult to see what you're typing some times (especially when the text is in red). I know I can download and look at your source code (and have done), but I'd really prefer to type in the commands in 'real time', so I can follow the stages you go though. I've yet to go through the other videos, but can I ask that when you do your next series, you can change your colours of your screen/text so that we can read the details, if at all possible, please? Otherwise, I look forward to going through the rest of your videos (and I've already 'subscribed' to your channel!
    A great 'thumbs up' from me!

  • @giornikitop5373
    @giornikitop5373 ปีที่แล้ว

    seems good. although, in diagram @9:29, i don't remember index registers (si,di), bp, sp, having a 8bit half counetrpart, they are 16bit only.

  • @genericuser1546
    @genericuser1546 ปีที่แล้ว +1

    small correction about 7:11, the bios is actually looking for the bytes 55 AA, not AA 55

    • @zwew_gang
      @zwew_gang หลายเดือนก่อน

      big endian or small endian format

    • @genericuser1546
      @genericuser1546 หลายเดือนก่อน

      @@zwew_gang Since we are talking about just bytes here endian-ness doesn't apply. If you wanted to read both bytes as an integer then you'd have to compare it against 0x55AA on big endian systems, and 0xAA55 on little endian systems.
      Hope that helps :)

  • @probablyidiot
    @probablyidiot ปีที่แล้ว

    I get the error:
    %(ASM) src/main.asm -f bin -o build/main.bin
    /bin/sh: 1: Syntax error: word unexpected (expecting ")")
    make: *** [makefile:11: build/main.bin] Error 2
    when I try to run the makefile at 8:30. Any ideas?

  • @themodesttraveler745
    @themodesttraveler745 2 ปีที่แล้ว +1

    wow i just found this its awesome .

  • @Sobre_Novel
    @Sobre_Novel 6 หลายเดือนก่อน

    Good videos don't get old

  • @rigbyb
    @rigbyb ปีที่แล้ว

    Great video, thank you very much :)

  • @danym-98
    @danym-98 ปีที่แล้ว

    Well structure. Thank you very much

  • @its_harvey
    @its_harvey 2 ปีที่แล้ว +1

    when i type "make" into the terminal, i get this error:
    make: *** No rule to make target 'src/main.asm', needed by 'build/main.bin'. Stop.
    im using ubuntu 22.04.1

    • @jijigigifull
      @jijigigifull 2 ปีที่แล้ว

      Same, did you find a fix ?

    • @nanobyte-dev
      @nanobyte-dev  2 ปีที่แล้ว

      I think the problem may be that the makefile is in the src directory, not in the root of the project. All paths in the makefile are relative to the directory where the makefile is.

  • @redblueek
    @redblueek 2 ปีที่แล้ว +1

    When I type "make" in console, i have an error "make Command not found" Can you help me?

    • @nanobyte-dev
      @nanobyte-dev  2 ปีที่แล้ว

      You probably don't have make installed, you should install make. I recommend using Linux for this (Windows Subsystem for Linux works great). On Ubuntu, you can install the build-essential package which contains most of the tools you need (apt install build-essential). You will also need nasm and qemu-system-x86_64.

    • @redblueek
      @redblueek 2 ปีที่แล้ว

      @@nanobyte-dev i installed it but i have an error "make: *** No rule to make target 'src/main.asm', needed by 'build/main.bin'. Stop."

    • @nanobyte-dev
      @nanobyte-dev  2 ปีที่แล้ว

      Did you put the makefile in the src folder? Move it out. Or, if your project structure is different, then you might need to change the makefile to match.