Programming in FORTH on Commodore 64

Опубликовано: 29 Сентябрь 2021
на канале: 8-Bit Show And Tell
34,460
1.4k

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/25...

Follow Paul on Twitter:   / madgarden  

Why we keep saying "orthAgonal":    • Size Optimizing Tricks in 10 PRINT Orthogo...  

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:    • C64 Programming   May the Forth be with yo...  

Thanks to David Youd for finding these Forth references:

John Romero's interview of Stuart Smith: https://appletimewarp.libsyn.com/epis...
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...
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/...

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...
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:   / 8bitshowandtell  
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel:    / @8-bitshowandtell247  

End credits music is "Bit Pair" by Bedford Level Experiment:    • Bit Pair - TRON song by Bedford Level Expe...  

Index:
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...


Смотрите видео Programming in FORTH on Commodore 64 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал 8-Bit Show And Tell 29 Сентябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 34,460 раз и оно понравилось 1.4 тысяч посетителям.