
It is often said that C is an assembler with long variable names and built-in functions. This is somewhat true, but not exactly. If you are trying to convert C to assembler, it is much easier to use a compiler, which is why compilers exist, but you can quite often produce faster code if you use assembler in the first place. It takes a bit of additional effort and careful planning, but it can be done just by following the original C code and knowing what that C code does in the first place. Being able to convert between the two can also allow you to be a better C programmer as well.
Continue reading “Converting Bresenham to Assembler (pass 1)”