The Times-4 Trick

First, let's pick up a detail of what the assembler does that we left out in the first page on branches:

Let's do an example in 8 bits instead of 32

The times-4 trick will save the day in this case

Let's go back to the real world of 32 bits

It uses shifts to do this

Thinking of shifts as arithmetic

Isn't This Fun?