Hello every one,
Ive taken on the chalange of codeing a small, and simple OS as a school project. Ive started on writing a boot sector however, when i call any bios function, there is no result to the computer, as if i never coded the function if the first place. I am useing Nasm with DOS Debug. Ive been primaraly testing on a compact deskpro, pentium III, 686t3 ROM family, 128 megs of ram. I wrote this program to test weather a bios functions has any affection on the computer, and this program did nothing but boot and freeze.
This code has no effect:
org 07C00
int 0x19
times 510-($-$$) db 0
dw 0xAA55
Thanks,
Spam
bios interrupt functions not working
Re:bios interrupt functions not working
Hmm, could be wrong, but don't you need to setup a stack before you start using interrupts?
INT 19h is supposed to do a warm reboot, but I don't know much more about it aside from that. Perhaps it isn't as reliable in newer BIOS.
Curufir
INT 19h is supposed to do a warm reboot, but I don't know much more about it aside from that. Perhaps it isn't as reliable in newer BIOS.
Curufir
Re:bios interrupt functions not working
I used int 19 as an example if the int statement has any affect. Both int 10, int 13, and int 19 have no affect on the computer. I'll fallow your advise and creat a stack before I call the function, see if it dose anything....
Re:bios interrupt functions not working
Now it did something!!! not what i wanted it to but it accually did something!
with in 0x19 the floppy light stayd on untill i removed the disk, pressed a key, then it loaded into windows.
when I tested int 0x10 the only moved the curser, then i tried to have it display a string and it repeadedly displayd all sorts of **** to the screen and scrolled.
with in 0x19 the floppy light stayd on untill i removed the disk, pressed a key, then it loaded into windows.
when I tested int 0x10 the only moved the curser, then i tried to have it display a string and it repeadedly displayd all sorts of **** to the screen and scrolled.
Re:bios interrupt functions not working
you must set up a stack and select a bios funcion. Look my bootsector.
Get rid of all the stuff exept the stuff you have ( in my code ) and put a mov ax, 0x13
int 10h
Get rid of all the stuff exept the stuff you have ( in my code ) and put a mov ax, 0x13
int 10h
Re:bios interrupt functions not working
after i download and try to view the boot.asm file, it is scramled, or currupted ::)
Re:bios interrupt functions not working
oh, well you use win, in linux it's correct.
open it up in word pad
open it up in word pad
Re:bios interrupt functions not working
heh, i'd love linux but parents would kill me if i put it on this computer. already crashed it due to an atempt to install red hat 5.2.
anyways, when i did what you said, the screen went blank(ax = 13 then int 0x10,) including the curser dissapeard.
I booted your boot sector as a whole, it just rebooted its self when in jumped to the kernel it was sapose to load but didn't exist. it did nothing else.
ive tried calling the display function (ah = 0E, int 0x10) after i created a stack but nothing happend.
anyways, when i did what you said, the screen went blank(ax = 13 then int 0x10,) including the curser dissapeard.
I booted your boot sector as a whole, it just rebooted its self when in jumped to the kernel it was sapose to load but didn't exist. it did nothing else.
ive tried calling the display function (ah = 0E, int 0x10) after i created a stack but nothing happend.