mass:werk / Blog

(Posts tagged “petscii“.  All posts. RSS feed: Subscribe.)

“PET-Globe” Demo

An avidly spinning globe for the Commodore PET — and some bit-vectors.

Screenshot: a green screen showing an animated globe rendered in PETSCII block characters.

Well, I made another thing — in #6502 code and #PETSCII.

Continue reading…

Happy New Year

Well, another one…

A monochrome screen with PETSCII graphics showing the globe and a some stars and a large-pixel Space Invader in the front, intersecting the globe. A heading in fancy lettering reads ":Happy New Year".

(Foreshadowing not totally out of question, but also not guaranteed. I mean, the year isn’t even a day old! :-) )

Continue reading…

2024 X-Mas Demo (Commodore PET)

It’s that time of the year, again…

Screenshot: silhouette of a moonlit forest and Santa's sledge flying accross the screen, rendered in blocky PETSII graphics.
1 REM ***** 2024 X-MAS DEMO ***** 2 REM HTTPS://WWW.MASSWERK.AT/PET 3 REM *************************** 4 SYS 1140

This year’s seasonal tribute: a PETSCII animation based on a popular cross-stitch pattern.
Users are kindly requested to imagine that trademark eerily fluttering 1950s UFO sound effect that I find hard to achieve on the PET’s “CB2” sound*.

  • Ingredients: MOS 6502 assembler, PETSCII graphics (rendering at quarter blocks), CB2-sound.
  • Requirements: any 40-columns PET, any ROM version, any RAM (4K or better).
  • Download: masswerk.at/pet/prgs/#xmasdemo2024

>Emulation: run it online

*) In case you were to ask, “What is CB2-sound?”
Well, the PET doesn’t feature sound, at all. But you can hook up a speaker to the output of a serial shift-register, creatively named “CB2”, which may be manipulated to output audible frequencies, sampling sound by a single bit at 1 MHz. This is CB2-sound.

Emulated hardcopy of the wiring diagram for CB2-sound on the Commodore PET
The famous wiring diagram for CB2-sound on the Commodore PET from the “Space Invaders” game. Later PETs included a built-in speaker, connected in the same fashion internally.

*****

The already tradional PET recreation of an animated screen of the 1982 Christmas Demo for the C64 has also received an update: it now fits into 4K of RAM and allows for easy updates, as the year is now stored in a dedicated variable at the very top of the BASIC program text.

Screenshot: an Advent arrangement with a candle in the middle featuring an animated flame in pure PETSCII graphics
100 REM PET 2001 - SEASON'S GREETINGS 110 REM NORBERT LANDSTEINER, 2017-2024 120 REM <WWW.MASSWERK.AT> 130 Y=2024:REM YEAR
(You may set Y to zero to omit the output of the year entirely.)

>Emulation: run it online

Japanese Attractions: Kana on the PET 2001

The Japanese character ROM and keyboard come to the PET 2001 emulator.

Katakana on the Commodore PET 2001 (emulation)

Another update to the PET 2001 emulator, spefically, a tribute to Japan and its importance to home computing history in general, and its role for Commodore in particular.

Continue reading…

PET Keys — Series 2001 Edition

A closer inspection of the keyboard(s) of the PET 2001.

Another illustration

Where we investigate the PET keyboard, have a closer look at the keyboard matrix of the various layouts found on the PET 2001 and later PETs, as well, and even have a bit of 6502 fun.

Update: Now with code examples!

Continue reading…

PETSCII Revealed

A closer look at the logic behind Commodore ASCII, AKA “PETSCII”, and the PET 2001.

PETSCII and the Commodore PET 2001
Investigations into a somewhat mysterious character code.

The flavor of ASCII used by the Commodore 8 bit computers, commonly known as PETSCII, is asking for a bit of an explanation. PETSCII is a peculiar beast, close to ASCII, but not quite, somewhat compatible, but not really, there are duplicate ranges of characters all over the place, and the special characters are lacking any recognizable order… — But look at all these these funny graphics characters!

In order to make sense of this and how the character set is organized, it may be helpful to have a closer look at it with a particular focus on the PET 2001. At least, this is the very machine, this character set originated on and for which it was designed for, with no idea yet that this may become the ancestor of a succesful line of home computers. Here, we may discover logic, in what must remain a puzzling enigma on the more popular and better known machines that followed, like the C64.

Continue reading…