Multiply-step Instruction

Fourth in a series on colorForth and GreenArrays hardware. This time, how the multiply-step instruction works on the F18. Bit Twiddling is Fun! Here’s a bit-twiddly interview question for you: Design an algorithm to multiply fixnum integers in O(log n) time using only addition. This may come in handy given that the F18 doesn’t have…

1

The Beautiful Simplicity of colorForth

colorForth As much fun as hand packing instructions was in the last post, that was tedious. Let’s move on to colorForth. Don’t worry too much about what the code above does (prints “colorForth rocks!”). It compiles to this: Isn’t the source beautiful? So colorful! The colors are not merely syntax highlighting. They drive the semantics! They are…

6