I have written a bootloader in ASM (I can post code if you like) and I plan to write a kernel in C /c++ because I don't want to have to deal with a Kernel written ENTIRELY in ASM. Is there any way (Got to keep this under or at 512 bytes) to allow the bootloader, written in ASM, to pass control (like call a method or something) to the C kernel? I'm a newbie to this kind of thing, and I thought I would ask the pros. Please be nice, this is my first post! :icon_cheesygrin:

Member Avatar
Member Avatar
+0 forum 9

Help! I don't know what I did! I was in the process of helping to fix a friends HDD by plugging it into my system to then chkdsk, get updates, etc, little did I realize I left some sort of bootloader on the flash drive that I was using and it loaded the USB drive first when I plugged back in my own HDD. some install.wim file or image or w/e was loaded and now my system doesn't even recognize my HDD as a viable loading source once I try to boot my system. I have Windows 10 originally, I'm …

Member Avatar
Member Avatar
+0 forum 2

I installed windows 10 and it works good , then I installed kali-linux and that problem apears. when i open my computer it goes directly to windows not to dual boot (bootloader) to choose between the windows and kali .. I tried the live USB solution but nothing happen.. it still going to windows directly .. how can I solve this problem ?

Member Avatar
Member Avatar
+0 forum 1

Hi there, I have a machine with 2 harddrives. One has Windows 7 installed and the other has Windows 8 Consumer Preview installed. Since my Win8 is my primary, it starts up into windows 8 without even showing the bootloader. Is there a way for me to go add the other HDD that has win7 installed to the win8 bootloader so that I can choose between the 2 OSs when starting up? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 6

Hey guys, i'm trying to compile this piece of code with nasm in Ubuntu. It's a boot loader for a simple operational system i'm doing as a university project. [CODE][BITS 16] ; 16 bit instructions [ORG 0x7C00] jmp word load db "ONYXDISK" ; OEM Label String dw 512 ; Bytes per sector db 1 ; Sectors per FAT cluster dw 36 ; Resered sector count db 2 ; number of FATs dw 224 ; Root dir entries dw 2880 ; Total Sectors db 240 ; Double sided, 18 sectors per track dw 9 ; Sectors per FAT dw 18 ; …

Member Avatar
Member Avatar
+0 forum 3

Earlier when I came here I had only a minimal set of utilities and a WinXP comp.. Now i'm here and serious, with kubuntu (and Internet!!!!) and willing to learn all of that dd, mov, eax, and bochs stuff. Here is my delemia: I have a C++ Program, have no idea how to make a simple bootloader for it. From other questions it boiled down to these: Initialize the FAT filesystem Start the program. How? I need to know what dd and asm commands to use in terminal too as I have had a bad history with bochs and dd …

Member Avatar
Member Avatar
+0 forum 4

Hi guys :D I have a windows 7 touchscreen tablet and I would like an ubuntu partition. The issue is that the bootloader that comes with windows 7 doesn't support touchscreen input so i will not be able to select which OS to boot into. I understand that the windows 8 Developer preview uses a bootloader that works with touchscreens, so my question. Is it possible to use the windows 8 bootloader without using the OS to select between a win 7 and ubuntu partition and if it is possible, will it cause problems? Thanks :D

Member Avatar
Member Avatar
+0 forum 1

I have just completed my first program in c++.I am an ultra newbie,have only been doing c& c++ for 12 days,so please forgive me if my program is shit.Anyways i would like the experts on this forum to evaluate my work and give me tips and hints to make myself a better programmer. Moschops gave me a very useful way to search for strings,and although it worked on it's own [ICODE]http://www.daniweb.com/software-development/cpp/threads/392659/1688590#post1688590[/ICODE] i couldn't figure it out ,most probably because it's my 2nd day in c++. I would like to know an analogue of [CODE]system("cls);[/CODE] since the String print i used …

Member Avatar
Member Avatar
+0 forum 2

hi. i have 500gb HDD, first i install window 7(64-bit) then after fedora14 on separate partition using Fedora-14-i686-Live-Desktop cd. so when my laptop is booting it shows a boot screen with two option, fedora OS(as default) and win7 as other.After 3 second, Fedora is automatically starting. I just want to make window7 as my automatic booting OS. so how to make win7 as my default or primary OS at boot time by which i can load it automatically ?. any help would be appreciated. regards mundvawala

Member Avatar
Member Avatar
+0 forum 4

So, I recently got an MBR virus and after (and partially during) removal I began to get frequent BSOD's and freezes (as in, no debug info simply stop doing any operation), and those BSOD's didn't provide any useful debug information (no message in all caps such as "IRQL NOT LESS OR EQUAL"). I ran a chkdsk and it came out clean and I also ran a Windows Memory Diagnostic (2 passes), and that came out clean as well. Please note that there is absolutely no chance of this MBR virus still there, I deleted all partitions of all of my …

Member Avatar
Member Avatar
+0 forum 2

Did not load driver... Did not load driver.... Did not load driver.... I'M SICK OF IT!!! Here's the story: I'm running XP/Service Pack 3 - Things were running mildly quirky, so I decided to re-install Windows... No big deal, I booted up from the Windows Disk and ran the 'repair windows' program... OK, so far so good... BUT, after completing the install, it took over 90 seconds to boot! - So, I booted again... same thing. And again... same thing... and again. It was predictable. Over a minute-and-a-half staring at a silent, black screen waiting for the little cursor arrow …

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, I'm creating my own OS from scratch, and I'm first producing an installation CD so that I can easily install my kernel on a hard drive. So far, I've written a CD-based bootstrap loader in NASM that finds a program within the root directory of the CD, loads it into a known area in memory, and executes it (this uses the ISO-9660 specification). I'll more-than-likely just remain in 16-bit mode to run my installer, and switch to an installer that runs within the kernel once I get far enough (i.e. once I actually have a kernel!). Now, my …

Member Avatar
Member Avatar
+0 forum 4

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to it from startup, nothing appears and it hangs. Any ideas as to why? Bootloader code- [CODE][bits 16] [org 0x7C00] jmp reset reset: ;Resets floppy drive xor ax,ax ;0 = Reset floppy disk mov dl,0 ;Drive 0 is floppy int 0x13 jc reset ;If carry flag was set, try again mov …

Member Avatar
Member Avatar
+0 forum 1

Ok so i have this floppy image that just prints a message now the problem that i am running into is that i have to jump to memory location 0x1000 and then jump back to the original place but have no clue how to do it this is what mbr looks like on the floppy: (i am using nasm) [CODE]org 0x7c00 xor ax,ax mov es,ax mov ah,0 mov al,3 int 10h mov ah,13h mov al,1 mov bh,0 mov bl,0ah mov cx,mlen mov dh,0 mov dl,0 mov bp, msg int 10h [B][COLOR="Red"];jump to 0x1000 here ;print '$' here[/COLOR][/B] mov dh,1 msg …

Member Avatar
Member Avatar
+0 forum 6

Hi everyone, I'm looking to tinker with developing an OS from scratch, but the only machine I have that's 'tinkerable' (i.e. that I don't have important work or anything on) is my PS3 (not the slim version, so I can install "Other OS"). I've seen an example on the net of how to write a bootloader that simply displays "Hello World" on the screen, but I'm wondering how to do this on the PS3. In short, I'm looking for a tutorial on how to write a bootloader for the PS3. If there's any experts out there, a few tutorials for …

Member Avatar
+0 forum 0

Hi! I've started to write my kernel in assembly but I think its far too complicated! Instead I would like to try to write it in C/C++. I'm new to these languages but i've written alot in VB and C# so I don't think it's going to be too hard to learn C/C++. Which one do you think is going to be the easiest to write my kernel in? C or C++? And which compilers do you recommend? The compiler need to be able to compile in such way that it can be loaded from an assembly bootloader. Thanks in …

Member Avatar
Member Avatar
+0 forum 2

The End.