vTomb Logo

Programming in FORTH on Commodore 64

Today we explore 64 Forth for the Commodore 64 with the help of my friend Paul Pridham, aka Madgarden, who uses his own version of Forth to code his hit indie videogames such as Death Road To Canada. Prompted by David Youd, who donated the cartridge and books to me, we try a few Forth variations of the famous 10 PRINT program, starting with one-line versions while working towards a more Forth-like final version.

Check out Death Road To Canada on Steam: https://store.steampowered.com/app/252610/Death_Road_to_Canada/

Follow Paul on Twitter: https://twitter.com/madgarden

Why we keep saying "orthAgonal": https://youtu.be/oPtjcSsS2MI

You might want to check out DurexForth which is a modern C64 implementation of Forth: https://github.com/jkotlinski/durexforth

Hey Birt! made some videos about DurexForth: https://youtu.be/TXIDqptXmiM

Thanks to David Youd for finding these Forth references:

John Romero's interview of Stuart Smith: https://appletimewarp.libsyn.com/episode-9-stuart-smith
29:02 "I used Forth by the way for Adventure Construction Set..." -- Stuart Smith

Kay Savetz's interview of David Maynard: https://ataripodcast.libsyn.com/antic-interview-408-david-maynard-electronic-arts-worms
30:08 "Electronic Arts is a lot of early productivity software. So probably the first products I did there were Cut & Paste an editor that ran on Atari, and Apple, and Commodore, written in Forth..."
30:28 "Then I wrote a program called Financial Cookbook . . . and that was all written in Forth"
48:22 "I was technical director on Starflight . . . written in Forth" -- David Maynard

C64 "Worms" Forth source code: https://github.com/savetz/worms/blob/main/worms%20source%20code%20Commodore%2064.txt

Chipwits: https://en.m.wikipedia.org/wiki/ChipWits David Youd helped confirm that the C64 version is still (at least partially) in Forth. Start the game and look at $1460 and on, or look at file cw.gm.

COMPUTE! SpeedScript: Original version was in forth, but they rewrote it in pure assembly for the various platforms: https://ataripodcast.libsyn.com/antic-interview-207-tom-halfhill-compute-magazine/
16:26 "So Charles was famous for his word processor that he did. . . that was SpeedScript . . he first showed me a prototype of that, believe it or not that was written in a programming language called Forth . . . later he ended up rewriting it in machine language for the Atari. Then we did homelogs[?] for Commodore 64 and VIC20 and Apple II..." -- Tom Halfhill

Update 2022.11.16: David Youd has also found that Lords of Conquest (EA, 1986) was written in Forth.

To support 8-Bit Show And Tell:
Become a patron: https://patreon.com/8BitShowAndTell
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel: https://youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA

End credits music is "Bit Pair" by Bedford Level Experiment: https://youtu.be/Appmg64tZB0

0:00 Introductions & Going Forth
2:54 Forth 10PRINT one-liner by David Youd
10:04 Using SID as a random source
14:54 Decompiling the 10PRINT word
16:50 10 PRINT Orthogonal in Forth
26:55 Replacing MOD with AND for speed
29:19 Thanks, links, and more...
Live Cams



#big wins#winners#games#casinos

By using our services, you agree to our Privacy Policy.
Alternative random YouTube videos generator: YouTuBeRandom

vTomb © 2024

By using our services, you agree to our Privacy Policy.