Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Hello world - computer screen version

Status
Not open for further replies.
Code:
<HTML>
  <HEAD>
  <TITLE>
  Hello World!
  </TITLE>
  </HEAD>
<BODY>
  <H1>Hello World!</H1>
</BODY>
</HTML>

Credits: misterT
 
Last edited:
Ruby:
Code:
puts "Hello world!"
Scala:
Code:
object HelloWorld extends App
{ 
    println("Hello world!") 
}
 
Turbo Pascal. Reminds me of high school in the mid Eighties.

program HelloWorld;
begin
WriteLn('Hello World')
end.
 
Jacquard Loom (sorry, I can't get the code to monospace correctly)
Code:
+---------------+
|              |
|    *    *    |
|*  *    *  *  |
|*          * *|
|*          * *|
|*  *        * |
|  *    *  * |
|        *    |
+---------------+
+---------------+
|              |
|*  *    *    |
|*  *    *    |
|            * *|
|            * *|
|*  *        * |
|*  *    *  * |
|        *    |
+---------------+
+---------------+
|              |
|*  **  * *  |
|*******  *** * |
| **** *  * ***|
| **** *  ******|
| ******  ** * |
|  * *  *  * |
|        *    |
+---------------+
+---------------+
|              |
|*******  *** * |
|*******  *** * |
|          ** *|
|*        *  * *|
|*******  ** * |
|*******  *** * |
|        *    |
+---------------+
+---------------+
|              |
|*******  *** * |
|*******  *** * |
|      *  *  * *|
|      *  *  * *|
|*******  **  * |
|*******  **  * |
|        *    |
+---------------+
+---------------+
|              |
|***** *  *** * |
|*******  *** * |
|    * * *  *  |
|    * *    *  |
|******  **  * |
|******  **  * |
|        *    |
+---------------+
+---------------+
|              |
|    *    * *  |
|***** *  ***** |
|***** **  * ***|
|***** **  * ***|
|*******  * ** |
|  * *  *  * |
|        *    |
+---------------+
+---------------+
|              |
|              |
|    * *      |
|    * *      |
|    *        |
|    *        |
|              |
|              |
+---------------+
 
PIC24 Assembler

Code:
  .section .val
 
hello:
  .asciz "Hello, World!"
 
  .text
 
__init:
 
  rcall display_init
 
  mov #psvoffset(hello), w0
  rcall display_write_text
 
  return
 
Hello everyone,

Just an idea I thought might be interesting. How many different computer languages can we represent with just a simple "Hello World"...
(my emphasis).

I submit this example as the simplest...

Since the Apple Basic interperter (on the Apple I and II) was always available for use, except when another program was in control (and of course, no lowercase was available). At the prompt simply type in:

PRINT HELLO WORLD
and
HELLO WORLD
appears on the screen.

No need to clear the screen or number the command(s).

(I may get into a semantics issue with this one).
 
Last edited:
Waiting for BBC Basic, 8086 asm, and Delphi.

I was thinking delphi should be much like Pascal. The first few examples I found were too complex. But I found this. As you can see it is the Pascal program with a few lines to setup the IO and such.

D7HelloWorld01.jpg
 
LOLCODE:

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
 
x86 Assembler (DOS Int21H):
Code:
org 100h
mov ah,09h
mov dx, text
int 21h
mov dx, crlf
int 21h
mov dx, anykey
int 21h
mov ah, 08h
int 21h
mov ah, 02h
mov dl, al
int 21h
int 20h

text db 'Hello World!$'
crlf db 0Dh, 0Ah, '$'
anykey db 'Press any key to continue . . .$'

x86 Assembler (BIOS Calls):
Code:
org 100h
jmp _main

print_screen:
        mov ah, 0eh
        mov bx, 0
.more_to_print:
        lodsb
        cmp al, 0
        je .done
        int 10h
        jmp .more_to_print
.done:
        ret
get_character:
        mov ah, 00h
        int 16h
        ret
print_character:
        mov ah, 0eh
        mov bx, 0
        int 10h
        ret
_main:
        mov si, text
        call print_screen
        mov si, crlf
        call print_screen
        mov si, anykey
        call print_screen
        call get_character
        call print_character
        int 20h

text db 'Hello World!', 0
crlf db 0Dh, 0Ah, 0
anykey db 'Press any key to continue . . . ', 0
x86 Assembler Simpler Code:
Code:
org 100h
mov ah,09h
mov dx, text
int 21h
int 20h

text db 'Hello World!$'
 
Belated thanks guys.
Like the last one. The Eric Isaacson A86 version.
I used to play with that.
Had an Acorn Electron that used BBC Basic. My first computer.
Played with Delphi ten years ago.
https://eji.com/a86/
 
Welcome to ETO, Karen Henry!

It is, indeed, an interesting and informative site.
 
Status
Not open for further replies.

Latest threads

Back
Top