That should work. Why do you ask?
~Andrew
Search found 387 matches
- Mon Jan 24, 2011 9:15 pm
- Forum: Beginners
- Topic: Load a C-kernel entry?
- Replies: 1
- Views: 29768
- Mon Jan 24, 2011 9:13 pm
- Forum: General Questions
- Topic: Forum Modifications
- Replies: 4
- Views: 49204
Re: Forum Modifications
I clearly didnt catch that one quick enough
~Andrew
~Andrew
- Sun Jan 16, 2011 2:22 pm
- Forum: Assembly Language
- Topic: doubt on int 10(0e) & reading sector
- Replies: 4
- Views: 40120
Re: doubt on int 10(0e) & reading sector
When using the BIOS to emulate a floppy drive, normal floppy commands will work. However, you have to make sure you save dl when entering the bootloader as it contains the drive number refering to the medium which was booted, and you will have to use that in preference to "drive 0" which is hardcode...
- Sun Jan 16, 2011 2:16 pm
- Forum: Beginning OS Development
- Topic: How to make an bootable iso (not cd or flash drive)?
- Replies: 2
- Views: 9864
Re: How to make an bootable iso (not cd or flash drive)?
On any linux distributions, just use dd to copy the bootsector.
Loop mount the iso image and dd directly to the loop device.
e.g.
~Andrew
Loop mount the iso image and dd directly to the loop device.
e.g.
Code: Select all
losetup /dev/loop<NUM> /path/to/image.iso
dd if=/path/to/bootloader/binary of=/dev/loop<NUM> bs=512 count=1
- Wed Jan 05, 2011 11:14 pm
- Forum: Beginners
- Topic: simple question
- Replies: 3
- Views: 36957
Re: simple question
Yes you can. Also, you dont specifically need to make it 2048 long. There is BIOS compatability mode to boot from a CD as if it were a floppy disk. Most emulation software and all PCs should be able to do this. I suggest you have a look at isolinux which has a few documents on the subject. ~Andrew
- Tue Dec 28, 2010 3:46 am
- Forum: Beginning OS Development
- Topic: PIT frequency problem
- Replies: 5
- Views: 14354
Re: PIT frequency problem
@Hoozim: Bochs uses virtual time so timeslices are not relevent to the problem. Also, your logic would make a 1Hz signal more likely to occur than a 100Hz signal @chosen_1: This is due to a limitation of the PIT hardware, you cant get a frequency less than 16 Hz. See http://wiki.osdev.org/PIT for mo...
- Thu Nov 18, 2010 8:38 am
- Forum: C and C++
- Topic: How does PartCopy work ?
- Replies: 6
- Views: 44623
Re: How does PartCopy work ?
No - the GUIDs are per device on the computer - but you really will need a windows reference to know how to use the device paths correctly.
As for iostream and fstream - they are little more than wrappers around the c stdio library in an object orientated fasion.
As for iostream and fstream - they are little more than wrappers around the c stdio library in an object orientated fasion.
- Wed Nov 17, 2010 11:25 am
- Forum: C and C++
- Topic: How does PartCopy work ?
- Replies: 6
- Views: 44623
Re: How does PartCopy work ?
Pshh, I didn't know it was that simple! :) A great many things are a lot more simple than they look. The key to partcopy is that it doesnt open a normal file - it opens a file which represents the raw data on the disk (something like \\?\Disk\{GUID}\.. but I really dont know windows internal device...
- Fri Nov 12, 2010 11:24 am
- Forum: Beginning OS Development
- Topic: bootloader
- Replies: 3
- Views: 10628
Re: bootloader
You can get the linker script to put in arbitrary values at arbitrary locations.
- Thu Nov 11, 2010 10:38 pm
- Forum: Beginning OS Development
- Topic: solved: osdev floppy oem block
- Replies: 3
- Views: 10958
Re: osdev floppy oem block
have you got the bootloader signature at the end of the block? (0xAA55)
~Andrew
~Andrew
- Thu Nov 11, 2010 10:37 pm
- Forum: Beginning OS Development
- Topic: bootloader
- Replies: 3
- Views: 10628
Re: bootloader
For gcc, you need to: 1) compile the c file to an object file (.o) 2) assemble the asm file to an object file (.o) 3) use ld to link the two object files into a single binary. In your linker script, specify that the output format should be binary rather than elf. see http://wiki.osdev.org/Bare_bones...
- Mon Nov 08, 2010 10:43 pm
- Forum: General Questions
- Topic: VFS error
- Replies: 5
- Views: 50237
Re: VFS error
Sorry but you are going to have to provide more information than just that.
First of all, what processors are in the real computers you tried?
First of all, what processors are in the real computers you tried?
- Wed Oct 27, 2010 11:53 pm
- Forum: C and C++
- Topic: Getting PA of a structure/inside a class
- Replies: 4
- Views: 38395
Re: Getting PA of a structure/inside a class
Unfortunatly that is not safe. It assumes that no extra fields are inserted at the top of the structure, which is not the case if you are doing debugging, or if you are using virtual base classes. Anyway, the proper way to reference fields in data structure is as so: _asm { lea eax,<object_name> ; L...
- Wed Oct 27, 2010 6:03 pm
- Forum: C and C++
- Topic: Getting PA of a structure/inside a class
- Replies: 4
- Views: 38395
Re: Getting PA of a structure/inside a class
Which build environment are you using? MSVC based or GCC based?
There is no standard way to do this, but there are ways to get it working in both.
~Andrew
There is no standard way to do this, but there are ways to get it working in both.
~Andrew
- Sun Oct 17, 2010 8:41 pm
- Forum: General Questions
- Topic: mike is so lazy
- Replies: 2
- Views: 40643
Re: mike is so lazy
This will be your first and only warning- we do not tolerate comments like that. Ignore it at your own risk. Some of us, myself and Mike included, have these things called jobs which have a habbit of taking up quite a lot of time. Now if you are "tired of waiting", I suggest you get off your lazy ba...