fix VGA modes
This commit is contained in:
@@ -434,10 +434,6 @@ void BaS(void)
|
|||||||
memcpy(dst, src, EMUTOS_SIZE);
|
memcpy(dst, src, EMUTOS_SIZE);
|
||||||
xprintf("finished\r\n");
|
xprintf("finished\r\n");
|
||||||
|
|
||||||
xprintf("initialize exception vector table: ");
|
|
||||||
vec_init();
|
|
||||||
xprintf("finished\r\n");
|
|
||||||
|
|
||||||
xprintf("flush caches: ");
|
xprintf("flush caches: ");
|
||||||
flush_and_invalidate_caches();
|
flush_and_invalidate_caches();
|
||||||
xprintf("finished\r\n");
|
xprintf("finished\r\n");
|
||||||
@@ -446,6 +442,11 @@ void BaS(void)
|
|||||||
NOP(); /* force pipeline sync */
|
NOP(); /* force pipeline sync */
|
||||||
xprintf("finished\r\n");
|
xprintf("finished\r\n");
|
||||||
|
|
||||||
|
xprintf("initialize exception vector table: ");
|
||||||
|
vec_init();
|
||||||
|
xprintf("finished\r\n");
|
||||||
|
|
||||||
|
|
||||||
#if defined(MACHINE_FIREBEE)
|
#if defined(MACHINE_FIREBEE)
|
||||||
xprintf("IDE reset: ");
|
xprintf("IDE reset: ");
|
||||||
/* IDE reset */
|
/* IDE reset */
|
||||||
@@ -458,10 +459,6 @@ void BaS(void)
|
|||||||
xprintf("finished\r\n");
|
xprintf("finished\r\n");
|
||||||
xprintf("enable video: ");
|
xprintf("enable video: ");
|
||||||
|
|
||||||
/*
|
|
||||||
* video setup (25MHz)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ATARI video modes "modeline"
|
* ATARI video modes "modeline"
|
||||||
*
|
*
|
||||||
@@ -487,8 +484,6 @@ static volatile struct atari_video_timing *ver_640x480 = (volatile struct atari_
|
|||||||
static volatile struct atari_video_timing *hor_320x240 = (volatile struct atari_video_timing *) 0xf0000418;
|
static volatile struct atari_video_timing *hor_320x240 = (volatile struct atari_video_timing *) 0xf0000418;
|
||||||
static volatile struct atari_video_timing *ver_320x240 = (volatile struct atari_video_timing *) 0xf000041c;
|
static volatile struct atari_video_timing *ver_320x240 = (volatile struct atari_video_timing *) 0xf000041c;
|
||||||
|
|
||||||
#define VIDEO_25MHZ
|
|
||||||
|
|
||||||
#ifdef VIDEO_25MHZ
|
#ifdef VIDEO_25MHZ
|
||||||
hor_640x480->total = 0x2ba;
|
hor_640x480->total = 0x2ba;
|
||||||
hor_640x480->sync_start = 0x2ba;
|
hor_640x480->sync_start = 0x2ba;
|
||||||
@@ -499,14 +494,6 @@ static volatile struct atari_video_timing *ver_320x240 = (volatile struct atari_
|
|||||||
hor_320x240->sync_start = 0x15d;
|
hor_320x240->sync_start = 0x15d;
|
||||||
ver_320x240->total = 0x20c;
|
ver_320x240->total = 0x20c;
|
||||||
ver_320x240->sync_start = 0x20a;
|
ver_320x240->sync_start = 0x20a;
|
||||||
|
|
||||||
#ifdef _NOT_USED_
|
|
||||||
ATARI_HH = 0x032002ba; /* horizontal timing 640 x 480 */
|
|
||||||
ATARI_VH = 0x020c020a; /* vertical timing 640 x 480 */
|
|
||||||
ATARI_HL = 0x0190015d; /* horizontal timing 320 x 240 */
|
|
||||||
ATARI_VL = 0x020c020a; /* vertical timing 320 x 240 */
|
|
||||||
*/
|
|
||||||
#endif /* _NOT_USED_ */
|
|
||||||
#else /* 32 MHz */
|
#else /* 32 MHz */
|
||||||
hor_640x480->total = 0x370;
|
hor_640x480->total = 0x370;
|
||||||
hor_640x480->sync_start = 0x2ba;
|
hor_640x480->sync_start = 0x2ba;
|
||||||
@@ -517,13 +504,6 @@ static volatile struct atari_video_timing *ver_320x240 = (volatile struct atari_
|
|||||||
hor_320x240->sync_start = 0x1e0;
|
hor_320x240->sync_start = 0x1e0;
|
||||||
ver_320x240->total = 0x5a0;
|
ver_320x240->total = 0x5a0;
|
||||||
ver_320x240->sync_start = 0x168;
|
ver_320x240->sync_start = 0x168;
|
||||||
|
|
||||||
#ifdef _NOT_USED_
|
|
||||||
ATARI_HH = 0x037002ba; /* horizontal timing 640 x 480 */
|
|
||||||
ATARI_VH = 0x020d020a; /* vertikal timing 640 x 480 */
|
|
||||||
ATARI_HL = 0x02a001e0; /* horizontal timing 320 x 240 */
|
|
||||||
ATARI_VL = 0x05a00160; /* vertikal timing 320 x 240 */
|
|
||||||
#endif /* _NOT_USED_ */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* fifo on, refresh on, ddrcs and cke on, video dac on */
|
/* fifo on, refresh on, ddrcs and cke on, video dac on */
|
||||||
@@ -542,13 +522,6 @@ static volatile struct atari_video_timing *ver_320x240 = (volatile struct atari_
|
|||||||
* (volatile uint8_t *) 0xffff8007 = 0x48;
|
* (volatile uint8_t *) 0xffff8007 = 0x48;
|
||||||
#endif /* MACHINE_FIREBEE */
|
#endif /* MACHINE_FIREBEE */
|
||||||
|
|
||||||
/*
|
|
||||||
* FireTOS wants to have the TOS system variables cleared
|
|
||||||
* Do the same for EmuTOS. "warm resets" don't seem to be reliable
|
|
||||||
* Exception vector table extends to 0x3ff
|
|
||||||
*/
|
|
||||||
memset((void *) 0x400, 0, 0x400);
|
|
||||||
|
|
||||||
/* ST RAM */
|
/* ST RAM */
|
||||||
|
|
||||||
* (uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */
|
* (uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */
|
||||||
|
|||||||
Reference in New Issue
Block a user