Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Assembly 

Simple OS coded in NASM (16-bit, both for QEMU or VBox)

OS (Click to View)

Build File (PYTHON) (Click to View)

BAT Exec (Click to View)

It isn't much, but it could be used for learning- it's written in pure NASM with-out any macros or C functions, so this can be just run under DOSBox with certain commands to build it to be so. But this does require prerequisites for it to work, one- being Python- is optional, and the other- NASM- isn't so optional unless you've found a way of building it manually.

Save the Assembly file as something like _os.asm (so it is at the top of the directory listing- usually) and the Python file under _build.py or something of the likes. If you cannot afford to download Python, then simply save the .bat as something like _build.bat and run it. (I don't know the equivalent for Linux, but it should be the same as calling NASM and just selecting the file)

This is a floppy file, so if you run it in Virtual Box or so; if any additions of code plus over 1440KB, you will encounter an error; thus you'll need to run it in QEMU as as far as I know, Virtual Box doesn't support plain binary formats. So just simply add an instruction in the Python file which calls qemu-system-i386 -fda _os.bin/flp (thus you'll need to have qemu installed, which isn't that big of a file.

My Github is at: https :// github .com/unazed/OS1 if you want to see older versions (or however Github works) or commit code. Thanks for reading.

Here's a picture of it being run in QEMU

imgur .com/GKdJcoK.png
Contact for professional programming services.
unazed#5906
Well done man. I hope you will develop this project into something bigger over the time. Good luck
[Image: V9Gredc.png]
(Dec 21, 2016 02:50 PM)Malicious Intent Wrote:  Well done man. I hope you will develop this project into something bigger over the time. Good luck

Thanks, I've commented the code since somebody on Discord suggested that people trying to read it might be baffled. I do plan on adding integration with languages like D or C later on, but I think I should make it a shell first. But nonetheless thanks for your post, my friend said people here would embarrass me or something ;)
Contact for professional programming services.
unazed#5906
(Dec 21, 2016 02:54 PM)Infamia Wrote:  Thanks, I've commented the code since somebody on Discord suggested that people trying to read it might be baffled. I do plan on adding integration with languages like D or C later on, but I think I should make it a shell first. But nonetheless thanks for your post, my friend said people here would embarrass me or something ;)

Lol don't listen to your friend haha.. Yeah shell would be nice for sure. Its nice to see projects with big potential just taking of. As i said i hope you will continue to develop this. Bright future ahead buddy.
[Image: V9Gredc.png]
(Dec 21, 2016 03:04 PM)Malicious Intent Wrote:  Lol don't listen to your friend haha.. Yeah shell would be nice for sure. Its nice to see projects with big potential just taking of. As i said i hope you will continue to develop this. Bright future ahead buddy.

Oh God, I've just fallen into the problem of running out of space in the sector; I've written the shell already but I can't fit the most vital 2 bytes into there which signifies that it's actually bootable and an OS, I guess I'll have to write a bootloader first.
Contact for professional programming services.
unazed#5906
(Dec 21, 2016 04:59 PM)Infamia Wrote:  Oh God, I've just fallen into the problem of running out of space in the sector; I've written the shell already but I can't fit the most vital 2 bytes into there which signifies that it's actually bootable and an OS, I guess I'll have to write a bootloader first.

Lol .. there you go... you will probably run into many problems like this but by the time you done with them you will have nice lil functional OS..
[Image: V9Gredc.png]
(Dec 21, 2016 05:10 PM)Malicious Intent Wrote:  Lol .. there you go... you will probably run into many problems like this but by the time you done with them you will have nice lil functional OS..

True man, I hope the rest of Hackforums is mostly like you, thusfar I've posted a few times in Lounge and I think the people are kind of nice but prone to getting mad at something annoying. I will try to keep the OS in on or two files however since I hate switching back and forth files, with the exception of build files of course.
Contact for professional programming services.
unazed#5906
Well ill be following this development..
[Image: V9Gredc.png]
Hey, nice work. I also have some experience with this. Have you planned on adding support for protected mode and memory segmentation? It would allow you to put in your shell. I could help you with that.
(Feb 15, 2017 03:10 PM)Venom0 Wrote:  Hey, nice work. I also have some experience with this. Have you planned on adding support for protected mode and memory segmentation? It would allow you to put in your shell. I could help you with that.

this idea is quite gone, sorry.

i'm learning more c/++ so i can cross-compile it later with the assembly and make an actual OS rather than a text editor with protected mode and all the other neat shit.
Contact for professional programming services.
unazed#5906
(Feb 16, 2017 12:29 AM)Infamia Wrote:  this idea is quite gone, sorry.

i'm learning more c/++ so i can cross-compile it later with the assembly and make an actual OS rather than a text editor with protected mode and all the other neat shit.

Such a great post, it's a pity you're no longer into this.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by nucleo_type09Apr 27, 2024 07:41 AM 19 385 Apr 27, 2024 07:41 AM
Last Post: nucleo_type09
[Assembly] by MordiciaMay 2, 2019 11:36 AM 0 307 May 2, 2019 11:36 AM
Last Post: Mordicia
[Assembly] by friiz1337Jan 27, 2019 03:27 PM 10 565 Jan 27, 2019 03:27 PM
Last Post: friiz1337