From 49bd52092578989f1f5cbfb9f8cc0f463657de22 Mon Sep 17 00:00:00 2001 From: Curtis F Kaylor Date: Sat, 3 Mar 2018 13:49:34 -0500 Subject: [PATCH] Moved compiler source code to ./src directory --- asm6502/asm6502 | Bin 0 -> 27770 bytes asm6502.c => asm6502/asm6502.c | 0 c02.ppj | 266 ++++++++++++++++----------------- asm.c => src/asm.c | 0 asm.h => src/asm.h | 0 c02.c => src/c02.c | 0 common.c => src/common.c | 0 common.h => src/common.h | 0 cond.c => src/cond.c | 0 cond.h => src/cond.h | 0 dclrtn.c => src/dclrtn.c | 0 dclrtn.h => src/dclrtn.h | 0 expr.c => src/expr.c | 0 expr.h => src/expr.h | 0 files.c => src/files.c | 0 files.h => src/files.h | 0 include.c => src/include.c | 0 include.h => src/include.h | 0 label.c => src/label.c | 0 label.h => src/label.h | 0 parse.c => src/parse.c | 0 parse.h => src/parse.h | 0 stmnt.c => src/stmnt.c | 0 stmnt.h => src/stmnt.h | 0 vars.c => src/vars.c | 0 vars.h => src/vars.h | 0 test/test.h | 9 -- 27 files changed, 132 insertions(+), 143 deletions(-) create mode 100644 asm6502/asm6502 rename asm6502.c => asm6502/asm6502.c (100%) rename asm.c => src/asm.c (100%) rename asm.h => src/asm.h (100%) rename c02.c => src/c02.c (100%) rename common.c => src/common.c (100%) rename common.h => src/common.h (100%) rename cond.c => src/cond.c (100%) rename cond.h => src/cond.h (100%) rename dclrtn.c => src/dclrtn.c (100%) rename dclrtn.h => src/dclrtn.h (100%) rename expr.c => src/expr.c (100%) rename expr.h => src/expr.h (100%) rename files.c => src/files.c (100%) rename files.h => src/files.h (100%) rename include.c => src/include.c (100%) rename include.h => src/include.h (100%) rename label.c => src/label.c (100%) rename label.h => src/label.h (100%) rename parse.c => src/parse.c (100%) rename parse.h => src/parse.h (100%) rename stmnt.c => src/stmnt.c (100%) rename stmnt.h => src/stmnt.h (100%) rename vars.c => src/vars.c (100%) rename vars.h => src/vars.h (100%) delete mode 100644 test/test.h diff --git a/asm6502/asm6502 b/asm6502/asm6502 new file mode 100644 index 0000000000000000000000000000000000000000..61cb747abbd5cfd4641301527cb8fb77ab919077 GIT binary patch literal 27770 zcmeHwdwf*Ywf~+;4uk-i@H8mOQK3A95FTQXhcl3Y3Gz}1qJWc-OdvI{CTDonJm@4| z#v?6l{q={vwWYPUwZHavOK&YjTS)>+Xtg%B){B+)Qi+;zphit)l<54vYd=oTOhSLQ z{r _j2;dUTd$l_S$Q&z4qhmb7rQ&yK%6%$%S&dImsJLL&DfPYZ^pd2*|k;Kvw6EoKglj%EdodRF$*-Zc{Khh28jR0 zg(sdrfBejIb(g-j@B8kFnd7=2e4gZo;-7R-yBhJ&_GWV0FrZVfeQ5mK*B85pJkT`@ z#E}CqZn_M8?PchDQ)U2E*OXNnrOcnd#=k89w%<<*{k29>jp45-Dysx#TSZl+r1;tL zmHA7S`e$d)&c2yUaLT_vj3^HIhjA+H3|?I}gk(M=^RYFB9HW>>m zjt)kuVwVWIjV^~Mmz!dvQ+%o`$3|CUj(E8?y4@bPjcy;8J{z5EQrB7=UG*LDHrnWL zgmo3#=;;=fF<n$Og(U7<5ybE~0sZ35F5dM53J5Q^VC60G>7(MVkr+`uTmotTlc zaa@zqDNnA7bnv{B^5mjOE6;zJk36|1a+v4er98PLa){^OqCB}Ga)9Swqdd7F(#Z3_ zr#v-1QqA+fp?n(U3wi#Rl&7Xf)*?UaLVozgdwt>8e4)zdF=w4;<$ z@@=sc$os;_eQj^u=5uuTUW^4%_$dC;I69-t^Km>L zg0()=+u<`aO>ejFAe`tr!d%B%!|h#v`Y0aX=Z!))b2ZOGb3+wp9HF{1to|xr$lHOi zrE(1N3um~RQXyb^&xE}_oF4YZ+O_Ym(oq}t34!QnUPpUsvyRaZd0u^}uDhZBjdpD$ z+Ci784FeX|=Ap2uqp3pEk$r0ulEA z1cUZiuigINUW&)tz2{*Yg)o8WINn{R=q~a}YRG%uK_SEY>`%~B0X=5H`D2;0ZLZh{ zRi^fDh`LbB>1y^N&bV)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_Rxi8Lv&!rDuFiwmq74d9C|1J!d3Ue&tjb>sDI16X<_YsJ zU%6(9XQhA5vSsVM>;3CJOICVG9sgOB;@Tj$mhsOIF`S3uvvX)loZ=7gW6-MV((-K#AEtrgmS<&u7v1}+bh?vmOn z|8{)D3r5n9+Tgcu$}0WzK}g0enFDu~Rif^4Y7;(Mm;>X>E4Kzq)z9T5)&j4h-L~$h zhCoN4+WO6$!~)dC<%q@rKEozEtsFf|?l0j^3y`JwtR&kW*j0>=ZTbB;t(KDf2X`vD z82=%kMAiNkJN$Rb!MK#%ijhdVsekFme-fp|FZ?9Z{C)(R93iM)xMa2nNHwMt!cl#+ Rl$DFXlC9^Vfv~5Z`ad$4i7Eg9 literal 0 HcmV?d00001 diff --git a/asm6502.c b/asm6502/asm6502.c similarity index 100% rename from asm6502.c rename to asm6502/asm6502.c diff --git a/c02.ppj b/c02.ppj index 5222616..518be17 100644 --- a/c02.ppj +++ b/c02.ppj @@ -4,7 +4,7 @@ # POC_PROJECT_VERSION = 7.00# -POC_PROJECT_TYPE = 3# +POC_PROJECT_TYPE = 13# POC_PROJECT_OUTPUTDIR = output# POC_PROJECT_RESULTDIR = .# POC_PROJECT_ARGUMENTS = # @@ -16,186 +16,184 @@ AS = poasm.exe# RC = porc.exe# LINK = polink.exe# SIGN = posign.exe# -CCFLAGS = -std:C11 -Tx86-coff -Ot -Ob1 -fp:precise -W0 -Gd -Zx -Go# -ASFLAGS = -AIA32# +CCFLAGS = -Tx64-coff -Ot -W1 -std:C11# +ASFLAGS = -AAMD64# 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# INCLUDE = $(PellesCDir)\Include\Win;$(PellesCDir)\Include# -LIB = $(PellesCDir)\Lib\Win;$(PellesCDir)\Lib# +LIB = $(PellesCDir)\Lib\Win64;$(PellesCDir)\Lib# # # Build c02.exe. # c02.exe: \ - output\asm.obj \ output\c02.obj \ + output\asm.obj \ output\common.obj \ output\cond.obj \ + output\dclrtn.obj \ output\expr.obj \ output\files.obj \ output\include.obj \ output\label.obj \ output\parse.obj \ output\stmnt.obj \ - output\vars.obj \ - output\dclrtn.obj + output\vars.obj $(LINK) $(LINKFLAGS) -out:"$@" $** # # Build c02.obj. # output\c02.obj: \ - c02.c \ - asm.h \ - common.h \ - cond.h \ - dclrtn.h \ - expr.h \ - files.h \ - include.h \ - label.h \ - parse.h \ - stmnt.h \ - vars.h + src\c02.c \ + src\asm.h \ + src\common.h \ + src\cond.h \ + src\dclrtn.h \ + src\expr.h \ + src\files.h \ + src\include.h \ + src\label.h \ + src\parse.h \ + src\stmnt.h \ + src\vars.h $(CC) $(CCFLAGS) "$!" -Fo"$@" # # Build asm.obj. # output\asm.obj: \ - asm.c \ - asm.h \ - common.h \ - files.h + src\asm.c \ + src\asm.h \ + src\common.h \ + src\files.h $(CC) $(CCFLAGS) "$!" -Fo"$@" # # Build common.obj. # output\common.obj: \ - common.c \ - common.h + src\common.c \ + src\common.h $(CC) $(CCFLAGS) "$!" -Fo"$@" # # Build cond.obj. # output\cond.obj: \ - cond.c \ - asm.h \ - common.h \ - cond.h \ - expr.h \ - label.h \ - parse.h \ - 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 + src\cond.c \ + src\asm.h \ + src\common.h \ + src\cond.h \ + src\expr.h \ + src\label.h \ + src\parse.h \ + src\vars.h $(CC) $(CCFLAGS) "$!" -Fo"$@" # # Build dclrtn.obj. # output\dclrtn.obj: \ - dclrtn.c \ - asm.h \ - common.h \ - cond.h \ - dclrtn.h \ - expr.h \ - label.h \ - parse.h \ - stmnt.h \ - vars.h + src\dclrtn.c \ + src\asm.h \ + src\common.h \ + src\cond.h \ + src\dclrtn.h \ + src\expr.h \ + src\label.h \ + src\parse.h \ + src\stmnt.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"$@" .SILENT: - -.EXCLUDEDFILES: diff --git a/asm.c b/src/asm.c similarity index 100% rename from asm.c rename to src/asm.c diff --git a/asm.h b/src/asm.h similarity index 100% rename from asm.h rename to src/asm.h diff --git a/c02.c b/src/c02.c similarity index 100% rename from c02.c rename to src/c02.c diff --git a/common.c b/src/common.c similarity index 100% rename from common.c rename to src/common.c diff --git a/common.h b/src/common.h similarity index 100% rename from common.h rename to src/common.h diff --git a/cond.c b/src/cond.c similarity index 100% rename from cond.c rename to src/cond.c diff --git a/cond.h b/src/cond.h similarity index 100% rename from cond.h rename to src/cond.h diff --git a/dclrtn.c b/src/dclrtn.c similarity index 100% rename from dclrtn.c rename to src/dclrtn.c diff --git a/dclrtn.h b/src/dclrtn.h similarity index 100% rename from dclrtn.h rename to src/dclrtn.h diff --git a/expr.c b/src/expr.c similarity index 100% rename from expr.c rename to src/expr.c diff --git a/expr.h b/src/expr.h similarity index 100% rename from expr.h rename to src/expr.h diff --git a/files.c b/src/files.c similarity index 100% rename from files.c rename to src/files.c diff --git a/files.h b/src/files.h similarity index 100% rename from files.h rename to src/files.h diff --git a/include.c b/src/include.c similarity index 100% rename from include.c rename to src/include.c diff --git a/include.h b/src/include.h similarity index 100% rename from include.h rename to src/include.h diff --git a/label.c b/src/label.c similarity index 100% rename from label.c rename to src/label.c diff --git a/label.h b/src/label.h similarity index 100% rename from label.h rename to src/label.h diff --git a/parse.c b/src/parse.c similarity index 100% rename from parse.c rename to src/parse.c diff --git a/parse.h b/src/parse.h similarity index 100% rename from parse.h rename to src/parse.h diff --git a/stmnt.c b/src/stmnt.c similarity index 100% rename from stmnt.c rename to src/stmnt.c diff --git a/stmnt.h b/src/stmnt.h similarity index 100% rename from stmnt.h rename to src/stmnt.h diff --git a/vars.c b/src/vars.c similarity index 100% rename from vars.c rename to src/vars.c diff --git a/vars.h b/src/vars.h similarity index 100% rename from vars.h rename to src/vars.h diff --git a/test/test.h b/test/test.h deleted file mode 100644 index 8f48ea2..0000000 --- a/test/test.h +++ /dev/null @@ -1,9 +0,0 @@ -/* Generic 6502 header file */ - -//int getchar() = $f000 -//void putchar() = $f002 - -#label exit $FF00 - -#origin $0300 -