mirror of
https://github.com/plasmaofthedawn/adventofcode.git
synced 2025-08-27 11:22:03 -05:00
initial commit
This commit is contained in:
18
utilities/dc/preprocess.py
Normal file
18
utilities/dc/preprocess.py
Normal 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
utilities/pascal/readme.md
Normal file
1
utilities/pascal/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
you will need fpc (free pascal compiler) to run pascal programs
|
1
utilities/pladcl/readme.md
Normal file
1
utilities/pladcl/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
you will need pladclc from https://github.com/plasmaofthedawn/pladcl on the path to run pladclc programs
|
4
utilities/python/readme.md
Normal file
4
utilities/python/readme.md
Normal 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
|
BIN
utilities/z80/preamble
Normal file
BIN
utilities/z80/preamble
Normal file
Binary file not shown.
6
utilities/z80/readme.md
Normal file
6
utilities/z80/readme.md
Normal 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
utilities/z80/z80sim
Executable file
BIN
utilities/z80/z80sim
Executable file
Binary file not shown.
Reference in New Issue
Block a user