Smooth scrolling text in Commodore BASIC | Commodore 64 @JosipRetroBits
Smooth scrolling text in Commodore BASIC | Commodore 64  @JosipRetroBits
Uploaded November 2021 | Updated November 2026, 3 hours ago
Initial code:

5 ?chr$(147) : rem clear screen
10 poke214,0:?:poke211,0:?"smooth scrolling text in basic"
20 r = peek(1064)
30 poke214,0:?:poke211,1:?chr$(20):poke 1103,r
40 forj=0to50:next
50 goto 20
------------------------

Code with smooth scroll register:

5 ?chr$(147) : rem clear screen
10 poke214,0:?:poke211,0:?"smooth scrolling text in basic"
20 r = peek(1064)
40 for i=7to0step-1:poke 53270, i:wait 53265,128,0:next
40 poke214,0:?:poke211,1:?chr$(20):poke 1103,r
50 poke 53270, 7: goto 20

------------------------
Final optimized code:

0 foru=3to.step.
10 for i=7to.step-1:poke z,i:wait s,128,.:next:r=peek(g)
20 poke c,1:poke v,1:poke b,.:sys k:printchr$(20):poke h,r:next
40 ?chr$(147) : rem clear screen
50 poke 53270, 7: poke 56334,peek(56334)and256
65 s=53266:k=65520:z=53270:h=1103:g=1064:c=781:v=782:b=783
70 poke214,0:poke211,3:?"smooth scrolling text in basic"
80 goto .

RUN 40
------------------------

If You like this video you can buy me a coffee: ko-fi.com/josipretrobits
Smooth scrolling text in Commodore BASIC | Commodore 64Meteor Shower on Commodore 64 #commodore #basic #retrocomputing #c64Typewriter Olympia Carrera de Luxe | Dumpster diveTV Static Noise in QB64 | Oneliner CodePrime Numbers Visualization (scrolling version)Merry Commodore Christmas #christmas #retro #retrogaming #xmas #retrocomputing #commodoreMandelbrot Set in C on Commodore 64 | Floating point library for CC65A Twisted Christmas 1988 | Commodore 64 Greetings CardCommodore 64 REM Statement Bugs and Riddles | Commodore Basic 2.0Blue Commodore 64 | My first spray-painted C64 | Breadbin CaseHow to remove a sticker from the computer case without disassemblingCommodore joystick as a pile of rubble
Josip Retro Bits |

Smooth scrolling text in Commodore BASIC | Commodore 64

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER