Boot file for virtual box

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
User avatar
BOTOKILLER
Member
Member
Posts: 28
Joined: Tue Jan 04, 2011 10:25 am
Location: Ukraine

Boot file for virtual box

Post by BOTOKILLER »

How do I write boot file, so that it works in Virtual Box ?
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Boot file for virtual box

Post by neon »

Hello,

Assuming you mean boot sector, either use a virtual or real disk drive or disk image and use a tool to copy the boot sector to it. There are a lot of different disk imaging tools available - the Wiki provides information on a few of them.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Locked