summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>2020-06-30 04:13:17 +0200
committerChristian A. Weber <chris@gna.ch>2020-06-30 04:13:17 +0200
commitedaf1d79834045542675ede48f080cc3bbc970b1 (patch)
treec445c7baf4f8be0c1f8984a01dda0a2ba89a07a6
parenta2831138d94ea36bdf18e7adb877ea6bbea2fd89 (diff)
downloadgameexec-edaf1d79834045542675ede48f080cc3bbc970b1.tar.gz
gameexec-edaf1d79834045542675ede48f080cc3bbc970b1.tar.bz2
gameexec-edaf1d79834045542675ede48f080cc3bbc970b1.zip
InitExec()-Parameter angepasst, Debug-Output optimiert
-rw-r--r--SysStart.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/SysStart.c b/SysStart.c
index 505f1e1..b172177 100644
--- a/SysStart.c
+++ b/SysStart.c
@@ -8,6 +8,7 @@
** -------------------- **
** **
** 24-Feb-91 CHW Created this file from Start.S **
+** 29-Jun-20 CHW Aufgeräumt, öffnet jetzt Screen damit's mit UAE läuft **
** **
****************************************************************************/
@@ -43,7 +44,7 @@ extern struct Custom far volatile custom;
extern void __asm __far InitExec(
register __d0 LONG, register __d1 LONG,
- register __d2 LONG, register __d3 LONG, register __d4 LONG,
+ register __d2 LONG, register __d3 LONG,
register __a0 void *,register __a1 void *,
register __a2 void *,register __a3 void *);
@@ -58,10 +59,10 @@ struct
UBYTE *chipbase; /* Startadresse des CHIP-RAMs für Exec */
-LONG chipsize; /* Grösse des CHIP-RAMs für Exec */
+ULONG chipsize; /* Grösse des CHIP-RAMs für Exec */
UBYTE *fastbase; /* Startadresse des FAST-RAMs für Exec */
-LONG fastsize; /* Grösse des FAST-RAMs für Exec */
+ULONG fastsize; /* Grösse des FAST-RAMs für Exec */
struct Screen *screen; /* Wir öffnen einen Customscreen um Picasso- oder UAE-Screenmodes abzuschalten */
@@ -174,7 +175,7 @@ LONG Main(LONG arglen, char *argline)
taskpri = *argv.PriPtr;
- if (!(screen = OpenScreenTags(NULL, SA_Depth, 1, SA_Quiet, TRUE, SA_Type, CUSTOMSCREEN, TAG_DONE)))
+ if (!(screen = OpenScreenTags(NULL, SA_Width,320, SA_Height,200, SA_Depth,1, SA_Type,CUSTOMSCREEN, TAG_DONE)))
{
Puts("Can't open screen!");
ExitRoutine();
@@ -183,11 +184,11 @@ LONG Main(LONG arglen, char *argline)
if (chipbase = AllocMem(chipsize, MEMF_CHIP|MEMF_CLEAR))
{
- printf("Chip RAM: $%08lx (%ldK)\n", chipbase, chipsize >> 10);
+ printf("Chip RAM: $%08lx (%luK)\n", chipbase, chipsize >> 10);
if (fastbase = AllocMem(fastsize, MEMF_FAST|MEMF_CLEAR))
{
- printf("Fast RAM: $%08lx (%ldK)\n", fastbase, fastsize >> 10);
+ printf("Fast RAM: $%08lx (%luK)\n", fastbase, fastsize >> 10);
}
else
{
@@ -215,8 +216,7 @@ LONG Main(LONG arglen, char *argline)
InitExec( attnflags, /* D0 */
sysbplcon0, /* D1 */
vblankfreq, /* D2 */
- 0, /* D3 : Product-Code */
- (LONG)module, /* D4 : MainPrg-Name */
+ (LONG)module, /* D3 : MainPrg-Name */
chipbase, /* A0 : CHIP-Startadresse */
chipbase+chipsize, /* A1 : CHIP-Grösse */
fastbase, /* A2 : FAST-Startadresse */
@@ -227,7 +227,7 @@ LONG Main(LONG arglen, char *argline)
/* not reached */
}
- else printf("Can't get %ldK CHIP RAM!\n",chipsize/1024);
+ else printf("Can't get %luK CHIP RAM!\n",chipsize/1024);
return RETURN_WARN;