Skip navigation.

Log in | Sign up

hello world

, ,


many thanks to You for visiting my tiny blog
enjoy!
critic? please write a comment or a message.
you're welcome.



even the machine bids welcome to you

; Hello World for Intel Assembler (MSDOS)

org 0100h            ;offset for code segment

mov ax,cs            ;load code segment base address
mov ds,ax            ;into data segment base address
mov ah,9             ;ms-dos function 9: display string
mov dx,offset Hello  ;will be added to data segment pointer
int 21h              ;execute ms-dos
xor ax,ax            ;ms-dos function 0: end program
int 21h              ;execute ms-dos

Hello: db "Hello World!",13,10,"$"



/* Hello world for standard C */
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello, World!\n";
}