Page 1 of 1 [ 4 posts ] 

fgets
Butterfly
Butterfly

User avatar

Joined: 29 Sep 2014
Age: 34
Gender: Male
Posts: 13

19 Nov 2014, 6:25 pm

The problem is that it won't print a message using (int 10h: ah, 0x0E) bios interrupts in the
second stage or the second sector. Can you print a message in the second stage boot file?

Quote:
operating system: ubuntu 14.04 LTS
emulator: qemu
processor: intel
processor size: 64-bit


Then again, how do you handle both the first and second stage boot files?



MaryXYX
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 3 Jan 2014
Age: 76
Gender: Female
Posts: 29

09 Dec 2014, 7:39 am

That ought to work, but the last time I was fiddling with boot loaders it was on floppies. Does it matter that it's going to load Ubuntu? At boot loader time it hasn't got that far.



fgets
Butterfly
Butterfly

User avatar

Joined: 29 Sep 2014
Age: 34
Gender: Male
Posts: 13

11 Dec 2014, 9:33 am

No, not ubuntu. Well, my question is that it didn't print a message with stosb string instruction? So, then the idea is to use geek loading or cram the data structures into the 512-byte boot stage.



MaryXYX
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 3 Jan 2014
Age: 76
Gender: Female
Posts: 29

11 Dec 2014, 7:04 pm

If it's a hard disk boot loader it should be possible to use more than one sector. I think the BIOS switches the graphics into a simple text mode, so the text INTs should work.