#: 6546 S12/OS9/68000 (OSK)
06-Sep-90 03:29:06
Sb: #6531-##pt68k & herc graphics
Fm: SCOTT HOWELL 70270,641
To: Jack Crenshaw 72325,1327 (X)
Here is a program I wrote using the using the info Ed gave me abount setting up
the Herc card. When I run the program it puts the card into Herc graphics mode
but in the process it turns the snowy and wavy. This I suppose is the
'graphics' mode but only half way I guess. #include #define
VID_CARD 0xD70001 #define HGC_CONT 0xFA0771 #define HGC_CONF 0xFA077F
#define HGC_STAT 0xFA0775 * These defines are set to configure the Herc
graphics card.
The formula to convert IBM addresses (video) to PT68K
addresses is (IBMVid * 2) + C00001.
For non-video conversions: (IBM * 2) + FA0001. */
char *video = VID_CARD; unsigned char *v_controll = HGC_CONT; unsigned char
*v_config = HGC_CONF; unsigned char *v_stat = HGC_STAT; char c; int i,n;
main() { video = (char *) VID_CARD; v_controll = (unsigned char *) HGC_CONT;
v_config = (unsigned char *) HGC_CONF;
*v_controll =0x2b; *v_config = 0x1;
printf("%x\n",*v_controll); printf("%x\n",*v_config);
video = (char *) VID_CARD; for (i=0;i<2000;i++)
{
*video++ =0xff; } }
There is 1 Reply.
|