Sha256: f8c296a009704c80d5d35df52f2a4e3aee4fd99f945348f0d323144fcf5e6cb1

Contents?: true

Size: 390 Bytes

Versions: 10

Compression:

Stored size: 390 Bytes

Contents

By default some Commodore computers boot into uppercase/graphics mode (C64, C128, VIC-20, Plus 4, etc.) while others (PET, CBM etc.) boot into lowercase/uppercase mode. Therefore, depending on machine used, the CHR$(14) may or may not be required to switch into mixed-case mode.
10 print chr$(147);chr$(14);:REM 147=clear screen, 14=switch to lowercase mode
20 print "Hello world!"
30 end

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.6 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.6 files.zettacode2/hello_world.text/commodore_basic.txt
zettacode-0.1.5 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.5 files.zettacode2/hello_world.text/commodore_basic.txt
zettacode-0.1.4 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.4 files.zettacode2/hello_world.text/commodore_basic.txt
zettacode-0.1.3 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.2 files.zettacode/hello_world.text/commodore_basic.txt
zettacode-0.1.1 zettacode.files/hello_world.text/commodore_basic.txt