mirror of
https://github.com/OlivierGuinart/CC65BuildSolution.git
synced 2025-03-13 05:32:19 +00:00
BitCoin April's fool program added.
This commit is contained in:
parent
edce834daf
commit
9eb627dff9
40
BitCoin/BitCoin.c
Normal file
40
BitCoin/BitCoin.c
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <conio.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* 1MHZ timing loop settings - increase for faster machines */
|
||||||
|
#define YTIME 60L
|
||||||
|
#define XTIME 2L
|
||||||
|
char wait(unsigned duration)
|
||||||
|
{
|
||||||
|
char c = 0;
|
||||||
|
long y, x;
|
||||||
|
|
||||||
|
while (duration > 0) {
|
||||||
|
for (y = 0; y < YTIME; y++) {
|
||||||
|
for (x = 0; x < XTIME; x++) {
|
||||||
|
if (kbhit()) {
|
||||||
|
c = cgetc();
|
||||||
|
/* clear keyboard buffer */
|
||||||
|
while (kbhit())cgetc();
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
duration--;
|
||||||
|
}
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
|
void main(void)
|
||||||
|
{
|
||||||
|
int i, j;
|
||||||
|
for (i = 21; ; i++)
|
||||||
|
{
|
||||||
|
for (j = 0; j < 60; j++)
|
||||||
|
{
|
||||||
|
printf("m 09:%d:%02d Speed 0.01 h/s [A8+0:R0+0:F0]", i, j);
|
||||||
|
wait(9);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
85
BitCoin/BitCoin.vcxproj
Normal file
85
BitCoin/BitCoin.vcxproj
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.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>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{94430FF5-BA91-47F9-AF5B-457510728F0C}</ProjectGuid>
|
||||||
|
<Keyword>MakeFileProj</Keyword>
|
||||||
|
<SccProjectName>SAK</SccProjectName>
|
||||||
|
<SccAuxPath>SAK</SccAuxPath>
|
||||||
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
|
<SccProvider>SAK</SccProvider>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Makefile</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Makefile</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
</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'">
|
||||||
|
<NMakeOutput>$(PRG)</NMakeOutput>
|
||||||
|
<NMakePreprocessorDefinitions>
|
||||||
|
</NMakePreprocessorDefinitions>
|
||||||
|
<ExecutablePath>$(PATH);</ExecutablePath>
|
||||||
|
<IncludePath>$(CC65ROOT)\include;</IncludePath>
|
||||||
|
<ReferencePath />
|
||||||
|
<LibraryPath>$(CC65ROOT)lib;</LibraryPath>
|
||||||
|
<LibraryWPath />
|
||||||
|
<SourcePath />
|
||||||
|
<ExcludePath />
|
||||||
|
<NMakeBuildCommandLine>nmake.exe</NMakeBuildCommandLine>
|
||||||
|
<NMakeReBuildCommandLine>nmake.exe all</NMakeReBuildCommandLine>
|
||||||
|
<NMakeCleanCommandLine>nmake.exe clean</NMakeCleanCommandLine>
|
||||||
|
<NMakeIncludeSearchPath>D:\CC65\include;C:\Users\Olivier\SkyDrive\Apple\CC65\include;</NMakeIncludeSearchPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<NMakeOutput>$(PRG)</NMakeOutput>
|
||||||
|
<NMakePreprocessorDefinitions>
|
||||||
|
</NMakePreprocessorDefinitions>
|
||||||
|
<ExecutablePath>$(PATH);</ExecutablePath>
|
||||||
|
<IncludePath>$(CC65ROOT)\include;</IncludePath>
|
||||||
|
<ReferencePath />
|
||||||
|
<LibraryPath>$(CC65ROOT)lib;</LibraryPath>
|
||||||
|
<LibraryWPath />
|
||||||
|
<SourcePath />
|
||||||
|
<ExcludePath />
|
||||||
|
<NMakeIncludeSearchPath>D:\CC65\include;C:\Users\Olivier\SkyDrive\Apple\CC65\include;</NMakeIncludeSearchPath>
|
||||||
|
<NMakeBuildCommandLine>nmake.exe</NMakeBuildCommandLine>
|
||||||
|
<NMakeReBuildCommandLine>nmake.exe all</NMakeReBuildCommandLine>
|
||||||
|
<NMakeCleanCommandLine>nmake.exe clean</NMakeCleanCommandLine>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="BitCoin.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="MAKEFILE" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
61
BitCoin/MAKEFILE
Normal file
61
BitCoin/MAKEFILE
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
PRG=BitCoin
|
||||||
|
SYSTEM=apple2enh
|
||||||
|
#L'ordinateur Maison s'appelle M...
|
||||||
|
!if "$(COMPUTERNAME)" == "M"
|
||||||
|
# That's the location where I have programs such as AppleWin, or a DOS blank disk image
|
||||||
|
MyAppleFolder="C:\Users\Olivier\OneDrive\Apple"
|
||||||
|
!else
|
||||||
|
#Environnement au bureau...
|
||||||
|
MyAppleFolder=D:
|
||||||
|
!endif
|
||||||
|
|
||||||
|
# Misc. vars
|
||||||
|
# https://github.com/AppleWin/AppleWin
|
||||||
|
APPLEWIN=$(MyAppleFolder)\AppleWin\Applewin.exe
|
||||||
|
# http://applecommander.sourceforge.net/
|
||||||
|
APPLECOMMANDER=$(MyAppleFolder)\AppleCommander-1.3.5-ac.jar
|
||||||
|
ACJAR=java.exe -jar $(APPLECOMMANDER)
|
||||||
|
CC65ROOT=$(MyDrive)\cc65
|
||||||
|
CC65=$(CC65ROOT)\bin\CC65.exe
|
||||||
|
CL65=$(CC65ROOT)\bin\CL65.exe
|
||||||
|
|
||||||
|
|
||||||
|
$(PRG): $(PRG).c
|
||||||
|
@Echo ***************************************************************
|
||||||
|
@Echo *** On compile l'exécutable
|
||||||
|
@Echo ***************************************************************
|
||||||
|
# Quand je compilais avec les chaines de caractere dans text.s, j'utilisais la ligne suivante
|
||||||
|
# $(CL65) --verbose -O -t $(SYSTEM) $(PRG).c text.s
|
||||||
|
$(CL65) --verbose -O -t $(SYSTEM) $(PRG).c
|
||||||
|
|
||||||
|
GetFloppyAndCopyDSK:
|
||||||
|
@Echo ***************************************************************
|
||||||
|
@Echo *** On copie la disquette vierge à partir du répertoire parent
|
||||||
|
@Echo *** et on copie dessus les fichiers executables et autres
|
||||||
|
@Echo ***************************************************************
|
||||||
|
copy /Y $(MyAppleFolder)\prodos.dsk .\$(PRG).dsk
|
||||||
|
$(ACJAR) -cc65 $(PRG).dsk $(PRG) bin < $(PRG)
|
||||||
|
|
||||||
|
SaveAssemblyFile:
|
||||||
|
# To get the non-optimized assembly source file and keep it (in the .backup file)
|
||||||
|
@Echo ***************************************************************
|
||||||
|
@Echo *** On génère le fichier source en assembleur, pour référence
|
||||||
|
@Echo ***************************************************************
|
||||||
|
$(CC65) -v -t $(SYSTEM) $(PRG).c text.s
|
||||||
|
copy /Y $(PRG).s $(PRG).s.bak
|
||||||
|
|
||||||
|
LaunchAppleWin:
|
||||||
|
@Echo ***************************************************************
|
||||||
|
@Echo *** On lance le tout dans AppleWin
|
||||||
|
@Echo ***************************************************************
|
||||||
|
$(APPLEWIN) -d1 $(PRG).dsk
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@Echo ***************************************************************
|
||||||
|
@Echo *** On efface les fichiers programme, objet et backup, et dsk
|
||||||
|
@Echo ***************************************************************
|
||||||
|
del $(PRG) *.o *.bak *.dsk
|
||||||
|
|
||||||
|
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 14
|
# Visual Studio 15
|
||||||
VisualStudioVersion = 14.0.24720.0
|
VisualStudioVersion = 15.0.26430.6
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TextSlides", "TextSlides\TextSlides.vcxproj", "{A119D358-6E9D-4BDA-B5D8-1659DA9BF571}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TextSlides", "TextSlides\TextSlides.vcxproj", "{A119D358-6E9D-4BDA-B5D8-1659DA9BF571}"
|
||||||
EndProject
|
EndProject
|
||||||
@ -9,6 +9,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld\He
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PerfTest", "PerfTest\PerfTest.vcxproj", "{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PerfTest", "PerfTest\PerfTest.vcxproj", "{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BitCoin", "BitCoin\BitCoin.vcxproj", "{94430FF5-BA91-47F9-AF5B-457510728F0C}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
@ -27,6 +29,10 @@ Global
|
|||||||
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Debug|Win32.Build.0 = Debug|Win32
|
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Release|Win32.ActiveCfg = Release|Win32
|
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Release|Win32.Build.0 = Release|Win32
|
{EC61A5AA-7BC1-418F-9B7E-F2100F30714B}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{94430FF5-BA91-47F9-AF5B-457510728F0C}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{94430FF5-BA91-47F9-AF5B-457510728F0C}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{94430FF5-BA91-47F9-AF5B-457510728F0C}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{94430FF5-BA91-47F9-AF5B-457510728F0C}.Release|Win32.Build.0 = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -52,9 +52,9 @@ LaunchAppleWin:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
@Echo *** On efface les fichiers programme, objet et backup
|
@Echo *** On efface les fichiers programme, objet et backup, et dsk
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
del $(PRG) *.o *.bak
|
del $(PRG) *.o *.bak *.dsk
|
||||||
|
|
||||||
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@ LaunchAppleWin:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
@Echo *** On efface les fichiers programme, objet et backup
|
@Echo *** On efface les fichiers programme, objet et backup, et dsk
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
del $(PRG) *.o *.s *.bak
|
del $(PRG) *.o *.bak *.dsk
|
||||||
|
|
||||||
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
||||||
|
|
||||||
|
Binary file not shown.
@ -52,9 +52,9 @@ LaunchAppleWin:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
@Echo *** On efface les fichiers programme, objet et backup
|
@Echo *** On efface les fichiers programme, objet et backup, et dsk
|
||||||
@Echo ***************************************************************
|
@Echo ***************************************************************
|
||||||
del $(PRG) *.o *.bak
|
del $(PRG) *.o *.bak *.dsk
|
||||||
|
|
||||||
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
all: clean SaveAssemblyFile $(PRG) GetFloppyAndCopyDSK LaunchAppleWin
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user