Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASM Ubuntu
I have used the following code to make boot loader.::
 
[BITS 16]
[ORG 0x7C00]
 
main:
mov ax,0x0000
mov ds,ax
 
mov si,string
call print
jmp $
 
print:
mov ah,0x0E
mov bh,0x00
 
.nextchar
lodsb
or al,al
jz.return
int 0x10
jmp .nextchar
.return
ret
string db 'Assalam-o-Alekum',0
times 512-($-$$) db 0
now i am told to run it in my virtual machine Ubuntu
Please tell me how to do it.
All i know is that i am supposed to burn it into an iso image file and then load it in the virtual machine. i have made an iso image file of this code but i don't know how to load it and run it in my virtual Ubuntu. please help
 
[edit]code block added[/edit]
Posted 25-Nov-12 1:34am
Edited 25-Nov-12 1:36am
(no name)59.6K
v2
Comments
Richard MacCutchan at 25-Nov-12 15:18pm
   
I don't see anything there that looks like a bootloader. Are you sure that's what it is supposed to be?
SM_AsimHaroon at 26-Nov-12 7:29am
   
Actually i am also not sure about this. I need help. there is one more thing.
We all know that we have a booting file in windows xp that is in the C:\ drive and its name is boot.ini
Their must be a booting file in ubuntu can you tell me the name and location of that booting file for ubuntu.
I want to alter that boot file in such a way that it would first display a .jpg image file and some text then run the ubuntu os.
can you help me with this??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 25 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100