Commodore 64 Basic miniature screen pixel scroll
This is another example that make use of the VIC-II capability to smooth scroll.
Sample code that you can type on the Commodore 64 or copy directly in to the Commodore 64 Vice emulator
10 ?chr$(147):poke53280,6:poke53281,1:for l=1024to2023:pokel,123:nextl
30fOl=0to7:wA53265,128:pO53265,(pE(53265)and240)or7-l:pO53270,l:nE:gO30
If you read the programmer reference guide of the commodore 64 then on page 129 a chapter is dedicated to "smooth scrolling".
The VIC-II chip adress 53270 is used to expand the border (covering the
right,left, top or bottom characters on the screen) then using bit 0 to 3
is used to move the screen.
So poke 53270, (peek(53270)and248)+ x where x can have a value from 0 to 7.
More one-liner or miniature Commodore Basic examples can be found on my site see http://justforthefunofit.nl/oneliners/
On this page of the site you can watch the video online Commodore 64 Basic miniature screen pixel scroll with a duration of hours minute second in good quality, which was uploaded by the user Just for the Fun of It – Commodore Retro & BASIC 16 January 2022, share the link with friends and acquaintances, this video has already been watched 809 times on youtube and it was liked by 10 viewers. Enjoy your viewing!