Bona Fide OS Developer
View unanswered posts | View active topics It is currently Sun Sep 20, 2020 12:20 pm

Post new topic Reply to topic  [ 5 posts ] 
 512 Byte 
Author Message

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post 512 Byte

At OSDev, they had a "512 byte OS challenge" a year or two ago. I think they were mocking me. In my website documentation I said to Copy files onto your partition and run "InstallBoot" to install it on your partition boot record. Installboot compiles the kernel and modifies the partition boot record with the LBA (logical block address) of the kernal binary and it's size in blocks.

They thought I was saying it is contained in the boot record.

They're a little confused over there because use Grub and everybody group thinks boot loaders should switch modes and navigate file systems. Mine does neither. My bootloader presents real mode to my kernel at the start of a boot and my kernel is free to call BIOS routines and switch modes itself.

Patching the LBA of the kernel into the boot record is easy when you're the boss. You have to boot strap ( in the traditional sense) yourself to the point where you can install yourself onto a partition, though. For those of you with ATA hard drive routines and native compilers, it's a piece of cake putting the offset of your main module into the partition boot record's code.

The OSDev guys have a religion of how things are done, and I'm a heretic, so they banned me. Retards.

They sabotage people with CHS horseshit and dependency on other people's bootloaders and overcomplicate everything. Ask a question and the answer will be highly overengineered because they want to be professional as opposed to reasonable. They give highly overengineered advice which discourages people and I'm sure they don't follow it themselves. Don't waste time on compatibility back to the stone age.

Kieran, we need to distinguish ourselves from OSDev so we can be the most popular. Build loyalty :-)

Trust me--I'm the king of alternative ("hobby" is a bad word) operating systems, for now. Google "64-bit Operating System."

Sun Feb 06, 2011 9:02 pm

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post Re: 512 Byte
I get a lot of skeptics when I say it never runs code I didn't right except a few BIOS calls during boot. 7 years full-time is a long time.

I got so frustrated with doubters, I finally wrote a little compiler and graphics library.

These are public domain -- no strings attached.

For the full code, look here. It's also 100% public domain
and written by me from scratch:

I took a course on graphics and a course on operating systems and a course on compilers at ASU. I worked as a programmer on Ticketmaster's operating system 1990-1996. It was somewhat like an internship. I worked in VAX assembly for part of the time. My boss wrote our PASCAL compiler. Everything was from scratch.

Read this:

OSDev guys go about dick-ishly bullying tiny fish. They have no clue there are far bigger fish and they are little fish.

Mon Feb 07, 2011 3:01 am

Joined: Wed Oct 14, 2009 9:39 am
Posts: 198
Location: United States
Post Re: 512 Byte
Again, these forums are not for your pissing contest with the OSDev website

Charles Timko
push %esp ;Musings of a computer addict

Mon Feb 07, 2011 8:30 am
Profile WWW

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post Re: 512 Byte
This is not really a dispute, but rather an answer to OSDev questions. There are no posts on this BF site, so what am I supposed to talk about?

LoseThos is definitely more C-ish, not PASCAL-ish. I wrote my compiler and decided to use the

RET ###

instruction in functions. This saved lots of bytes. The order of arguments on the stack in LoseThos is C order, not PASCAL order.

I wrote a disassembler.

I wrote my own compiler and changed how vardactic(...) functions work.
With my way, when you declare a function with "...", my compiler creates two variables for that function "argc" and "argv". When that function is called, it's parameters can be int, float, string or whatever.

Here's where my parser loads parameters on the stack when a "..." functions is called:

Here is where my PrintF is:

Tue Feb 08, 2011 7:50 pm
Site Admin

Joined: Fri Jul 24, 2009 10:02 pm
Posts: 247
Location: Las Vegas, NV, US
Post Re: 512 Byte
Losethos, you're kind of just throwing out links. Mind giving some guidance on all of this?

You can't write a functional OS in 512 bytes. Just not possible. Maybe if it never output strings to the display you could fit some things in, but not much worth trying over.

What's your stand on this exactly?

Mon Aug 22, 2011 12:35 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.