3 ms·
It needs a picture of the monochrome MacPaint fill patterns! I heard that the display drivers for the first Macs were written in Pascal. I don't have any links
by dahart 10y ago
It needs a picture of the monochrome MacPaint fill patterns!
I heard that the display drivers for the first Macs were written in Pascal. I don't have any links that prove it, but it was considered crazy back then not to write pixel routines in assembly...
- pvg 10y agoThey weren't, although there was a lot of Pascal-ism in the Mac. The 'pixel routines' were very much assembly and the source (and some historical context) is now available here: http://www.computerhistory.org/atchm/macpaint-and-quickdraw-source-code/ http://www.computerhistory.org/atchm/macpaint-and-quickdraw-...
- joezydeco 10y agoThe first Macs had no display drivers. They were sending video pixel data from RAM directly to the electron gun of the video display (with some help from various PAL/TTL glue and interrupts, natch [1]). The toolbox that all 68K-based Macs used to draw stuff on the display was called QuickDraw, written in 68000 assembly language code by Bill Atkinson. It was descended from Bill's work on the Lisa and LisaGraf, the graphics toolbox used in that project. While the first APIs for Mac were indeed in Pascal (including MacPaint) the base toolkit was all in assembly for speed. Apple recently donated the source code for QuickDraw and MacPaint (a historical work by Atkinson) to the Computer History Museum: http://www.computerhistory.org/atchm/macpaint-and-quickdraw-source-code/ http://www.computerhistory.org/atchm/macpaint-and-quickdraw-... [1] https://en.wikipedia.org/wiki/Macintosh_128K/512K_technical_details https://en.wikipedia.org/wiki/Macintosh_128K/512K_technical_...
- spot 10y agono it was 68k asm: http://www.computerhistory.org/atchm/macpaint-and-quickdraw-source-code/ http://www.computerhistory.org/atchm/macpaint-and-quickdraw-...
- spot 10y agohowever, Pascal was the official OS language, and all the original documentation (Inside Macintosh) for the APIs was written in Pascal.