BACK TO THE PET (Commodore PET 4016 hardware demo made in 2022)
Ғылым және технология
This is a playing of shiru8bit's excellent "Back to the PET" demo compo on physical hardware with amplified audio out. This is amazing software for a 1MHz 6502 microprocessor system packaged into a standalone 29KB "PRG" binary. This makes exclusive use of the "PETSCII" character set in 40x25 text mode.
This demo is presented on the physical hardware in a "dark mode" (lights off and screen focused) followed by a "light mode" (lights on and full view of the system). See 4:47 for the lights on version.
Demos like these are extraordinary forms of artwork! The original hardware system to do this was first available in 1977 (although most systems at that time did not have a full 32K of RAM and would need a CB2 mod for the audio). By mid-1980, 32K RAM became more widely available/affordable to home consumers, and the 40XX series of Commodore PET included a piezo speaker for the CB2-style audio out. Crafting this kind of audio-visual experience on such an early home-computer requires very precise understanding of the instruction set and determining very clever coding techniques to pull off the desired effects (especially also while intermixed with audio, which represents a form of multitasking).
"Back to the PET" was developed using ca65 (6502 assembler) and multiple support tools, and an emulator (called VICE) - no physical hardware was available during the development. To see how this physical hardware playthrough shown here compares with the emulator, see shiru8bit's original recording here (also with links to the original PRG and source code):
• BACK TO THE PET -...
Presented with permission, thanks shiru8bit!
To emphasize: I didn't create this demo, it is the work exclusively of shiru8bit. But he didn't have a physical system to run the demo on, so this is a recording to demonstrate how fantastic the results of his dev and testing on an emulator translated over to the real hardware.
NOTE: "Back to the PET" is a homage to a scene in the "8088MPH" demo for the IBM PC (CGA), both inspired by the excellent "Back to the Future" movie released in 1985 with Michael J. Fox.
In honored memory of Jack Tramiel, Leonard Tramiel, Chuck Peddle. For an outstanding in-depth paper about the PETSCII character set, refer to:
acris.aalto.fi/ws/portalfiles...
For other Commodore PET related works, see also:
- Attack of the PETSCII Robots
- Destiny Hunter for Commodore PET
- Jim Orlando's excellent Commodore PET software (Defender, Lode Runner, etc.)
- Commodore Stupid PET Tricks
Пікірлер: 168
This is not just a demo, it is a piece of art!
john doe
Ай бұрын
^- this
The persistence of the phosphorus on the display definitely makes this a lot fancier! Awesome.
MrManniG
21 күн бұрын
I had to pause the video twice to find out if its in the video or if my brain is lagging.
Wow amazing. Just imagine programming this back in the day and showing the head master what you've done with the school computer.
Sci-fi Si
Ай бұрын
I wrote a 3D maze in hex back in the day, 1983 I think it was
John Smith
Ай бұрын
Yes. this demo would make people heads pop back in 1977! Espeically its ability to predict the future computers and companies in the 1980s-1990s and onward!
voidstar (v*) tech
2 ай бұрын
I talked with shiru8bit, and we're going to agree that (symbolically) the three people depicted in this demo (during the "P "E" "T" scenes) are Jack Tramiel (d.2012 creator of Commodore and owned Atari after the 1983 crash), Chuck Peddle (d.2019 designer of the $25 6502 chip), Leonard Tramiel (creator of PETSCII). [ actually, spoiler: if you examine the demo source code, they're anime female models ]. But yea, a self contained PRG like this popping back in time would be an interesting parallel-universe story :D
This is absolutely spectacular and mind boggling!! I would never have expected to see anything as great as this on the good old PET. Thank you!!!
I absolutely love watching today's programmers push these old retro systems to their limits and produce outstanding demos and graphics. Mind boggling and I feel its an attest of today's programmers understand the older systems much better than they did in the past thanks to learning machine language on modern computers of today. This was really cool to see.
dissident
Ай бұрын
@djmips You nailed it. Today it‘s much easier to find information how to program a hardware than in the past. It‘s much easier to find like-mindet people to share experiences.
dissident
Ай бұрын
@SuperHammaren You are totally right. Working directly on old systems is the real challenge without the comforts of modern technology.
SuperHammaren
Ай бұрын
@djmips The tools they have today is another thing, many are sitting far away from the old hardware doing things today. Take everything that away as well as the possibility to google, and it will be harder..
djmips
3 ай бұрын
I agree with the spirit of what you are saying but there were programmers that understood the systems as well back in the day, it's just that no one wanted to push on the boring systems. Rather the C64 which had many awesome demos in the original times. That being said - a lot more knowledge has been freely shared via the Internet and development is more democratized than ever and we are seeing these formerly boring machines become a whimsical yet cool new platform that is remarkable since the C64 has been done a thousand times over now.
40 years later and I'm still struggling to finish my text adventure game. Imagine this demo on the launch of the PET 4000 series.
Ix Px
2 ай бұрын
Exactly. I was wondering the same about all systems - imagine the reactions at demo parties if you went there with the achievements of today's coders... I bet they would be checking the hardware afterwards. 😀
Could you image the drop jaws you would have going back in time with this demo. Even if you didn't have the audio playing. The visuals alone are impressive. Put this on an office workers PET in 1978. They would probably wonder how you did it.
Jerri Kohl
Ай бұрын
@Paul Womack There must have been *at least* one in the world.
Paul Womack
2 ай бұрын
Office workers didn't have PETs in 1978!
This does all sorts of things that should be impossible.. And at a great frame rate. I didn't even know the PET had sound.. But I do know all those graphics are in petscii, which is just wow
tripplefives
15 күн бұрын
@martin de jong This is still how audio out works on most systems even today. The pin is driven as variable duty pwm and the ouput is turned into analog audio by passing it through an inductor and capacitor (LC filter).
Joseph .M 101
26 күн бұрын
I heard that it was possible with extensions to add a SID chip to a Commodore PET. I have no idea if that's what's being used for this demo. Interestingly, support for a SID chip was available in the "NO PETS ALLOWED" demo. EDIT: I commented on shiru8bit's video asking what sound device they used, and they confirmed that it was the PET's internal audio.
voidstar (v*) tech
Ай бұрын
The original PET 2001/2001-N (1977 - or really 1978) didn't come with a speaker - but it was a fairly simple modification to add one. The speaker became standard on the 40XX and later series (circa 1980) and worked using the same as the mod used on the 20XX's. So, if you come across a 40XX series PET, no mod is necessary. That built in speaker of the PET 40XX isn't very loud, but it would essentially sound the same as presented - the SNES adapter has a speaker pass-thru, used either for headphones or to amplify that same internal audio (as done here).
NuGanjaTron
Ай бұрын
@Realities in the Raw They weren't just circuit bending them; they built them from scratch (a.k.a. homebrewing). The whole personal computing scene originated from hobbyists. The big companies didn't see the market potential yet back then.
Realities in the Raw
2 ай бұрын
@martin de jong wow. People were circuit bending their computers in the 70s. I'd love to see a modded out pet in an electronic music performance
Mind blown. Thank you for showing this on original PET hardware, it is incredible to see!
This is easily the best PET demo of all time!!
Absolutely mind blown. Hands down, THE best 8 bit demo I’ve ever seen, considering the PET does not have bit mapped graphics!!!
I originally learned programming on one of these (actually a 4032 I think) and an Exidy Sorcerer back in 81/82. Such nostalgia for me and the beginnings of my love for Commodore computers. I was so thrilled to save up and purchase a VIC-20 a year or so later. It was totally awesome to be able to program at home at will instead of having to wait my turn on one of the five PETs in my school's lab. I miss those days...
This is a very impressive demo!
Cool to see other developers do PET demos these days too! And especially sample playback. I did a playback routine in 2014 for oobc’s We are computers and it spoke too. I also liked the good usage of the slow phosphorous and great design with the petscii charset.
If I have seen that on C64, I would be impressed, but on PET?? I'm beyond impressed! Too bad I don't have commodore PET
Can’t lie, kinda love this demo! The PET was my first hands on computer in elementary school. Remember lunar lander and some trajectory launcher game and maybe a text adventure, but this is some “Other Level” stuff… really nicely linked and orchestrated… cheers to all involved in making it!
Very good video annotation. 3:13 CRT afterglow makes some effects even more effective! =)
I love how as the years go by, the limits of what seem impossible for these classics, get surpassed over and over again. Kudos to the programers !!!!!!! Seen stunning thing for the 64, but for the PET ????. CRAZY stuff !!!!!
Brilliant piece of work. Brings back fond memories, actually. My science teacher had a PET and on one occasion, he asked me to carry out of the class room, in order for him to take it home for the night. It wasn't like carrying a laptop and I had to carry it down two flights of stairs. I was sh*tting myself! He actually lent the thing to me for a while, shortly afterwards. They were great machines, back in the day.
I am thrilled. To find theory and creativity combined without narcissism in the executing subject is very rare. This may sound strange, but it always makes me think somewhat optimistically about people. Thanks for this
Got a lot more out of this demo with this real hardware version, thanks! :)
djmips
3 ай бұрын
All demos should be shot on the original machines.
Same model as mine, I've had my PET since new. Did upgrade the memory to 32k just after I bought it as I couldn't afford the 32k model. Only faults so far have been a video memory chip fail. Also the mains filter went bang in the single floppy drive. Have a few videos of getting it working again. Still love to see other people showing some PET love.
Beautiful, incredibly stylish work. Such an achievement. Bravo! 🔥🔥🔥
Brings back memories. We had 8 of these with 8” floppy drives in my grade school computer lab. Probably ‘82-‘84. Felt like I was right back in 7th grade.
Pheeeew, I can’t even begin to imagine how much effort and clever trickery it must’ve taken to do all this on a machine that hasn’t even got support for hardware sprites… Insanely well done. Nice.
Wonderfull !! We used to have a pet back in the days and seeing the latest demo's is breathtaking.
Absolutely wonderful demo! Thanks!
The c64 was the first computer that I owed and watching this now really does make me appreciate what I have now
I wonder what original users of PET computers would have made of this back in the day!
My jaw hit the damned FLOOR when I saw this. I have some familiarity with the C64 demo scene (I had one back in the 90s, it was actually the first computer I ever owned) but anything older I don't have any experience with. One of my cousins had a C64 BBS back in the 90s and he also had a PET, but he told me it had issues and didn't have it actually working.
Wow! That's amazing! One of the best demos ever made!
Wow, great demo, the phosphor lag adds a lot to the style :)
Sublime. Nice work!
My friend bought one of those giant PETs in the 70's, even new it seemed primitive! 🤗
Nice! The phosphor persistence is the icing on an excellent cake. 👍
I was laughing hard because this looks so sureal (in most awesome way) , and I was imagining how would people react if you showed them this back in the days PET was presented for the first time. They would have fallen on the floor thinking aliens took over. Awesome.
wow absolutely amazing I used to have a c64 back in the days in fact it was my very 1st computer :)
I have a green monitor on one of my C64s, but it doesn't produce such an incredible glow. Beautiful.
Some really wonderful PETSCII art.
Pretty darn impressive for just PETSCII characters and a beeper piezo speaker for sound!
It's always amazing what demoscene coders can do on these old machines when they have access to modern development tools.
Absolut beeindruckend was auf dieser Maschine möglich ist! Großartig!
Great video! You've got my PetSynth on that disk, haha! One of these days I need to release a new version!
Chiron Pictures
Ай бұрын
@voidstar (v*) tech Yeah that was “Look Mum No Computer” and he was trying to overcome a hardware limitation of the PET in terms of making bass tones. My original software was a very quick and dirty program to make the PET make enough interesting music that I could sample it and make some instruments that I could use within Logic. I made a second version but it was janky and I never felt it was good enough to release. I’ve worked on it some more and even have a version for the original Nintendo but it’s still only proof of concept. But when I finish what I’m working on now maybe I’ll focus on PetSynth again!
voidstar (v*) tech
Ай бұрын
That guy circuit bending his PET while using PETSynth was one of the things that motivated me to bring my PET back out! Great stuff.
To Demo urywa jaja totalnie. Bardzo dobry material
Back then I've never seen any PET computer at our school do anything remotely as cool as this. 😎 Might have kept the Schneider (aka Amstrad) CPC computers at bay for some time. These replaced the PETs in 1985 IIRC.
Amazingly impressive even not knowing the exact limitations of the hardware
I sometimes wonder, how it would be, if you could go back through time to the year 1977 and show one of the programmers back then, what's really possible with these machines. We watch it in 2023, knowing what more advanced computers can de, and we are mind blown. Imagine how someone from 1977 would feel!
That ghosting effect (more of a side effect, I guess) is super cool.
3:24 Me: *WHAT?!* That is AMAZING how it was able to do a very believable looking bitmap graphic!
Really cool! Well done :)
Wow! Spectacular demo.
Could you make a tutorial on how you make this! It looks amazing
voidstar (v*) tech
2 ай бұрын
The source code is available at shiru.untergrund.net/files/backtothepet.zip An in-depth "making of" video and details of all the techniques involved would take awhile. I'm thinking as a compromise, maybe I could do a tutorial on how to compile the source (the original is using cc65 - actually two tools cl65 and zx02, so it's really all 6502 .s assembler files) and give an overview of the main and a couple files (like the background audio). I'm working on a couple other projects first (and I'd want to ask shiru8bit first about it, or maybe see how he feels on hosting this source on github might make it more accessible). If you get the source zip file, it has a "src" folder, start with main.s and look at the compile_ex.bat on how the "executable" gets compiled and then packaged into the final PRG. The "res" folder has "resources" containing some of the "graphical" and audio sequences. Screen output won't be in terms of typical ASCII, but using the PETs specific "CRT codes" for each of the PETSCII symbols (the 40XX series has two sets of codes). Hope that helps a little!
If it wasent for the picture of pet screen i would think that demo is not runned on pet.... ITS ABSOLUTLY AMAZING !!!!!! mindblowing. greetings from serbia. john
Don't forget... It took modern computing for us to realize the full potential of these older machines. Back in the day, we would say this is hardly possible, especially without all of this modern bootstrapping. Even so, this demo is very entertaining. It doesn't serve any real practical purpose, but does offer great feelings of nostalgia, being a computer I actually touched when it was relevant.
voidstar (v*) tech
Ай бұрын
If you had access to a mainframe with a decent editor and a 6502 assembler and emulator, then you might have a chance. And that's not so different today -- no one develops directly on an MCU (like an ESP32 or Arduino), we always use the "big computer" to do the (serious) development and transfer the final binary product over. But you're right, modern computing has made editing code easier, running the assemblers faster, and searching up technical info so much more efficient.
Looks amazing on the green CRT.
Absolutely fabolous !!
I just saw a CBM 8032 at the flea market today. First time I have ever seen anything PET related I could remember. And I'm in my late '30s.
Green Lint
Ай бұрын
Did you buy it?
If you prefer a "lights on" version of the presentation, go to time 4:47 Please click "Show more" near Video Description for more details.
Studeb
2 ай бұрын
The laggy display in the dark version sells it so much better, almost looks like The Matrix intro in the start.
My first computer, a PET2001. My programming ability then was probably 2% of this guy's.
First bit of 40 column software I've wanted to run on my 8032.
Of course, the display with only PETSCII is great, but what reallty amazes me is the sound, with a single voice beeper !
I would love to review the code behind this demo.
3:16 that effect looks dope!
you'd love the demoscene mate .. i lived in that time .. 80s and 90s ... not a coder myself, but i always enjoyed the demo's.. had a c64 and thousands of floppies, made tons of money by copying those ofc :) was quite an income for a little kid :)
Incredible, bet these guys could program impressive demos on 70's calculators.
Hakurei Cirno
2 ай бұрын
People have programmed demo for Soviet era telephones as they have Z80 processors inside.
just perfect, absolutely perfect 🙂
That is so impressive!
Mindblowing !
Incredible! ... just incredible!
That was awesome!
What's amazing to me is that it was mostly coded in C. That tells me there's a lot of room for more, whatever more might be.
Christopher Sears
2 ай бұрын
@voidstar (v*) tech incredible not only for the demo itself but the truly masterful software engineering and design behind it. You are to be applauded.
voidstar (v*) tech
3 ай бұрын
In my destiny hunter project for the PET (destinyhunter.org) I had to pull a lot of tricks for flicker free animation in a C-compiled program in these 1MHz processors. cc65 does support inline assembly, so most of the critical aspects are still in hand assembly. Mainly, not using any of the standard C library - such as printf - is essential, use of the register keyword at key sections, avoiding excessive use of stack to pass function aguments, and of course inline assembly -- and sometimes not just for performance reasons, but also to reduce the code-size so the final binary fits in under 32KB.
Nice coding 👌The real electric Dreams
One has to keep in mind: The PET could not display graphics at all, only text. All you see in this demo is made with text characters. Sure, the PET did not just have numbers and letters, it also had characters that resembled lines and small blocks but even if you search for PETSCII to get a table with all these characters, it's still insane to make such a demo just using only these characters.
shiru8bit
26 күн бұрын
@KZread WantsToSilenceMe PET does not feature a loadable character set, it is burned into the ROM, so no, this is completely standard set in action, no customization there.
YouTube WantsToSilenceMe
Ай бұрын
The programmer must have done some customization of the character set - you figure?
fluidity - impressed! - who emulates this on a c64?
an amazing demo on 1 mhz 6502 CPU.. 1 bit speakers.. text mode with no graphics... the programmers's skills are otherwordly 🙇♀🙇♀🙇♀
This is awesome!
Impressive. Very nice ... ... ... let's see Paul Allen's PET demo!
If you could send this demo back through a hole in time to when the PET was still selling? Commodore would rule the seas, and Microsoft would be an unknown. Everyone would have bought a PET.
Just awesome!!!
Speechless!👌
A f**king masterpiece.
wow never seen a PET scroll so smooth
martin de jong
2 ай бұрын
This is probably a PET that has the 6845 video controller inside, that really helps when you do scrolling like this.
any chance this will work on my 80 column PET?
LOVE IT ❤😊
WOW. Picking up jaw... Absolutely amazing.
You almost had be believe that SNES could handle raytracing as well.
Amazing 😍
Spectacular.
How is this even possible with the limited amount of ram available? Hell, I wrote an address book for my pet project back in school and ran the thing out of memory.
shiru8bit
Ай бұрын
Limited memory was one of the biggest problems while making this, down to a real byte hunt.. Barely managed to squeeze in everything I wanted. It constantly unpacks its bits and pieces while running, overwriting older scenes one they were shown.
I wish i still had my PET
It looks like your 4016 is a 60 Hz model, right? If I play the demo on VICE, it defaults to 50 Hz and the sound is noticably slower.
djmips
3 ай бұрын
@voidstar (v*) tech Nice that you did it at 60 Hz - Those 50 Hz demo people and their extra 3.33 milliseconds have the easy life! haha
voidstar (v*) tech
4 ай бұрын
Yes, it's hard to see, but at 3:55 is the back of the PET there is a label that reads "117V 1.0A 60Hz" USA model. One regret is I wish at the end of the encore, I had opened the PET to show that it is all original hardware (the case was unbolted, I just needed to lift the front). True story: I found this PET in a dumpster in 1988! (with the assembly programming book and black cassette) It had been abandoned on the last day of school that year, making way for the IBM PCs. At night time, when it's pitch dark in the house, the screen on the PET still slightly glows green (I'm no chemist, but I assume it's because the phosphorous of the CRT gets charged by the ambient light throughout the day). It's freaky, like a ghost PC in the house! // Look for the Circuit Bending PET video -- I wouldn't do that on an original motherboard, but that guy finds the clock pin and goes nuts with it haha!
Holy fuck I’ve never seen the really generated maze generated so fast
Awesome!
Nicely done. Cheers! S
Incredible
Impressive for a 45-year-old computer with no graphics capabilities!
Awesome.
AWESOME.
Wow! ❤
awesome :-) Sharp MZ80A port please ;-)