initial commit

This commit is contained in:
m
2024-12-05 15:22:04 +08:00
commit 5dbf437175
106 changed files with 20207 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import sys
import argparse
parser = argparse.ArgumentParser(prog="preprocess.py")
parser.add_argument("input", nargs='?', help="input file",
type=argparse.FileType('r'), default=sys.stdin)
parser.add_argument("-o", "--output", nargs='?', help="output file",
type=argparse.FileType('w'), default=sys.stdout)
args = parser.parse_args(sys.argv[1:])
contents = args.input.read()
args.output.write(
" ".join([str(ord(c)) for c in contents])
)
args.output.close()
+1
View File
@@ -0,0 +1 @@
you will need fpc (free pascal compiler) to run pascal programs
+1
View File
@@ -0,0 +1 @@
you will need pladclc from https://github.com/plasmaofthedawn/pladcl on the path to run pladclc programs
+4
View File
@@ -0,0 +1,4 @@
since i'm already super familiar with python all my python lines can fit on a single line
also no imports that's cheating
you need python3 and whatnot
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
z80 uses zasm to compile and z80sim from z80pack
.
i edited z80sim to not print out that giant logo at the beginning but otherwise it's just the newest one built. the binary is included though lol.
the output for day13part1 is in the hl register
BIN
View File
Binary file not shown.