The easiest way to start programming Commodore 64

Learn BASIC and 6502 Assembly with bite-sized video tutorials.
Watch your first episode today!

Episode #095 - Safe Branching

Often in programming Commodore 64, we need accurate and compact delay loops.

We usually create them using one of branching instructions.

Once we introduce such loop, our code can become fragile, since branches can take one cycle more if the jump lands on a different page than the next instruction.

And it can happen by accident if we add some code to before those instructions or if we relocate the program.

This can lead to frustrating debugging sessions since the compiler doesn't warn us about this problem automatically.

Today we will change that.

PAID

Watch this Video Today

just one Episode

$3.99
  • Immediate access to the episode
  • Online streaming
  • DRM-free download
  • Full Transcript
  • Source Code
  • Exercises
  • One-time payment
Price per episode: $3.99

with an Ongoing Subscription

$10.99/month
(or $9.08/month with an annual payment)
  • Immediate access to 15 latest episodes!
  • Online streaming
  • DRM-free download
  • New video every week!
  • Full Transcripts
  • Source Codes
  • Exercises
  • The most cost-efficient option
  • One payment per month (or year)
  • You can cancel it anytime
Price per episode: ~$2.06

See what others are saying!

I learned assembly the hard way, with only limited documentation. Although part of the fun is in discovering all these things yourself, I think such screencasts could have helped me in getting up to speed faster. They do contain some nice bits of information :)

- Paul Koller

Game Developer, Creator of C64anabalt, Super Bread Box and Micro Hexagon

64bites brings me closer to understanding a computer I learned to love long ago, and still do. More than anything, it is really fun to follow the lessons and I always look forward to the next episode with great anticipation. It is the best thing since chocolate.

- Sebastian Kostka

Online Marketing Wizard at MeMyselfAndUs

I enjoyed both narration and realisation.
Actually, I was really shocked to have so much fun watching a programming screencast!

- Robert Lapinski

CEO of Idea Head, Mastermind behind the Pixel Magazine

How much time did you spend playing games on your Commodore c64? 64bites is more than 8-bit childhood memories, its a way to keep your beloved C64 alive, let's make our own game with it.

- Andrzej Śliwa

Polyglot Programmer, Lead Developer at bonusbox GmbH

This is really cool. I don't know exactly how popular it will end up being, but there is always room online for things like this.

- Peter Cooper

Founder at Cooper Press, Chair of O'Reilly Fluent Conference

Having watched a few episodes, I reiterate my original position: sooooooo coool. And Michal have really done a top-notch job on writing, production, audio, everything.

- Avdi Grimm

Creator of the best selling programming screencast series - RubyTapas