Introduction
An .hgr file is a high resolution screen of the Apple II, 280×192 pixels. A
.dhr or .dhgr file is a double high resolution screen, 560×192
pixels, a mode of the Apple IIe. The RECOIL decoder also lists
.spr sprite files for the Apple II.
Structure
A screen file is a raw copy of screen memory with no header. A high resolution screen is 8,192 bytes. A double high resolution screen is 16,384 bytes: first the half held in auxiliary memory, then the half held in main memory.
Each of the 192 lines takes 40 bytes in each half, and the lines are interleaved. Line y starts at offset (y mod 8) × 1,024 + ((y ÷ 8) mod 8) × 128 + (y ÷ 64) × 40, with the divisions rounded down. A byte holds seven pixels, and its high bit selects between two sets of colours. In double high resolution the bytes of the two halves alternate along the line.
Apple’s file type note for ProDOS graphics files (type $08, auxiliary types $0000 to $3FFF) gives the byte at offset 120 as a display mode: 280×192 black and white (0) or limited colour (1), 560×192 black and white (2) or 140×192 full colour (3). The values 4 to 7 mean the same four modes for the second display page.
Not described
Known, not yet covered
- Reference: the bit order of the pixels, the colours they produce and the layout of the sprite files are not yet described.
- Viewer: the site has no viewer for Apple II graphics.
Also used for
- Quake sprite (.spr) – Sprite packages of bitmap frames used by the game Quake.
Links
Software
Reference
- File Type Note $08 – Apple II graphics files under ProDOS: layout and mode byte
- miscfileformats.c – the GrafX2 source with the Apple II screen loader