diff --git a/c02.ppj b/c02.ppj new file mode 100644 index 0000000..f51393f --- /dev/null +++ b/c02.ppj @@ -0,0 +1,179 @@ +# +# PROJECT FILE generated by "Pelles C for Windows, version 8.00". +# WARNING! DO NOT EDIT THIS FILE. +# + +POC_PROJECT_VERSION = 7.00# +POC_PROJECT_TYPE = 3# +POC_PROJECT_OUTPUTDIR = output# +POC_PROJECT_RESULTDIR = .# +POC_PROJECT_ARGUMENTS = # +POC_PROJECT_WORKPATH = # +POC_PROJECT_EXECUTOR = # +POC_PROJECT_ZIPEXTRA = # +CC = pocc.exe# +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# +RCFLAGS = -r# +LINKFLAGS = -machine:x86 -subsystem:console kernel32.lib advapi32.lib delayimp.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# + +# +# Build c02.exe. +# +c02.exe: \ + output\c02.obj \ + output\asm.obj \ + output\common.obj \ + output\cond.obj \ + output\expr.obj \ + output\files.obj \ + output\include.obj \ + output\label.obj \ + output\parse.obj \ + output\stmnt.obj \ + output\vars.obj + $(LINK) $(LINKFLAGS) -out:"$@" $** + +# +# Build c02.obj. +# +output\c02.obj: \ + c02.c \ + asm.h \ + common.h \ + cond.h \ + expr.h \ + files.h \ + include.h \ + label.h \ + parse.h \ + stmnt.h \ + vars.h + $(CC) $(CCFLAGS) "$!" -Fo"$@" + +# +# Build asm.obj. +# +output\asm.obj: \ + asm.c \ + asm.h \ + common.h \ + files.h \ + parse.h + $(CC) $(CCFLAGS) "$!" -Fo"$@" + +# +# Build common.obj. +# +output\common.obj: \ + common.c \ + 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 \ + files.h \ + include.h \ + parse.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 \ + common.h \ + files.h \ + parse.h + $(CC) $(CCFLAGS) "$!" -Fo"$@" + +# +# Build stmnt.obj. +# +output\stmnt.obj: \ + stmnt.c \ + asm.h \ + common.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"$@" + +.EXCLUDEDFILES: + +.SILENT: diff --git a/c02.ppx b/c02.ppx new file mode 100644 index 0000000..3a1e62f --- /dev/null +++ b/c02.ppx @@ -0,0 +1,43 @@ + + + + + + + + + -8 + -31 + 952 + 422 + 1 + 1 + + + + + + + 52 + 52 + 760 + 362 + 0 + 0 + + + + + + 78 + 78 + 786 + 388 + 0 + 0 + + + + + + diff --git a/test/srec2asc.pas b/test/srec2asc.pas new file mode 100644 index 0000000..77af8e8 --- /dev/null +++ b/test/srec2asc.pas @@ -0,0 +1,42 @@ +Program Srec2asc; +{ SREC2ASC - Convert Motorola S-Record file to } +{ POM 1 ASCII File } +{ (C) 2017 - Curtis F Kaylor } + +Uses + SysUtils, StrUtils; + +Const + SrecExt = '.srec'; + AscExt = '.asc'; + +Var + SrecFile: TextFile; {Input File} + AscFile: TextFile; {Output File} + +Procedure OpenSrecFile; +Var + LastDot, LastSlash: Integer; + OpenResult: Integer; +Begin + SrecFileName := ParamStr(1); + LastDot := RPos('.', SrecFileName); + LastSlash := RPos('/', SrecFileName); + If LastDot <= LastSlash Then + SrecFileName := SrecFileName + SrecExt; + If Debug Then WriteLn('Opening File ', SrecFileName); + Assign(SrecFile, SrecFileName); + {$I-} + Reset(SrecFile); + OpenResult := IOResult; + {$I+} + If OpenResult <> 0 Then + Error('Error Opening Input File ' + SrecFileName); +End; + + +Begin + + + +End; diff --git a/vcs/notes/timer.py b/vcs/notes/timer.py new file mode 100644 index 0000000..c9869cf --- /dev/null +++ b/vcs/notes/timer.py @@ -0,0 +1,9 @@ +#!/usr/bin/python + +#Print Atari 2600 Timer Values +#Value to Write to TIM64T to wait desired number of scanlines + +for scanlines in range(0,262): + print scanlines, "\t", scanlines*72/64, "\t", scanlines*72.0/64 + + diff --git a/vic20/.prg b/vic20/.prg new file mode 100644 index 0000000..e69de29 diff --git a/vic20/blocks.prg b/vic20/blocks.prg new file mode 100644 index 0000000..c61b64d Binary files /dev/null and b/vic20/blocks.prg differ diff --git a/vic20/dir.prg b/vic20/dir.prg new file mode 100644 index 0000000..c18fa91 Binary files /dev/null and b/vic20/dir.prg differ diff --git a/vic20/echo.prg b/vic20/echo.prg new file mode 100644 index 0000000..4492719 Binary files /dev/null and b/vic20/echo.prg differ diff --git a/vic20/fgetc.prg b/vic20/fgetc.prg new file mode 100644 index 0000000..d87bd3b Binary files /dev/null and b/vic20/fgetc.prg differ diff --git a/vic20/fgets.prg b/vic20/fgets.prg new file mode 100644 index 0000000..7da0968 Binary files /dev/null and b/vic20/fgets.prg differ diff --git a/vic20/filetest.prg b/vic20/filetest.prg new file mode 100644 index 0000000..7c6c7d0 Binary files /dev/null and b/vic20/filetest.prg differ diff --git a/vic20/fputc.prg b/vic20/fputc.prg new file mode 100644 index 0000000..2ba576a Binary files /dev/null and b/vic20/fputc.prg differ diff --git a/vic20/fputs.prg b/vic20/fputs.prg new file mode 100644 index 0000000..63bf937 Binary files /dev/null and b/vic20/fputs.prg differ diff --git a/vic20/fread.prg b/vic20/fread.prg new file mode 100644 index 0000000..e88609c Binary files /dev/null and b/vic20/fread.prg differ diff --git a/vic20/fwrite.prg b/vic20/fwrite.prg new file mode 100644 index 0000000..85623ba Binary files /dev/null and b/vic20/fwrite.prg differ diff --git a/vic20/mlstub (Case Conflict).prg b/vic20/mlstub (Case Conflict).prg new file mode 100644 index 0000000..8fea10d Binary files /dev/null and b/vic20/mlstub (Case Conflict).prg differ diff --git a/vic20/mlstub.prg b/vic20/mlstub.prg new file mode 100644 index 0000000..a2e76bc Binary files /dev/null and b/vic20/mlstub.prg differ diff --git a/vic20/pointers.prg b/vic20/pointers.prg new file mode 100644 index 0000000..037ddb0 Binary files /dev/null and b/vic20/pointers.prg differ diff --git a/vic20/readfile.prg b/vic20/readfile.prg new file mode 100644 index 0000000..9917f25 Binary files /dev/null and b/vic20/readfile.prg differ diff --git a/vic20/strings.prg b/vic20/strings.prg new file mode 100644 index 0000000..bdc0191 Binary files /dev/null and b/vic20/strings.prg differ diff --git a/vic20/test20.prg b/vic20/test20.prg new file mode 100644 index 0000000..f555472 Binary files /dev/null and b/vic20/test20.prg differ diff --git a/vic20/testfile.prg b/vic20/testfile.prg new file mode 100644 index 0000000..8bf3b24 Binary files /dev/null and b/vic20/testfile.prg differ