BASIC from Commodore PET to MEGA65 | Conversion Example
I convert a Submarine Tracking System BASIC program from the C128 Programmer's Reference Guide to run on my @MEGA65retro Dev Kit and the Xemu xmega65 emulator. As I convert this BASIC program from the C128 (BASIC version 7) to the MEGA65 (BASIC version 10), I found many changes. Before I show my conversion, I discuss the many versions of Commodore BASIC via my Commodore BASIC version timeline. Finally, I make one more conversion. I convert the low resolution (320 x200) MEGA65 version to high resolution (640 x 400) and kick up the speed to 40 Mhz. Watch the original live stream that inspired this video: https://www.buymeacoffee.com/retroCom... 📝Companion blog post with more information and all the links you need at: https://www.retrocombs.com/sub-track-sys 👍 Please take the time to like, subscribe, and support the channel using the links ↑. Find something useful that provided information or saved you time? Send a {❤THANKS}! You can now become a member, or support me, at ☕ BMAC (https://www.buymeacoffee.com/retroCombs). Find me online at: 📝 Blog: https://www.retrocombs.com/ 🐦 Twitter: / stevencombs 📹 YouTube: / stevencombs 📘 Facebook: https://fb.com/retrocombsfb Producers: Mislav Krleža Jamie's Hack Shack Boba Fett The Lovely Accountant Sign up for a C128 (Producer) or MEGA65 (Executive Producer) membership to have your name listed in future videos. –––––––––––––––––––––––––––––– Music: The Big Beat 80s - Kevin MacLeod, Syrinx Starr • The Big Beat 80s – Kevin MacLeod, Syrinx S... –––––––––––––––––––––––––––––– Time Codes: 00:00 Intro 00:00 Video Introduction 00:19 Video Bumper 00:30 Past Attempts to Convert 01:20 The MEGA65 Book 01:34 Summary of Conversion Process 01:44 What's in this Video 02:02 Support the Channel and Blog 02:21 Channel Producers 02:31 Companion Blog Post Information 02:43 My Commodore 128 03:04 Using VICE C128 03:23 Submarine Tracking System Code 03:40 Running the Submarine Tracking System for C128 04:32 CBM BASIC Timeline 05:27 Commodore BASIC Trivia 05:55 Commodore BASIC Version Numbers 08:10 My Commodore Plus/4 User's Guide Series 09:14 Unreleased BASIC Versions 09:39 Back to Version 10 10:29 V10 Submarine Tracking Program Code 10:54 V10 Submarine Tracking Program Demonstration 11:37 Viewing Both Versions 12:05 Line-by-Line Comparison 12:41 Configure the Graphics Screen 13:07 The SPEED Command 13:41 The BOX Command 14:15 The CHAR Command 14:37 More CHAR Command Options 16:13 Changing Colors with COLOR and PEN 16:32 Variables 16:50 Draw the Submarine Tracking System 17:03 Loops (DO and LOOP Commands) 17:21 The CIRCLE Command 18:00 Drawing circles differently 18:45 Adding Values to Variables 19:03 Drawing Concentric Circles Using a Loop 19:50 An Infinite Loop - Tracking Submarines 20:37 Nested Loops 21:12 Deviation from Common Code Lines 21:39 Drawing the Tracking Marker (or Sub) 22:33 Audio Ping Using the SOUND Command 22:45 Restoring the Sonar Circles 23:11 Exiting a Loop with LOOP Command Conditions 23:26 No End to the Infinite LOOP Command 23:43 Exit and Infinite Loop with the Run/Stop Key 23:50 Comparing the Size of the Two Programs 24:33 A High Resolution Version 25:36 Ideas to Make the Program Better 26:09 Ideas to Make the Submarine Tracking Program Better 27:52 What Else Can we do to Make This Code Better? 28:16 retroCombs Parting Thoughts 29:06 Share Your Optimizations 30:28 That's All Folks! 30:49 Watch More retroCombs The MEGA65 is THE 21ST CENTURY REALIZATION OF THE C65 HERITAGE: A COMPLETE 8-BIT COMPUTER RUNNING AROUND 40X FASTER THAN A C64 WHILE BEING HIGHLY COMPATIBLE. C65 DESIGN, MECHANICAL KEYBOARD, HD OUTPUT, SD CARD SUPPORT, ETHERNET, EXTENDED MEMORY AND OTHER FEATURES INCREASE THE FUN WITHOUT SPOILING THE 8-BIT FEEL. HARDWARE DESIGNS AND SOFTWARE ARE OPEN-SOURCE (LGPL). The Commodore 128, also known as the C128, C-128, C= 128,[n 1] is the last 8-bit home computer that was commercially released by Commodore Business Machines (CBM). Introduced in January 1985 at the CES in Las Vegas, it appeared three years after its predecessor, the bestselling Commodore 64. The C128 is a significantly expanded successor to the C64, with nearly full compatibility. The newer machine has 128 KB of RAM in two 64 KB banks, and an 80-column color video output. It has a redesigned case and keyboard. Also included is a Zilog Z80 CPU which allows the C128 to run CP/M, as an alternative to the usual Commodore BASIC environment. The presence of the Z80 and the huge CP/M software library it brings, coupled with the C64's software library, gave the C128 one of the broadest ranges of available software among its competitors. - https://en.wikipedia.org/wiki/Commodo... #mega65 #basicprogramming #c128

Ten Great Commodore 128 BASIC Improvements Over The C64

🔴️ LIVE: Did You Know the MEGA65 Could Do This? Emulators, Cores, & Ports!

Fastest C64 10 PRINT (one-line) With New Benchmark BASIC?

An Introduction to the MEGA65. This is the Best 8-Bit Computer!

99.8% Compatible? The C64 Mode of the Commodore 128

This Computer is from a Defunct Supercomputer Company

Commodore 64 from Scratch: CPU Design and Build.

EGA on the C128? And it looks great

The Fascinating Story of Fluke,The Washington Engineer Who Built The World's Most Trusted Multimeter

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Introduction to Programming and Computer Science - Full Course

Adding Hex Support To C64 BASIC

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

MiSTer2MEGA65 Explained

The Commodore 64 has a Successor (and it's amazing!) | Nostalgia Nerd

MEGA65 - my first BASIC experiences

Hello World in every programming language on the Commodore SuperPET

Using ChatGPT to write programs for the Commodore 64

The Future of Home Computing: Radical Changes Ahead?

