flat assembler
Message board for the users of flat assembler.

Index > OS Construction > .

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
kdownload



Joined: 31 Oct 2008
Posts: 18
kdownload
baldr wrote:
kdownload,

Strange, I'd just compiled your source, burnt image and it works as expected (i.e. displays "Hello, world!", waits for keypress, return to BIOS via int 19). Your mov cx, 0/div cx is unreachable, didn't you notice?

By the way, which program are you using to burn CD, and how?


Tried to get it working in bochs first, since that's the main debugger since vmware + lfb = trouble. Hm... Anyway, i didn't know what the ints did, all i know is that the code worked, and i wanted to make sure. Unfortunately, i can't get it to work in the Linux Bochs. I don't like 16bit mode, personally, so i just wanted to get something to work so i could compare it to our code to figure out what we're doing wrong.

Quote:
Keep in mind that a CD image needs to be in complete CD size sectors (2048 bytes) otherwise the CD will have trouble reading the image.
As a matter of fact Roxio version 9 will not accept an iso file that is not a size divisible by 2048.


Interesting, as i've tried that with our code, but *NOT* your code...

Quote:
This is the simple method of ensuring a proper data access in real mode.
You can see that I don't like writing real mode code. The only excuse would be boot sector code (since the cpu switches to RM for the boot). However the one good thing is that it's in segment 0 and effectively a flat 32 bit address. You'll notice that I'm using 32 bit registers in the real mode code. Even though 32 bits can't be addressed it works fine in segment 0 and not only feels like protected mode programming but allows more addressing modes.


That explains why the code to get into pmode works... See, we have working PXE and Floppy boot loaders (pxe, actually, boots itself), only *I* am having a few major floppy issues and my router is a linksys so i can't pxe boot. We've been working in vmware 'till graphics stopped working (vmware apparently doesn't like the LFB) so we're using bochs, and i wanted to boot on a real machine.

Anyway, i'm still having some trouble, but while waiting for responses i've managed to come up with a new idea to help get our code working, which we don't plan on using file systems or anything like that... So, i've hexed out alot of things, and have found some really, really interesting things. I might post some code when it's working, though, for sake of copyrights and such (even though our kernel is GPL and open source), i'll probably just modify the code you have to make a minimalistic but working boot loader.

Thanks for the help, something tells me that i'll end up heeding much of this advice.
Post 03 Dec 2008, 22:40
View user's profile Send private message Reply with quote
mikegonta



Joined: 20 Nov 2005
Posts: 99
mikegonta
[ Post removed by author. ]


Last edited by mikegonta on 28 Jan 2009, 09:02; edited 1 time in total
Post 03 Dec 2008, 23:31
View user's profile Send private message Reply with quote
kdownload



Joined: 31 Oct 2008
Posts: 18
kdownload
Easier, but the project's main purpose is to make an operating system understanding each step of the way. Though, some things like why that GDT structure, the IDT structure, and the A20 gate are so mangled and hacky i don't think anyone will ever understand.
Post 04 Dec 2008, 00:50
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Wtf all the posts and attachments are deleted?

How do I see what they were before? Sad
Post 31 May 2009, 08:09
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
Oh yeah. That's what happens when lunatics decide to use scorched earth policies because someone hurt their ego, or just for the heck of it.
I've seen this happen with at least 2 members.

This is why I only trust my HDD and its backups when it comes to storing online material.

Now let's let all those threads rest in peace once and for all, shall we?
Post 31 May 2009, 08:28
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Can you send me a copy of how this thread was before, please? It sounds interesting from the posts that are still here..


I tried archive.org but it says there is a robots.txt exclusion Sad
Post 31 May 2009, 09:23
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Azu wrote:
Wtf all the posts and attachments are deleted?


Ask mikegonta or the f**king moron who stole his account Confused

Quote:
How do I see what they were before?


This had been discussed already, Tomasz , the only person who could have a backup, didn't answer Sad

Quote:
Can you send me a copy of how this thread was before, please?


Who ???

Quote:
I tried archive.org but it says there is a robots.txt exclusion


YES. This has been discussed many times, only Tomasz knows why, but he usually doesn't answer to such troll crap threads Neutral
Post 31 May 2009, 10:26
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
The guy who said he saves all this stuff to his HDD..


P.S. why do I have to keep re-subscribing to threads every single time I reply to them? I hate it when I forget to and then don't get notified of replies to them x_x
Post 31 May 2009, 10:29
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
@DOS386:
If it was just a "f**king moron who stole his account", I guess mikegonta would've contacted Tomasz or created a new account.


@Azu:
Actually, I don't save EVERYTHING on my HDD. But it happens I have this one.
However, for some reason, the last post I have is Dex4u's 20 Jun 2006 post, before kdownload's bump. It's not a big deal since mikegonta only posted twice since then and you still have the OP.
It also seems the 3 pdf links in the OP still exist so you can still get them.


Description:
Download
Filename: Bootable cdrom ISO9660-Joliet image code.zip
Filesize: 11.02 KB
Downloaded: 164 Time(s)

Post 31 May 2009, 12:57
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Thank you. Smile
Post 31 May 2009, 13:00
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
oh, so there was a backup? thank you ManOfSteel, I wonder if a mod could re post this text back were it belongs :\
Post 31 May 2009, 13:41
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.