你知道多少种编程语言?也许是java、python、C、C++,或是html,vbs,bat,C#,ruby,今天,你将会见识到这202种或是你熟知的,又或是你不熟知的编程语言。用它们输出hello world,会是什么样呢?
Assembly Commodore 64语言:
reset
LDX #$00
cycle
LDA hworld,X
BEQ reset
STX cache
JSR $FFD2
LDX cache
INX
JMP cycle
hworld
.text "Hello, World!"
.byte 13,0
cache
.byte 0
Assembly Motorola 68000语言:
*
* Program to repeatedly display "Hello, World!" on the
* Motorola 68000
*
* Written by Stephane Brunet, Computer Engineering student
* at Concordia University, Montreal, Canada.
*
* s_brunet@ece.concordia.ca
*
org $1000
;Main function: use a jump to this address from debugger...
main
move.l #str,a0 ;load A0 register with address of string
movem.l a0,-(sp) ;push address of string on stack
bsr _puts ;branch