mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 04:54:54 +00:00
Rename c1p target to osic1p
This commit is contained in:
parent
19b3c1b32b
commit
14c7e9fd16
@ -78,7 +78,7 @@
|
|||||||
#elif defined(__NES__)
|
#elif defined(__NES__)
|
||||||
# include <nes.h>
|
# include <nes.h>
|
||||||
#elif defined(__OSIC1P__)
|
#elif defined(__OSIC1P__)
|
||||||
# include <c1p.h>
|
# include <osic1p.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* c1p.h */
|
/* osic1p.h */
|
||||||
/* */
|
/* */
|
||||||
/* Challenger 1P system specific definitions */
|
/* Challenger 1P system specific definitions */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2014 Stephan Muehlstrasser */
|
/* (C) 2015 Stephan Muehlstrasser */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@ -28,8 +28,8 @@
|
|||||||
/* */
|
/* */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#ifndef _C1P_H
|
#ifndef _OSIC1P_H
|
||||||
#define _C1P_H
|
#define _OSIC1P_H
|
||||||
|
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
#if !defined(__OSIC1P__)
|
#if !defined(__OSIC1P__)
|
@ -20,11 +20,11 @@ TARGETS = apple2 \
|
|||||||
atarixl \
|
atarixl \
|
||||||
atari5200 \
|
atari5200 \
|
||||||
atmos \
|
atmos \
|
||||||
c1p \
|
|
||||||
$(CBMS) \
|
$(CBMS) \
|
||||||
$(GEOS) \
|
$(GEOS) \
|
||||||
lynx \
|
lynx \
|
||||||
nes \
|
nes \
|
||||||
|
osic1p \
|
||||||
sim6502 \
|
sim6502 \
|
||||||
sim65c02 \
|
sim65c02 \
|
||||||
supervision
|
supervision
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.export _cgetc
|
.export _cgetc
|
||||||
.import cursor
|
.import cursor
|
||||||
|
|
||||||
.include "c1p.inc"
|
.include "osic1p.inc"
|
||||||
.include "extzp.inc"
|
.include "extzp.inc"
|
||||||
|
|
||||||
; Input routine from 65V PROM MONITOR, show cursor if enabled
|
; Input routine from 65V PROM MONITOR, show cursor if enabled
|
@ -4,7 +4,7 @@
|
|||||||
.export _clrscr
|
.export _clrscr
|
||||||
.import plot
|
.import plot
|
||||||
.importzp CURS_X, CURS_Y
|
.importzp CURS_X, CURS_Y
|
||||||
.include "c1p.inc"
|
.include "osic1p.inc"
|
||||||
|
|
||||||
; Adapted from the Challenger Character Graphics
|
; Adapted from the Challenger Character Graphics
|
||||||
; Reference Manual, "2.3.3 MACHINE LANGUAGE SCREEN CLEAR"
|
; Reference Manual, "2.3.3 MACHINE LANGUAGE SCREEN CLEAR"
|
@ -9,7 +9,7 @@
|
|||||||
.export newline, plot
|
.export newline, plot
|
||||||
.import popa, _gotoxy
|
.import popa, _gotoxy
|
||||||
|
|
||||||
.include "c1p.inc"
|
.include "osic1p.inc"
|
||||||
.include "extzp.inc"
|
.include "extzp.inc"
|
||||||
|
|
||||||
_cputcxy:
|
_cputcxy:
|
@ -18,4 +18,4 @@ SCR_LINELEN: .byte 24
|
|||||||
SCREEN_PTR: .res 2
|
SCREEN_PTR: .res 2
|
||||||
|
|
||||||
; size 6
|
; size 6
|
||||||
; Adjust size of this segment in c1p.cfg if the size changes
|
; Adjust size of this segment in osic1p.cfg if the size changes
|
@ -1,94 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="c1p65\main.c" />
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectGuid>{4E031DE0-82B4-4204-8529-536626F7E0DF}</ProjectGuid>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<RootNamespace>c1p65</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v120</PlatformToolset>
|
|
||||||
<CharacterSet>
|
|
||||||
</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v120</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>
|
|
||||||
</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
|
||||||
<IntDir>$(SolutionDir)..\wrk\$(ProjectName)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
|
||||||
<IntDir>$(SolutionDir)..\wrk\$(ProjectName)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories>common</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalDependencies>$(IntDir)..\..\common\$(Configuration)\common.lib</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories>common</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalDependencies>$(IntDir)..\..\common\$(Configuration)\common.lib</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -303,7 +303,7 @@ static void SetSys (const char* Sys)
|
|||||||
NewSymbol ("__SIM65C02__", 1);
|
NewSymbol ("__SIM65C02__", 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TGT_C1P:
|
case TGT_OSIC1P:
|
||||||
NewSymbol ("__OSIC1P__", 1);
|
NewSymbol ("__OSIC1P__", 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ static void SetSys (const char* Sys)
|
|||||||
DefineNumericMacro ("__SIM65C02__", 1);
|
DefineNumericMacro ("__SIM65C02__", 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TGT_C1P:
|
case TGT_OSIC1P:
|
||||||
DefineNumericMacro ("__OSIC1P__", 1);
|
DefineNumericMacro ("__OSIC1P__", 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -131,7 +131,6 @@ static const TargetEntry TargetMap[] = {
|
|||||||
{ "bbc", TGT_BBC },
|
{ "bbc", TGT_BBC },
|
||||||
{ "c128", TGT_C128 },
|
{ "c128", TGT_C128 },
|
||||||
{ "c16", TGT_C16 },
|
{ "c16", TGT_C16 },
|
||||||
{ "c1p", TGT_C1P },
|
|
||||||
{ "c64", TGT_C64 },
|
{ "c64", TGT_C64 },
|
||||||
{ "cbm510", TGT_CBM510 },
|
{ "cbm510", TGT_CBM510 },
|
||||||
{ "cbm610", TGT_CBM610 },
|
{ "cbm610", TGT_CBM610 },
|
||||||
@ -143,6 +142,7 @@ static const TargetEntry TargetMap[] = {
|
|||||||
{ "module", TGT_MODULE },
|
{ "module", TGT_MODULE },
|
||||||
{ "nes", TGT_NES },
|
{ "nes", TGT_NES },
|
||||||
{ "none", TGT_NONE },
|
{ "none", TGT_NONE },
|
||||||
|
{ "osic1p", TGT_OSIC1P },
|
||||||
{ "pet", TGT_PET },
|
{ "pet", TGT_PET },
|
||||||
{ "plus4", TGT_PLUS4 },
|
{ "plus4", TGT_PLUS4 },
|
||||||
{ "sim6502", TGT_SIM6502 },
|
{ "sim6502", TGT_SIM6502 },
|
||||||
@ -163,12 +163,12 @@ static const TargetProperties PropertyTable[TGT_COUNT] = {
|
|||||||
{ "atarixl", CPU_6502, BINFMT_BINARY, CTAtari },
|
{ "atarixl", CPU_6502, BINFMT_BINARY, CTAtari },
|
||||||
{ "vic20", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "vic20", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "c16", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "c16", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "c1p", CPU_6502, BINFMT_BINARY, CTNone },
|
|
||||||
{ "c64", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "c64", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "c128", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "c128", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "plus4", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "plus4", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "cbm510", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "cbm510", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "cbm610", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "cbm610", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
|
{ "osic1p", CPU_6502, BINFMT_BINARY, CTNone },
|
||||||
{ "pet", CPU_6502, BINFMT_BINARY, CTPET },
|
{ "pet", CPU_6502, BINFMT_BINARY, CTPET },
|
||||||
{ "bbc", CPU_6502, BINFMT_BINARY, CTNone },
|
{ "bbc", CPU_6502, BINFMT_BINARY, CTNone },
|
||||||
{ "apple2", CPU_6502, BINFMT_BINARY, CTNone },
|
{ "apple2", CPU_6502, BINFMT_BINARY, CTNone },
|
||||||
@ -201,7 +201,7 @@ static int Compare (const void* Key, const void* Entry)
|
|||||||
return strcmp ((const char*) Key, ((const TargetEntry*)Entry)->Name);
|
return strcmp ((const char*) Key, ((const TargetEntry*)Entry)->Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
target_t FindTarget (const char* Name)
|
target_t FindTarget (const char* Name)
|
||||||
/* Find a target by name and return the target id. TGT_UNKNOWN is returned if
|
/* Find a target by name and return the target id. TGT_UNKNOWN is returned if
|
||||||
|
@ -59,12 +59,12 @@ typedef enum {
|
|||||||
TGT_ATARIXL,
|
TGT_ATARIXL,
|
||||||
TGT_VIC20,
|
TGT_VIC20,
|
||||||
TGT_C16,
|
TGT_C16,
|
||||||
TGT_C1P,
|
|
||||||
TGT_C64,
|
TGT_C64,
|
||||||
TGT_C128,
|
TGT_C128,
|
||||||
TGT_PLUS4,
|
TGT_PLUS4,
|
||||||
TGT_CBM510,
|
TGT_CBM510,
|
||||||
TGT_CBM610,
|
TGT_CBM610,
|
||||||
|
TGT_OSIC1P,
|
||||||
TGT_PET,
|
TGT_PET,
|
||||||
TGT_BBC,
|
TGT_BBC,
|
||||||
TGT_APPLE2,
|
TGT_APPLE2,
|
||||||
|
Loading…
Reference in New Issue
Block a user