From 75ea5a353ba376b2f11fb9543ecbc484efd1db1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 4 Nov 2012 19:18:19 +0000 Subject: [PATCH] more diagnostic output --- sources/BaS.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sources/BaS.c b/sources/BaS.c index 8f6d14d..51ab119 100644 --- a/sources/BaS.c +++ b/sources/BaS.c @@ -124,6 +124,7 @@ void BaS(void) xprintf("finished\r\n"); + xprintf("enable video: "); /* * video setup (25MHz) */ @@ -143,6 +144,9 @@ void BaS(void) /* fifo on, refresh on, ddrcs and cke on, video dac on */ * (volatile uint32_t *) (0xf0000410 - 0x20) = 0x01070002; + xprintf("finished\r\n"); + + /* * memory setup */ @@ -167,6 +171,7 @@ void BaS(void) * (uint32_t *) 0x5a4 = (uint32_t) Bas_base; /* ramtop TOS system variable */ * (uint32_t *) 0x5a8 = 0x1357bd13; /* ramvalid TOS system variable */ + xprintf("init ACIA: "); /* init ACIA */ * (uint8_t *) 0xfffffc00 = 3; __asm__ __volatile__("nop \n\t" : : : "memory"); @@ -179,6 +184,8 @@ void BaS(void) * (uint8_t *) 0xfffffa11 = -1; __asm__ __volatile__("nop \n\t" : : : "memory"); + xprintf("finished\r\n"); + /* Test for pseudo-supervisor mode: DIP switch #6 down */ if (DIP_SWITCH & (1 << 7)) { /* In this mode, the OS actually runs in user mode @@ -192,6 +199,9 @@ void BaS(void) void *initial_sp; void_func *initial_pc; } ROM_HEADER; + + xprintf("Call OS. BaS finished...\r\n"); + ROM_HEADER* os_header = (ROM_HEADER*)tos_base; os_header->initial_pc(); }