DOHIRES • Double-HIRES Library
The Apple made it possible to utilize a graphics mode called “Double Hires” in the Apple //e Rev B, Apple //c, and Apple //gs, but it was more of an afterthought than a smart design decision if you look at it from the programmer’s point of view. A very complicated memory layout with no direct possibility to address even a single pixel makes the use of this graphic mode a real challenge for a developer, until now, with the DOHIRES library written by Mark. Golombeck. He has written a very through and detailed technical blog regarding the library and graphics mode and how it works. Find it in the 8-Bit Shack members area.
Please find the library usage and documentation below.
10 & HGR 15 REM LOAD DHCOREAMP FIRST! 20 & M 30 FOR I = 0 TO 15 40 & HCOLOR= I 50 & R1 + (I * 5),1 + (I * 5),8 + (I * 5),3 + (I * 5),I,I 60 & SCRN( 1 + (I * 5),1 + (I * 5),C%) 70 PRINT C%;" - "; 80 NEXT I 90 END
Example code, that draws rectangles at various colors, and then uses the SCRN function to retrieve the color of a pixel within the rectangles and display that value.
The output of the &V command, displaying the version and contact information.