Applesoft BASIC High Resolution Graphics
High Resolution (HiRes) modes
HGR
and HGR2
both set hi-resolution graphics mode.
HGR
sets a mixed mode of text and graphics (280x160 pixels).
HGR2
sets full-screen graphics mode (280x192 pixels).
- When the screen is in
HGR
mixed mode there are four TEXT-mode lines on the bottom of the screen.
Memory Locations
- There are two pages of HiRes graphics.
- The first page,
HGR
, starts at $2000
- The second page,
HGR2
, starts at $4000
$E000-FFFF - Monitor ROM / Extended RAM 8 / 8 kB
$D000-DFFF - BASIC ROM / RAM bank 1 and 2 4 / 4 / 4 kB
$C800-CFFF - Shared slot ROM memory 2 kB
$C100-C7FF - Permanent Slot ROM memory 256 per slot
$C000-C0FF - Softswitches 256 bytes
$6000-BFFF - Free memory 24 kB
$4000-5FFF - Free memory / Hi-Res page 2 8 kB
$2000-3FFF - Free memory / Hi-Res page 1 8 kB
$0C00-1FFF - Free memory 5 kB
$0800-0BFF - Free memory / Text page 2 1 kB
$0400-07FF - Text page 1 1 kB
$03D0-03FF - Interrupt vectors 48 bytes
$0300-03CF - Free memory 208 bytes
$0200-02FF - Input prompt character buffer 256 bytes
$0100-01FF - CPU stack 256 bytes
$0000-00FF - Zero page
High Resolution (HiRes) graphics mode colors
- Hi-res modes have just eight colors.
High Resolution (HiRes) graphics mode BASIC commands
HGR Mixed-Mode Screen Dimensions
______________________________
|(0,0) (279,0)|
| |
| | GRAPHICS
| |
|(0,159) (279,159)|
|------------------------------|
|HTAB 1 | TEXT
|VTAB 21 | 4 rows
|______________________________|
HGR/HGR2 Full-Screen Screen Dimensions
______________________________
|(0,0) (279,0)|
| |
| | GRAPHICS
| |
| |
| |
| |
|(0,192) (279,192)|
|______________________________|
Print random balls on the screen