Base code for handling different CPUs, more improvements

git-svn-id: svn://svn.cc65.org/cc65/trunk@2253 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-08-08 11:12:04 +00:00
parent 54b535a606
commit 897f3e9530
17 changed files with 1593 additions and 1926 deletions

View File

@@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 2000 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* (C) 2000-2003 Ullrich von Bassewitz */
/* R<EFBFBD>merstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@@ -40,6 +40,7 @@
#include <errno.h>
/* common */
#include "cpu.h"
#include "print.h"
#include "version.h"
@@ -74,7 +75,7 @@ static void PageHeader (void)
/* Print a page header */
{
fprintf (F,
"; da65 V%u.%u.%u - (C) Copyright 2000 Ullrich von Bassewitz\n"
"; da65 V%u.%u.%u - (C) Copyright 2000-2003 Ullrich von Bassewitz\n"
"; Input file: %s\n"
"; Page: %u\n\n",
VER_MAJOR, VER_MINOR, VER_PATCH,
@@ -268,3 +269,17 @@ void LineComment (unsigned PC, unsigned Count)
void OutputSettings (void)
/* Output CPU and other settings */
{
LineFeed ();
Indent (MIndent);
Output (".setcpu");
Indent (AIndent);
Output ("\"%s\"", CPUNames[CPU]);
LineFeed ();
LineFeed ();
}