This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-12 19:44:17

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

TheOS: Bootable OS made by me

I mean "real" as in bootable; from scratch.

Right now I don't have a real floppy and I don't want to waste a CD so I am making it inside of a VM! *hurray* And it boots in the same VM independently! *hurray*

.ASM downloads (COPY AND PASTE):
v0.01

If you have Virtual PC 2007, make a virtual floppy disk and save it somewhere. In VirtualBox or what you use, make a floppy controller and leave it. Make sure that the floppy comes before the HDD in the boot order. Boot the machine, insert the floppy, and execute this:

Code:

nasm boot.asm -f bin -o boot.bin
sudo dd if=boot.bin of=/dev/fd0

Reboot  big_smile

Last edited by ThePCKid (2011-05-12 20:03:51)

Offline

 

#2 2011-05-12 20:03:16

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: TheOS: Bootable OS made by me

v0.01: Only thing that works is text output and ctrl+alt+del restart

Code:

    mov ax, 0x07C0
    mov ds, ax
    mov si, msg
ch_loop:lodsb
    or al, al
    jz hang
    mov ah, 0x0E
    int 0x10
    jmp ch_loop
hang:
    jmp hang
msg db 'Welcome to TheOS', 13, 10, 0
    times 510-($-$$) db 0
    db 0x55
    db 0xAA

Offline

 

#3 2011-05-13 17:23:42

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: TheOS: Bootable OS made by me

I've just made a minimalistic kernel that can write to video memory in C!  big_smile

However, I had a long list of commands to do.

Last edited by ThePCKid (2011-05-13 17:24:53)

Offline

 

#4 2011-05-13 17:45:00

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: TheOS: Bootable OS made by me

This thing looks pwn. Nice job! Looking forward to all the things you'll add in this.  big_smile


Yawn.

Offline

 

Board footer