flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > The REAL OS construction contest Goto page Previous 1, 2, 3, 4, 5, 6, 7 Next |
Author |
|
Coddy41 25 Feb 2009, 19:24
No worry, I only learn from there code... I will have to wright my own boot loader, that's all. But no Bios calls, can I still use it to get the time?
|
|||
25 Feb 2009, 19:24 |
|
revolution 26 Feb 2009, 00:03
Coddy41: You are not permitted to use the BIOS for anything. That includes getting the time.
|
|||
26 Feb 2009, 00:03 |
|
Coddy41 26 Feb 2009, 00:11
awww... I don't know if I can do it, I love time and date calls...
|
|||
26 Feb 2009, 00:11 |
|
revolution 26 Feb 2009, 00:23
Getting the time out of the clock chip is easy, read up about it.
|
|||
26 Feb 2009, 00:23 |
|
Madis731 26 Feb 2009, 09:39
My X58 supports (U)EFI. I think there was a date in history, when all newer mobos from that date would come with (U)EFI...
|
|||
26 Feb 2009, 09:39 |
|
sleepsleep 26 Feb 2009, 12:22
seems cool, let hope many will take this opportunity
|
|||
26 Feb 2009, 12:22 |
|
bitRAKE 26 Feb 2009, 17:25
revolution, can applications use BIOS?
Not the OS, but programs for the OS? |
|||
26 Feb 2009, 17:25 |
|
bitRAKE 26 Feb 2009, 17:43
Darn, you don't leave any room for weaseling.
|
|||
26 Feb 2009, 17:43 |
|
revolution 26 Feb 2009, 17:48
bitRAKE wrote: Darn, you don't leave any room for weaseling. |
|||
26 Feb 2009, 17:48 |
|
edfed 27 Feb 2009, 08:01
int9 is the int for keyboard, of course, application don't call it, but what about a virtual keyboard that bypass this int9 just to simulate a keystroke?
it is a int xx where xx<32. i don't see the problem if we use ints in apps, but theses ints should be written, or at least included in the OS. no? a general rule could be: everything written with fasm can be done. everything that is not in the source code cannot be called. |
|||
27 Feb 2009, 08:01 |
|
revolution 27 Feb 2009, 08:22
edfed wrote: int9 is the int for keyboard, of course, application don't call it, but what about a virtual keyboard that bypass this int9 just to simulate a keystroke? If you decide to leave the BIOS INT 9 handler pointing into the BIOS then you won't be able to receive keystrokes (because you can't call INT 16h). Your choice of course, but I would imagine that a good OS would provide for the apps to receive keystrokes. My suggestion would be to override all the BIOS hardware INT's so that your OS can receive them. edfed wrote: a general rule could be: |
|||
27 Feb 2009, 08:22 |
|
revolution 27 Feb 2009, 08:31
I have excluded all INT's below 32 for two reasons. 1) to avoid confusion with the standard BIOS function calls. and 2) to meet the original Intel spec of the reserved interrupt space being 0-31. If you want to use hardware interrupts in your OS, then, to meet the rules, you will have to move the PIC base to at least 32 (higher if you want, but not lower).
|
|||
27 Feb 2009, 08:31 |
|
Dex4u 28 Feb 2009, 03:36
Right by these rules, you only have one problem to solve, that is loading more sectors than the one loaded at bootup.
The rest is childs play, So your only chose is hdd, as you can not fit a floppy driver in less than 512bytes, everything eles i have already coded, not using any BIOS code (as with any pmode OS). The problem is who is going to test on there hdd ( as emulator can be tricky) and what time scale do we have. I think the best bet is to use the unused sector after MBR on hdd. |
|||
28 Feb 2009, 03:36 |
|
LocoDelAssembly 28 Feb 2009, 04:06
Accessing data structures created by the BIOS is allowed (i.e. accessing memory written by BIOS without issuing any software interrupt)?
|
|||
28 Feb 2009, 04:06 |
|
revolution 28 Feb 2009, 04:45
LocoDelAssembly wrote: Accessing data structures created by the BIOS is allowed (i.e. accessing memory written by BIOS without issuing any software interrupt)? To all: This is just a friendly compo between us like minded people. I would hope that people are not trying to find holes in the rules and use the pre-written BIOS codes. I acknowledge that there may be some holes (I tried my best to cover the most common scenarios) but please try to understand the "spirit of the rules" and try your best to follow the spirit if not the exact wording. Indeed, if you notice a glaring hole in my rules as posted, then please point it out and I'll try to cover it without being too dictatorial. |
|||
28 Feb 2009, 04:45 |
|
LocoDelAssembly 28 Feb 2009, 05:13
I mean if you are allowed to access ACPI tables for example, and also the 0040h segment. The latter is a little bit tricky because some vars there change over the time (for example you could get a free tick counter from there), but there are other vars also that tell something about the installed hardware.
So, those data structures are fully allowed, partially or completely forbidden to use? |
|||
28 Feb 2009, 05:13 |
|
revolution 28 Feb 2009, 05:23
LocoDelAssembly wrote: I mean if you are allowed to access ACPI tables for example, and also the 0040h segment. The latter is a little bit tricky because some vars there change over the time (for example you could get a free tick counter from there), but there are other vars also that tell something about the installed hardware. BUT I caution anyone with using this. Remember that other people will only vote for your OS if they like it best. So if you use these memory structures you many find out later that, due to incompatibilities, your OS is non-functioning when someone else is testing it on their hardware (or emulator). It may be of no importance to you that you can run it but others cannot but then you probably will have lost a few votes. |
|||
28 Feb 2009, 05:23 |
|
Coddy41 28 Feb 2009, 15:46
So a REAL OS needs at least a FDD & a Keyboard driver, with NO Bios calls, correct?
|
|||
28 Feb 2009, 15:46 |
|
revolution 28 Feb 2009, 15:51
There is no requirement to support FDD or KBD if you don't want to.
But remember that it is being voted on by the readers here, so the more you can support then perhaps the more votes you will receive. |
|||
28 Feb 2009, 15:51 |
|
Goto page Previous 1, 2, 3, 4, 5, 6, 7 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.