The code is in Go. It could be easily ported to other languages. Did you know that you can bitshift a number to the left or right by multiplying a number by 2 or dividing(integer division) a number by 2 respectively? Anyway, let’s start by getting the least significant bit of a number: Then let’s…
All posts tagged Go

I followed an assembly language routine step by step
The assembly program is for PIC16. The one I specifically did was the 8×8 unsigned multiplication. Here is the link for the material. I did this by hand first then I made a program written in Go to easily visualize what is happening step by step with the 8×8 unsigned multiplication routine. Here is the…