YouTube magic that brings views, likes and suibscribers
Get Free YouTube Subscribers, Views and Likes

What's a Leap Year? Calculating on Commodore 64

Follow
8-Bit Show And Tell

2024 is a leap year, and February 29th is Leap Day! Can we calculate leap years on a Commodore 64 in BASIC and 6502 Assembly Language? Of course we can. We also learn about why we have leap years, Julian and Gregorian calendars, question if it's Simon's or Simons' BASIC, figure out binary long division, notice some strange coincidences, and see Robin's ancestors in some 1962 movie footage that is barely ontopic. It's fun!

Download the D64 with the source code:
https://8bitshowandtell.com/downloads...

To support 8Bit Show And Tell:
Become a patron:   / 8bitshowandtell  
Onetime donation: https://paypal.me/8BitShowAndTell
2nd channel:    / @8bitshowandtell247  

Things mentioned in this video:
https://codebase64.org/doku.php?id=ba...
https://www.c64wiki.com/wiki/Simons%...
https://github.com/adrianglz64/snappyrom
https://store.go4retro.com/easyflash3/
https://www.tfw8b.com/product/kungfu...
https://turbo.style64.org/

Index:
0:00 About leap years
2:50 Julian Calendar leap year calculation in C64 BASIC
7:35 Gregorian Calendar calculation in Simons' BASIC
10:06 Assembly language version load and run
12:11 Walkthrough: main loop
16:45 Checking if leap year (divisible by 4)
18:34 Divide by 100
22:34 Gregorian checks, printing, tabs
27:05 A strange coincidence? Thanks!

posted by karubberduckygw