Uploaded November 2023 | Updated November 2026, 2 days ago
How to perform a task only once in one-liner BASIC code? Find out in this video :)
Big thanks to Holger Weßling who started this discussion in "BASIC programming language" group on Facebook.
Besides solutions from the video, there are other solutions as well!
Holger Weßling channel: @tentelianretro6495
☕ If You like this video you can buy me a coffee: ko-fi.com/josipretrobits ☕
SOURCES CODES:
==============
10?chr$(205.5+rnd(.));:goto10
10?chr$(147);:fori=.to.step.:?chr$(205.5+rnd(.));:next
10?chr$(147-a)chr$(205.5+rnd(.));:a=4:goto10
10?chr$(147+a);:a=58.5+rN(.):goto10
0?cH(147+a);:a=58.5+rN(.):gO
0?hH(147+a)" "cH(205+b);:a=10:b=1-b:gO
CHECK OUT:
==========
8Bit Retro ReFix @8BitRetroReFix
Captain Commodore @CaptainCommodore
Retro4u @Retro4u
8bitsinthebasement @8bitsinthebasement
Tim's Retro Corner @TimsRetroCorner
Retro Krazy @RetroKrazy
Rudy's Retro Intel @RudysRetroIntel
INDEX:
======
0:00 - Intro
1:17 - The problem
2:03 - For Loop solution
3:40 - Addition variable solution
6:52 - Multitasking solution
11:36 - More examples and demos
CHECK OUT MY OTHER COMMODORE/ACORN VIDEOS:
==========================================
🕹️ Commodore 64 Programming: youtube.com/playlist?list=PLT0ijfj8mLN7G_Et0DGaVxcVK3N2EpnYk
🕹️ Commodore 64 Hardware Videos: youtube.com/playlist?list=PLT0ijfj8mLN6JTkWianAanzEgLCaA0zFE
🕹️ Commodore 64 Plus/4 Videos: youtube.com/playlist?list=PLT0ijfj8mLN7ioE3wBPYsu32V6Vs9goib
🕹️ Acorn Electron Videos: youtube.com/playlist?list=PLT0ijfj8mLN5n1GNlJPZn3CW7o3hRf7Jv
🕹️ Commodore 64 Games and Demos: youtube.com/playlist?list=PLT0ijfj8mLN6yuzbYo6MnQifgUEM08t83
🕹️ The Pong Game Projects: youtube.com/playlist?list=PLT0ijfj8mLN6QqB1wxCWv7ERaw0fo44kB
#basic #retrocomputing #programming #c64 #commodore #oneliner
How to perform a task only once in one-liner BASIC code? Find out in this video :)
Big thanks to Holger Weßling who started this discussion in "BASIC programming language" group on Facebook.
Besides solutions from the video, there are other solutions as well!
Holger Weßling channel: @tentelianretro6495
☕ If You like this video you can buy me a coffee: ko-fi.com/josipretrobits ☕
SOURCES CODES:
==============
10?chr$(205.5+rnd(.));:goto10
10?chr$(147);:fori=.to.step.:?chr$(205.5+rnd(.));:next
10?chr$(147-a)chr$(205.5+rnd(.));:a=4:goto10
10?chr$(147+a);:a=58.5+rN(.):goto10
0?cH(147+a);:a=58.5+rN(.):gO
0?hH(147+a)" "cH(205+b);:a=10:b=1-b:gO
CHECK OUT:
==========
8Bit Retro ReFix @8BitRetroReFix
Captain Commodore @CaptainCommodore
Retro4u @Retro4u
8bitsinthebasement @8bitsinthebasement
Tim's Retro Corner @TimsRetroCorner
Retro Krazy @RetroKrazy
Rudy's Retro Intel @RudysRetroIntel
INDEX:
======
0:00 - Intro
1:17 - The problem
2:03 - For Loop solution
3:40 - Addition variable solution
6:52 - Multitasking solution
11:36 - More examples and demos
CHECK OUT MY OTHER COMMODORE/ACORN VIDEOS:
==========================================
🕹️ Commodore 64 Programming: youtube.com/playlist?list=PLT0ijfj8mLN7G_Et0DGaVxcVK3N2EpnYk
🕹️ Commodore 64 Hardware Videos: youtube.com/playlist?list=PLT0ijfj8mLN6JTkWianAanzEgLCaA0zFE
🕹️ Commodore 64 Plus/4 Videos: youtube.com/playlist?list=PLT0ijfj8mLN7ioE3wBPYsu32V6Vs9goib
🕹️ Acorn Electron Videos: youtube.com/playlist?list=PLT0ijfj8mLN5n1GNlJPZn3CW7o3hRf7Jv
🕹️ Commodore 64 Games and Demos: youtube.com/playlist?list=PLT0ijfj8mLN6yuzbYo6MnQifgUEM08t83
🕹️ The Pong Game Projects: youtube.com/playlist?list=PLT0ijfj8mLN6QqB1wxCWv7ERaw0fo44kB
#basic #retrocomputing #programming #c64 #commodore #oneliner










