flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Why Is It That "int 21h" Doesn't Work For OS |
Author |
|
LocoDelAssembly 15 Oct 2011, 21:29
Quote:
To read and write files, you need to write your own code to deal with FAT file system and also use Int 0x13 read/write operations (or your own code to handle the hardware directly). Search the forum, there are some FAT code already besides FAT-capable OSes (although not sure how many of them provide the source without some sort of membership these days). |
|||
15 Oct 2011, 21:29 |
|
nitt 15 Oct 2011, 21:33
LocoDelAssembly wrote:
Thanks, I'll be looking that up. I wish people would make more advanced tutorials. I started Assembly tutorials, made them as basic as possible, and went on to like 28 (enough tutorials to explain what I know). But it seems that no one else has the time to make video tutorials. I probably won't be able to figure this out for awhile unless someone provides source and explanation. Because I have a lot of more ambitious things to do than just sit on a computer and learn Assembly. |
|||
15 Oct 2011, 21:33 |
|
addes3 15 Oct 2011, 22:11
Well, there's a great FAT12/FAT16 OS tutorial over at http://www.brokenthorn.com/Resources/OSDevIndex.html . I'm currently using this. There's also some great stuff at http://osdev.net.
|
|||
15 Oct 2011, 22:11 |
|
smiddy 21 Oct 2011, 02:57
INT 21h is a PC/MS-DOS (originally) usage and would need to be written into your own OS to work. Otherwise you need to use BIOS calls and they are all over the place. Look up 'Ralf Brown's Interrupt List' and you can use those until you've got command of the hardware to use.
|
|||
21 Oct 2011, 02:57 |
|
DOS386 05 Nov 2011, 10:21
nitt wrote: When I'm writing my OS, I can use any interrupt except for int 21h. Not correct. You can use only what BIOS gives you - INT $10, $13, $15 as the most important ones, and only from real mode. You can't use for example INT $21 (DOS), INT $2F (DOS more mess), INT $31 (DPMI), INT $33 (mouse driver), INT $60 to $67 (EMS VCPI PACKET ...). Quote: I couldn't figure out though, was how to read and write files without int 21h. Implement a filesystem (FAT, LPFS, NTSC, EXT, ...) |
|||
05 Nov 2011, 10:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.