Hello world!

WOW DINAR DONG YUAN SET 0F 8 NOTES SET GREAT DEAL WOW
WOW DINAR DONG YUAN SET 0F 8 NOTES SET GREAT DEAL WOW
Paypal   US $10.00
3 CD THE CAVERN Beatles Kinks Queen neuf scellé µ
3 CD THE CAVERN Beatles Kinks Queen neuf scellé µ
Paypal   US $14.00
WHITE GOLD PLATED PEARL NECKLACE USE SWAROVSKI CRYSTAL
WHITE GOLD PLATED PEARL NECKLACE USE SWAROVSKI CRYSTAL
Paypal   US $3.98
75Pcs Duckling Glass Lampwork Animal Beads 21x15mm
75Pcs Duckling Glass Lampwork Animal Beads 21x15mm
Paypal   US $16.82
Hello Kitty Plush wallet coin bag purse cosmetic bag
Hello Kitty Plush wallet coin bag purse cosmetic bag
Paypal   US $2.45
Mickey Mouse Inlaid Medium Wallet Coin Purse Black A91P
Mickey Mouse Inlaid Medium Wallet Coin Purse Black A91P
Paypal   US $14.40
OPUS ONE PLATINUM 8 INCH 2 WAY WALL CEILING SPEAKERS
OPUS ONE PLATINUM 8 INCH 2 WAY WALL CEILING SPEAKERS
Paypal   US $184.11
DEF LEPPARD ON THROUGH THE NIGHT PHONOGRAM 1980
DEF LEPPARD ON THROUGH THE NIGHT PHONOGRAM 1980
Paypal   US $5.82
WHARFEDALE DIAMOND 95 FLOOR STANDING SPEAKERS
WHARFEDALE DIAMOND 95 FLOOR STANDING SPEAKERS
Paypal   US $592.99
Hello Kitty Scissors Nail Clippers File Bag Pink 2HLT
Hello Kitty Scissors Nail Clippers File Bag Pink 2HLT
Paypal   US $9.60
WHITE GOLD PLATED HOOP EARRINGS USE SWAROVSKI CRYSTAL
WHITE GOLD PLATED HOOP EARRINGS USE SWAROVSKI CRYSTAL
Paypal   US $5.66
WHARFEDALE DIAMOND 90 QUALITY BOOKSHELF SPEAKERS
WHARFEDALE DIAMOND 90 QUALITY BOOKSHELF SPEAKERS
Paypal   US $205.58
CD JONAS BROTHERS BRAND NEW ALBUM
CD JONAS BROTHERS BRAND NEW ALBUM
Paypal   US $3.44
KYO SAMURAI DEEPER VOLUME 4 MANGA DVD NEUF v2006
KYO SAMURAI DEEPER VOLUME 4 MANGA DVD NEUF v2006
Paypal   US $13.99
WOMENS WHITE GLADIATOR SANDALS LOW WEDGE HEEL SIZE 6
WOMENS WHITE GLADIATOR SANDALS LOW WEDGE HEEL SIZE 6
Paypal   US $36.72
WHARFEDALE DIAMOND 9DFS QUALITY DIPOLE SURROUNDS
WHARFEDALE DIAMOND 9DFS QUALITY DIPOLE SURROUNDS
Paypal   US $205.58
DRAP DE PLAGE DISNEY CARS DOUX 100 COTON TOP MOTIF
DRAP DE PLAGE DISNEY CARS DOUX 100 COTON TOP MOTIF
Paypal   US $15.15
HAWAIIAN TROUBADOURS Sweet Memories 12 Vinyl LP
HAWAIIAN TROUBADOURS Sweet Memories 12 Vinyl LP
Paypal   US $7.64
The Greatest Country Music Recordings Nashville FMRS
The Greatest Country Music Recordings Nashville FMRS
Paypal   US $44.38
Étui en Silicone Soft Feel Apple iPod4G nanoGris Noir
Étui en Silicone Soft Feel Apple iPod4G nanoGris Noir
Paypal   US $5.66
Étui en Silicone Soft Feel Apple iPod 4G nano Org Gri
Étui en Silicone Soft Feel Apple iPod 4G nano Org Gri
Paypal   US $4.95
Protecteur dEcran Avancé Apple 4G iPod nano
Protecteur dEcran Avancé Apple 4G iPod nano
Paypal   US $4.96
Étui Aluminium Lined Leather Apple 4G iPod nano Noir
Étui Aluminium Lined Leather Apple 4G iPod nano Noir
Paypal   US $8.50
Hello Kitty Silicone Case Cover Apple iPhone 4 Gen 4th
Hello Kitty Silicone Case Cover Apple iPhone 4 Gen 4th
Paypal   US $3.98
Étui Leather Style Apple 4G iPod nano Rouge
Étui Leather Style Apple 4G iPod nano Rouge
Paypal   US $7.80
WHARFEDALE DIAMOND 9CM 3 WAY CENTER SPEAKER BEECH
WHARFEDALE DIAMOND 9CM 3 WAY CENTER SPEAKER BEECH
Paypal   US $273.20
iBone funny t shirt
iBone funny t shirt
Paypal   US $15.23
What Do You Say After You Say Hello New edition
What Do You Say After You Say Hello New edition
Paypal   US $13.61
Vivo Al Reves France Carlos De CD 2004
Vivo Al Reves France Carlos De CD 2004
Paypal   US $19.99
Me to You Tatty Teddy Bride Groom Wedding Bears NEW
Me to You Tatty Teddy Bride Groom Wedding Bears NEW
Paypal   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

7 Responses to “Hello world!”

Leave a Reply

Categories
Archives
Calendar
September 2010
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
27282930