how to do chainloading
Posted: Mon Aug 29, 2011 11:19 pm
hi guys,
I have made a simple boot loader which enters into PM and displays a character.When I kept all the code within a single file it gets executed properly but when I try to execute the code from two different files it do not executes the second file.I have initialized GDT in 1st file,and in 2nd file I am printing just a single character.I have used %include directive of NASM in main file which I am trying to build.In 1st file I have used int 13h to read 2nd sector of floppy which is 7e00h and then I have made a jump to label in second file(right?).
thnx in advance.......
I have made a simple boot loader which enters into PM and displays a character.When I kept all the code within a single file it gets executed properly but when I try to execute the code from two different files it do not executes the second file.I have initialized GDT in 1st file,and in 2nd file I am printing just a single character.I have used %include directive of NASM in main file which I am trying to build.In 1st file I have used int 13h to read 2nd sector of floppy which is 7e00h and then I have made a jump to label in second file(right?).
thnx in advance.......