let hello =
print_string "Hello World!";
;;
Link:
http://caml.inria.fr/
Friday, May 25, 2007
C#
using System;
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
BLISS
%TITLE 'HELLO_WORLD'
MODULE HELLO_WORLD (IDENT='V1.0', MAIN=HELLO_WORLD,
ADDRESSING_MODE (EXTERNAL=GENERAL)) =
BEGIN
LIBRARY 'SYS$LIBRARY:STARLET';
EXTERNAL ROUTINE
LIB$PUT_OUTPUT;
GLOBAL ROUTINE HELLO_WORLD =
BEGIN
LIB$PUT_OUTPUT(%ASCID %STRING('Hello, World!'))
END;
END
ELUDOM
Links:
http://63.249.85.132/langs/
http://vms.process.com/scripts/fileserv/fileserv.com?BLISS-ARTICLE
MODULE HELLO_WORLD (IDENT='V1.0', MAIN=HELLO_WORLD,
ADDRESSING_MODE (EXTERNAL=GENERAL)) =
BEGIN
LIBRARY 'SYS$LIBRARY:STARLET';
EXTERNAL ROUTINE
LIB$PUT_OUTPUT;
GLOBAL ROUTINE HELLO_WORLD =
BEGIN
LIB$PUT_OUTPUT(%ASCID %STRING('Hello, World!'))
END;
END
ELUDOM
Links:
http://63.249.85.132/langs/
http://vms.process.com/scripts/fileserv/fileserv.com?BLISS-ARTICLE
BCPL
GET "LIBHDR"
LET START () BE
$(
WRITES ("Hello, World!*N")
$)
Useful Links:
http://www.cl.cam.ac.uk/~mr10/BCPL.html
http://cm.bell-labs.com/cm/cs/who/dmr/bcpl.html
LET START () BE
$(
WRITES ("Hello, World!*N")
$)
Useful Links:
http://www.cl.cam.ac.uk/~mr10/BCPL.html
http://cm.bell-labs.com/cm/cs/who/dmr/bcpl.html
DarkBasic
PRINT "HELLO WORLD"
TEXT 0,0,"Hello, World!"
WAIT KEY
Home page : http://darkbasic.thegamecreators.com/
TEXT 0,0,"Hello, World!"
WAIT KEY
Home page : http://darkbasic.thegamecreators.com/
Tuesday, May 22, 2007
bash - Bourne again shell
#!/bin/sh
echo "Hello, World!"
Useful Links :
http://www-128.ibm.com/developerworks/library/l-bash.html
http://tille.garrels.be/training/bash/index.html
echo "Hello, World!"
Useful Links :
http://www-128.ibm.com/developerworks/library/l-bash.html
http://tille.garrels.be/training/bash/index.html
B
/* Hello */
main()
{
extern a, b, c;
putchar (a); putchar (b); putchar (c); putchar ('!*n');
}
a 'hell' ;
b 'o, w' ;
c 'orld' ;
Tutorial :
http://cm.bell-labs.com/cm/cs/who/dmr/btut.html
main()
{
extern a, b, c;
putchar (a); putchar (b); putchar (c); putchar ('!*n');
}
a 'hell' ;
b 'o, w' ;
c 'orld' ;
Tutorial :
http://cm.bell-labs.com/cm/cs/who/dmr/btut.html
Arm - RISC based
.program
ADR R0,message
SWI "OS_Write0"
SWI "OS_Exit"
.message
DCS "Hello, World!"
DCB 0
ALIGN
ADR R0,message
SWI "OS_Write0"
SWI "OS_Exit"
.message
DCS "Hello, World!"
DCB 0
ALIGN
Assembler 68000
move.l #helloworld,-(A7)
move #9,-(A7)
trap #1
addq.l #6,A7
move #0,-(A7)
trap #1
helloworld:
dc.b "Hello World!",$0d,$0a,0
move #9,-(A7)
trap #1
addq.l #6,A7
move #0,-(A7)
trap #1
helloworld:
dc.b "Hello World!",$0d,$0a,0
Thursday, May 17, 2007
Intel x86, Linux
SECTION .data
msg:
db "Hello, World!\n"
len equ $ - msg
SECTION .text
global start
start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
msg:
db "Hello, World!\n"
len equ $ - msg
SECTION .text
global start
start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
Tuesday, May 15, 2007
ASM - X86 on DOS (2)
dosseg
.model small
.stack 100h
.data
hello_message db 'Hello, World!',0dh,0ah,'$'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
mov dx,offset hello_message
int 21h
mov ax,4C00h
int 21h
main endp
end main
.model small
.stack 100h
.data
hello_message db 'Hello, World!',0dh,0ah,'$'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
mov dx,offset hello_message
int 21h
mov ax,4C00h
int 21h
main endp
end main
ASM Intel x86 - on DOS
(Using TASM)
MODEL SMALL
IDEAL
STACK 100H
DATASEG
MSG DB 'Hello, World!', 13, '$'
CODESEG
Start:
MOV AX, @data
MOV DS, AX
MOV DX, OFFSET MSG
MOV AH, 09H
INT 21H
MOV AX, 4C00H
INT 21H
END Start
MODEL SMALL
IDEAL
STACK 100H
DATASEG
MSG DB 'Hello, World!', 13, '$'
CODESEG
Start:
MOV AX, @data
MOV DS, AX
MOV DX, OFFSET MSG
MOV AH, 09H
INT 21H
MOV AX, 4C00H
INT 21H
END Start
Monday, May 14, 2007
Alma
hello world
(assume the file name is hw.alma. we need to input it to alma.rb to get the result :
alma.rb -i hw.alma
)
Web : http://harpo.free.fr/alma/
(assume the file name is hw.alma. we need to input it to alma.rb to get the result :
alma.rb -i hw.alma
)
Web : http://harpo.free.fr/alma/
Subscribe to:
Comments (Atom)

