Uploaded March 2025 | Updated November 2026, 1 hour ago
This time around we will start another, probably short lived Let's Code series. It will center around the Commodore PET, the first personal computer made by Commodore in 1977. Even before the VIC20 and C64. It shares a lot of structural similarities, but also has many peculiarities. It does not have any proper graphics support, so we will do a bit of a fancy text based hello world program, using direct screen memory access. We will use the modern, optimizing C compiler named oscar64.
Source Code: codeberg.org/root42/letscode-cbm-pet-hello-world
Oscar64: github.com/drmortalwombat/oscar64
Join me on Mastodon: https://chaos.social/@root42
Support me on Patreon: patreon.com/root42
Support me on Ko-Fi: ko-fi.com/root42
Support me on PayPal: paypal.me/ArneSchmitz
Support me on YouTube: youtube.com/channel/UCPjFa_UZBUDzdJTIEdyGjIQ/join
Music: A Little Wonder by Spino2006
This time around we will start another, probably short lived Let's Code series. It will center around the Commodore PET, the first personal computer made by Commodore in 1977. Even before the VIC20 and C64. It shares a lot of structural similarities, but also has many peculiarities. It does not have any proper graphics support, so we will do a bit of a fancy text based hello world program, using direct screen memory access. We will use the modern, optimizing C compiler named oscar64.
Source Code: codeberg.org/root42/letscode-cbm-pet-hello-world
Oscar64: github.com/drmortalwombat/oscar64
Join me on Mastodon: https://chaos.social/@root42
Support me on Patreon: patreon.com/root42
Support me on Ko-Fi: ko-fi.com/root42
Support me on PayPal: paypal.me/ArneSchmitz
Support me on YouTube: youtube.com/channel/UCPjFa_UZBUDzdJTIEdyGjIQ/join
Music: A Little Wonder by Spino2006





![Let’s Code x86 Assembly: 0x07 Text Mode Plasma
In this episode of our tour through the 8086 assembly language, we learn a few new opcodes and concepts CBW makes an appearance, as does the powerful XLAT for looking up values in … look-up tables! We use this to make a text mode plasma like effect. It is a bit simpler compared to what we did in another episode on the VGA card, but this time the executable is tiny, coming in at less than 170 bytes. We talk a bit about how to access screen memory in text mode and how to query the real time clock in the PC.
Support me on Patreon: https://www.patreon.com/root42
Support me on Ko-Fi: https://ko-fi.com/root42
Support me on PayPal: https://paypal.me/ArneSchmitz
Support me on YouTube: https://www.youtube.com/channel/UCPjFa_UZBUDzdJTIEdyGjIQ/join
0:00 Introduction
2:30 Init text mode & segment registers
6:52 Real Time Clock
9:05 TEST instruction
12:30 CBW instruction
15:10 Drawing on the screen
19:40 XLAT instruction
22:58 ADD instruction
26:00 MOV ds:[di]
27:56 Finishing the loops
29:56 Read keyboard
31:54 RESULTS
33:58 Closing words
35:13 Outro
Music: Powerful SID by Spino2006
Book by Oscar Toledo: https://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/paperback/product-24188564.html
Let’s Code VGA Plasma: https://youtu.be/X6BpW2N_Sf0 Let’s Code x86 Assembly: 0x07 Text Mode Plasma](https://i.ytimg.com/vi/R9BpxJ0b7u8/mqdefault.jpg)




