1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-07-07 18:28:58 +00:00

Moved compiler source code to ./src directory

This commit is contained in:
Curtis F Kaylor 2018-03-03 13:49:34 -05:00
parent 341b38f012
commit 49bd520925
27 changed files with 132 additions and 143 deletions

BIN
asm6502/asm6502 Normal file

Binary file not shown.

266
c02.ppj
View File

@ -4,7 +4,7 @@
# #
POC_PROJECT_VERSION = 7.00# POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3# POC_PROJECT_TYPE = 13#
POC_PROJECT_OUTPUTDIR = output# POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = .# POC_PROJECT_RESULTDIR = .#
POC_PROJECT_ARGUMENTS = # POC_PROJECT_ARGUMENTS = #
@ -16,186 +16,184 @@ AS = poasm.exe#
RC = porc.exe# RC = porc.exe#
LINK = polink.exe# LINK = polink.exe#
SIGN = posign.exe# SIGN = posign.exe#
CCFLAGS = -std:C11 -Tx86-coff -Ot -Ob1 -fp:precise -W0 -Gd -Zx -Go# CCFLAGS = -Tx64-coff -Ot -W1 -std:C11#
ASFLAGS = -AIA32# ASFLAGS = -AAMD64#
RCFLAGS = -r# RCFLAGS = -r#
LINKFLAGS = -machine:x86 -subsystem:console kernel32.lib advapi32.lib delayimp.lib# LINKFLAGS = -machine:amd64 -subsystem:console kernel32.lib advapi32.lib delayimp64.lib#
SIGNFLAGS = -location:CU -store:MY -timeurl:http://timestamp.verisign.com/scripts/timstamp.dll -errkill# SIGNFLAGS = -location:CU -store:MY -timeurl:http://timestamp.verisign.com/scripts/timstamp.dll -errkill#
INCLUDE = $(PellesCDir)\Include\Win;$(PellesCDir)\Include# INCLUDE = $(PellesCDir)\Include\Win;$(PellesCDir)\Include#
LIB = $(PellesCDir)\Lib\Win;$(PellesCDir)\Lib# LIB = $(PellesCDir)\Lib\Win64;$(PellesCDir)\Lib#
# #
# Build c02.exe. # Build c02.exe.
# #
c02.exe: \ c02.exe: \
output\asm.obj \
output\c02.obj \ output\c02.obj \
output\asm.obj \
output\common.obj \ output\common.obj \
output\cond.obj \ output\cond.obj \
output\dclrtn.obj \
output\expr.obj \ output\expr.obj \
output\files.obj \ output\files.obj \
output\include.obj \ output\include.obj \
output\label.obj \ output\label.obj \
output\parse.obj \ output\parse.obj \
output\stmnt.obj \ output\stmnt.obj \
output\vars.obj \ output\vars.obj
output\dclrtn.obj
$(LINK) $(LINKFLAGS) -out:"$@" $** $(LINK) $(LINKFLAGS) -out:"$@" $**
# #
# Build c02.obj. # Build c02.obj.
# #
output\c02.obj: \ output\c02.obj: \
c02.c \ src\c02.c \
asm.h \ src\asm.h \
common.h \ src\common.h \
cond.h \ src\cond.h \
dclrtn.h \ src\dclrtn.h \
expr.h \ src\expr.h \
files.h \ src\files.h \
include.h \ src\include.h \
label.h \ src\label.h \
parse.h \ src\parse.h \
stmnt.h \ src\stmnt.h \
vars.h src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@" $(CC) $(CCFLAGS) "$!" -Fo"$@"
# #
# Build asm.obj. # Build asm.obj.
# #
output\asm.obj: \ output\asm.obj: \
asm.c \ src\asm.c \
asm.h \ src\asm.h \
common.h \ src\common.h \
files.h src\files.h
$(CC) $(CCFLAGS) "$!" -Fo"$@" $(CC) $(CCFLAGS) "$!" -Fo"$@"
# #
# Build common.obj. # Build common.obj.
# #
output\common.obj: \ output\common.obj: \
common.c \ src\common.c \
common.h src\common.h
$(CC) $(CCFLAGS) "$!" -Fo"$@" $(CC) $(CCFLAGS) "$!" -Fo"$@"
# #
# Build cond.obj. # Build cond.obj.
# #
output\cond.obj: \ output\cond.obj: \
cond.c \ src\cond.c \
asm.h \ src\asm.h \
common.h \ src\common.h \
cond.h \ src\cond.h \
expr.h \ src\expr.h \
label.h \ src\label.h \
parse.h \ src\parse.h \
vars.h src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build expr.obj.
#
output\expr.obj: \
expr.c \
asm.h \
common.h \
expr.h \
label.h \
parse.h \
vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build files.obj.
#
output\files.obj: \
files.c \
common.h \
files.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build include.obj.
#
output\include.obj: \
include.c \
asm.h \
common.h \
dclrtn.h \
files.h \
include.h \
label.h \
parse.h \
stmnt.h \
vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build label.obj.
#
output\label.obj: \
label.c \
asm.h \
common.h \
label.h \
parse.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build parse.obj.
#
output\parse.obj: \
parse.c \
asm.h \
common.h \
files.h \
parse.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build stmnt.obj.
#
output\stmnt.obj: \
stmnt.c \
asm.h \
common.h \
cond.h \
expr.h \
label.h \
parse.h \
stmnt.h \
vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build vars.obj.
#
output\vars.obj: \
vars.c \
asm.h \
common.h \
files.h \
label.h \
parse.h \
vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@" $(CC) $(CCFLAGS) "$!" -Fo"$@"
# #
# Build dclrtn.obj. # Build dclrtn.obj.
# #
output\dclrtn.obj: \ output\dclrtn.obj: \
dclrtn.c \ src\dclrtn.c \
asm.h \ src\asm.h \
common.h \ src\common.h \
cond.h \ src\cond.h \
dclrtn.h \ src\dclrtn.h \
expr.h \ src\expr.h \
label.h \ src\label.h \
parse.h \ src\parse.h \
stmnt.h \ src\stmnt.h \
vars.h src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build expr.obj.
#
output\expr.obj: \
src\expr.c \
src\asm.h \
src\common.h \
src\expr.h \
src\label.h \
src\parse.h \
src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build files.obj.
#
output\files.obj: \
src\files.c \
src\common.h \
src\files.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build include.obj.
#
output\include.obj: \
src\include.c \
src\asm.h \
src\common.h \
src\dclrtn.h \
src\files.h \
src\include.h \
src\label.h \
src\parse.h \
src\stmnt.h \
src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build label.obj.
#
output\label.obj: \
src\label.c \
src\asm.h \
src\common.h \
src\label.h \
src\parse.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build parse.obj.
#
output\parse.obj: \
src\parse.c \
src\asm.h \
src\common.h \
src\files.h \
src\parse.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build stmnt.obj.
#
output\stmnt.obj: \
src\stmnt.c \
src\asm.h \
src\common.h \
src\cond.h \
src\expr.h \
src\label.h \
src\parse.h \
src\stmnt.h \
src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@"
#
# Build vars.obj.
#
output\vars.obj: \
src\vars.c \
src\asm.h \
src\common.h \
src\files.h \
src\label.h \
src\parse.h \
src\vars.h
$(CC) $(CCFLAGS) "$!" -Fo"$@" $(CC) $(CCFLAGS) "$!" -Fo"$@"
.SILENT: .SILENT:
.EXCLUDEDFILES:

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -1,9 +0,0 @@
/* Generic 6502 header file */
//int getchar() = $f000
//void putchar() = $f002
#label exit $FF00
#origin $0300