Hello world!
![]() |
|
WOW DINAR DONG YUAN SET 0F 8 NOTES SET GREAT DEAL WOW US $10.00
|
3 CD THE CAVERN Beatles Kinks Queen neuf scellé µ US $14.00
|
WHITE GOLD PLATED PEARL NECKLACE USE SWAROVSKI CRYSTAL US $3.98
|
|
75Pcs Duckling Glass Lampwork Animal Beads 21x15mm US $16.82
|
Hello Kitty Plush wallet coin bag purse cosmetic bag US $2.45
|
Mickey Mouse Inlaid Medium Wallet Coin Purse Black A91P US $14.40
|
|
OPUS ONE PLATINUM 8 INCH 2 WAY WALL CEILING SPEAKERS US $184.11
|
DEF LEPPARD ON THROUGH THE NIGHT PHONOGRAM 1980 US $5.82
|
WHARFEDALE DIAMOND 95 FLOOR STANDING SPEAKERS US $592.99
|
|
Hello Kitty Scissors Nail Clippers File Bag Pink 2HLT US $9.60
|
WHITE GOLD PLATED HOOP EARRINGS USE SWAROVSKI CRYSTAL US $5.66
|
WHARFEDALE DIAMOND 90 QUALITY BOOKSHELF SPEAKERS US $205.58
|
|
CD JONAS BROTHERS BRAND NEW ALBUM US $3.44
|
KYO SAMURAI DEEPER VOLUME 4 MANGA DVD NEUF v2006 US $13.99
|
WOMENS WHITE GLADIATOR SANDALS LOW WEDGE HEEL SIZE 6 US $36.72
|
|
WHARFEDALE DIAMOND 9DFS QUALITY DIPOLE SURROUNDS US $205.58
|
DRAP DE PLAGE DISNEY CARS DOUX 100 COTON TOP MOTIF US $15.15
|
HAWAIIAN TROUBADOURS Sweet Memories 12 Vinyl LP US $7.64
|
|
The Greatest Country Music Recordings Nashville FMRS US $44.38
|
Étui en Silicone Soft Feel Apple iPod4G nanoGris Noir US $5.66
|
Étui en Silicone Soft Feel Apple iPod 4G nano Org Gri US $4.95
|
|
Protecteur dEcran Avancé Apple 4G iPod nano US $4.96
|
Étui Aluminium Lined Leather Apple 4G iPod nano Noir US $8.50
|
Hello Kitty Silicone Case Cover Apple iPhone 4 Gen 4th US $3.98
|
|
Étui Leather Style Apple 4G iPod nano Rouge US $7.80
|
WHARFEDALE DIAMOND 9CM 3 WAY CENTER SPEAKER BEECH US $273.20
|
iBone funny t shirt US $15.23
|
|
What Do You Say After You Say Hello New edition US $13.61
|
Vivo Al Reves France Carlos De CD 2004 US $19.99
|
Me to You Tatty Teddy Bride Groom Wedding Bears NEW US $15.23
|
i want to make simple boot able operating system who do nothing just print hello world on the screen?
I want to learn the basic of operating system programming. I think i can do the hardware lavel programming in assembly but it make the .com files who need the dos operating system to run. I want to maek the hello world programme independent of operating system. Please Any one help me. Thank you .
It is very very easy! I was stunned to find out...
I use NASM to assemble my bootable applications. In your case, you can copy the code below:
;File: boot.asm
;--------------------------------
[BITS 16]
[ORG 0x7C00]
;clear all flags
xor ax,ax
push ax
popf
sti;set only the Interrupt Flag=1
mov ax,cs
mov ds,ax ;do you know
jmp main;start the main routine
;So far, this was some CPU initialization
;Now here's a useful routine to print your "Hello World!"
;or any text you want
;--------------------------
;PROCEDURE TextOut
;
;mov si, msg
;call TextOut
;----------------
TextOut:
lodsb ; load next character
or al, al ; test for NUL character
jz TextOutEnd
mov ah, 0x0E ; BIOS teletype
mov bh, 0x00 ; display page 0
mov bl, 0x07 ; text attribute
int 0x10 ; invoke BIOS
jmp TextOut
TextOutEnd:
ret
;It is not necessarily to understand the code above
;-----------------------------------------
;Here you declare data
;----------------------------------------------------------------------------
msg db "Hello, World!",10,13,0
;----------------------------------------------------------------------------
main:
;------Your code starts here---------------
mov si, msg
call TextOut
hang:jmp hang ;Application will now freeze
;The lines below will make the current application a valid boot sector
;********** ROUND UP TO 512 size ******
TIMES 510-($-$$) DB 0
DW 0xAA55
;**************************************
Compile the line above executing at the command line:
nasm.exe boot.asm -f bin boot.bin
Now, you have two options:
1. Mount the boot sector onto a diskette.
Type at the command line:
%SystemRoot%system32format a: /q /fs:fat /x
Then type at the command line:
%SystemRoot%system32debug boot.bin
And type the following commands:
W 100 0 0 1
Q
Now you should have a brand-new bootable diskette.
2. Create a disk image.
If you use BOCHS to simulate your application, boot.bin is already a valid image, so you only need to configure bochs to treat it as a floppy drive:
-open bochs
-select "Disk & Boot" in "Edit Options"
-click "Edit"
-go to "First Floppy Drive" section
-select 3.5" 1.44 M (Type of floppy drive)
-locate boot.bin using Browse...
-select 3.5" 1.44 M (Type of floppy media)
I suggest you to save the configuration in a .bxrc file, so that double-clicking it will load boot.bin and simulate it in a second, without having to configure bochs again.
If you use Microsoft Virtual PC to simulate your program, you have to create a new file, with the size of a floppy, where the first 512 bytes are copied from boot.bin.
You will need a file called empty.bin, which has exactly 1.474.048 bytes.
Execute the following command:
copy /b boot.bin + empty.bin floppy.img
Floppy.img will be considered a valid floppy image in Virtual PC.
-------------------
Now, keep in mind that boot.bin can have a maximum of 512 bytes. The last two bytes will tell the BIOS that this is a valid boot sector, so the remaining 510 bytes are available for your code. Usually, the boot sector is used only to LOAD your application FROM DISK, and start execution, but typically, this is used in operating systems.
You can keep playing with ASM in the boot sequence, as long as your code fits the 510 bytes.
Hello World - Belle Perez

US $10.00
Hi, this is a comment.
To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.
Nice blog, bookmarked!
I like what you all have to say. Very straight to the point. All in all great blog
Why didnt I think about this? I hear exactly what youre saying and Im so happy that I came across your blog. You really know what youre talking about, and you made me feel like I should learn more about this. Thanks for this; Im officially a huge fan of your blog.
Great share
Good blog! I truly love how it is easy on my eyes as well as the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your rss feed which ought to do the trick! Have a nice day!
coats & jackets