4 ms·
When I started at Apple in late 1995 there was still plenty of 68K assembly in the code base. Sometime when the push to PowerPC began the color picker code land
by JKCalhoun 3y ago
When I started at Apple in late 1995 there was still plenty of 68K assembly in the code base. Sometime when the push to PowerPC began the color picker code landed in my lap. While mostly in C, the RGB and HSB "wheels" were rendered using hand-coded assembly. (This allowed the user on a lowly Macintosh II to real-time drag the slider to adjust brightness or what have you and get a responsive color wheel updating.)
Having never written assembly it was fun pulling down a book on 68K assembly and determining how to do each instruction in straight C.
I remember one odd instruction — some kind of mask-and-shift-bit instruction — that I was unable to find documentation for in the book (pre-StackOverflow obv). Fortunately someone had a Motorola 68020 manual and the instruction I was looking for was there. It had not occurred to me that there were newer instructions for the '020 and that the color picker might use one. (After the fact it occurred to me that in the Macintosh line an '020 or better was the minimum CPU for color support).
- ndesaulniers 3y ago> and determining how to do each instruction in straight C. Did you have inline assembly at the time?
- JKCalhoun 3y agoHa ha, not for the new-then PowerPC architecture, no.