用202种编程语言输出hello world,你会几种?(2)

这篇博客展示了202种不同的编程语言如何输出经典的'hello world',包括Assembly、Basic、C、C++、C#等,其中还提到了一些不常见的语言如Befunge和Brainf*ck,呈现了一场编程语言的盛宴。
摘要由CSDN通过智能技术生成

你知道多少种编程语言?也许是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 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值