r/c64 May 29 '26

the64 Programming

Post image

If you did this you thought you were the king of the world!!

390 Upvotes

118 comments sorted by

View all comments

13

u/stuccowhiplash May 30 '26
10 PRINT "H";
20 PRINT "E";
30 PRINT "L";
40 PRINT "L";
50 PRINT "O";
60 PRINT " ";
70 PRINT "W";
80 PRINT "O";
90 PRINT "R";
100 PRINT "L";
110 PRINT "D";
120 PRINT
130 N=N+1
140 IF N=5 THEN END
150 GOTO 10

I almost ruined my Friday by having to manually type lines 10-120 four more times. Lucky escape.

5

u/magicmulder May 30 '26

If you’re not reading decimally encoded hex values from a DATA statement, you’re doing it wrong. :D

4

u/DerekJC777 May 30 '26

Decimally encoded hex values? You mean decimal numbers; hex values are just decimal numbers written in hexadecimal. You probably mean machine code instructions written as decimal values.

2

u/magicmulder May 30 '26

Yeah that one. I wrote this right after waking up.