Thursday, November 28, 2024

Hello World Examples from different 80's platforms

Programming in the 80's, every platform had to be differnt.
Odyssey2 Computer Intro! Assembler has multiple ways of 
displaying Hello World, here is one.

00 6B LDV.B.00  ;Load display register B with position 00
01 00
02 60 LDV.0.00  ;load register 0 with NULL
03 00
04 6C LDV.C.12  ;Load data space register C with step 12
05 12
06 09 MOV       ;Move data space to accumulator
07 30 BEQ.0.24  ;If NULL goto end
08 24
09 0B OTA       ;Display accumulator
10 12 GTO.06    ;go back to move at step 06   
11 06
12 1D           ;H  Start of data space
13 12           ;E
14 0E           ;L
15 0E           ;L
16 17           ;O
17 0C           ;space
18 11           ;W 
19 17           ;O
20 13           ;R
21 0E           ;L
22 1A           ;D
23 00           ;NULL  end of string
24 00 NOP       ;No opperation, just a place to land

TI-99/4 and TI-99/4A BASIC

10 CALL CLEAR
20 PRINT "HELLO WORLD"


ATARI 8-bit (400/800/800XL/130XE) BASIC

10 PRINT CHR$(125)
20 PRINT "HELLO WORLD"

Commodore VIC 20 BASIC

10 PRINT "{CLRSCN}"
20 PRINT "HELLO WORLD"

Commodore 64 BASIC

10 PRINT CHR$(147)
20 PRINT "HELLO WORLD"

IBM AT GW-BASIC

10 CLS
20 PRINT "HELLO WORLD"

No comments:

Post a Comment

Merry Christmas!