Update README.md
parent
eee16a7609
commit
f89c980176
@ -1,13 +1,15 @@
|
|||||||
# advent-of-code
|
# Advent of Code 2022
|
||||||
|
|
||||||
My Advent of Code answers!
|
This year, I plan to complete as many days as possible on my Apple \]\[ GS using Applesoft BASIC. I've devised a system to transfer code and input data to and from the Apple, so all of my code is typed and tested on the machine itself.
|
||||||
|
|
||||||
### 2022
|
Day 5 (Supply Stacks) has my first well-done [visualization](https://www.youtube.com/watch?v=aZpxpvI2hZY). I'm hoping to do more in the future as long as the challenge's complexity (and my time) allows.
|
||||||
|
|
||||||
So far, I have completed every day on my Apple \]\[gs using Applesoft BASIC. I'm going to continue with this until (if) the challenges become too complex for the Apple.
|
## Notes
|
||||||
|
|
||||||
Otherwise, I'll be trying out Forth and Scheme, or will fall back to Clojure if necessary.
|
The Apple communicates with my primary computer over a serial connection with its modem (see [ADTPro's guide](https://www.adtpro.com/connectionsserial.html#MiniDIN8). The modem can run at up to 19,200 baud, which is what I configure it for. I also configure it to add newlines after carriage returns (Apple line endings are only `\r`) and use buffering.
|
||||||
|
|
||||||
**2021:** Nearly all challenges were done in Clojure. I used C++ for a couple of the more challenging ones, and tried Maxima on a part too.
|
On my main computer, I configure the serial port through `minicom`: 19,200 baud and hardware flow control. For some reason, I also need to configure for 7-bit characters even through the Apple is supposedly set for 8-bit. Not sure what's up there.
|
||||||
|
|
||||||
**2020:** Incomplete, just tried a day in Clojure.
|
I use an ADTPro floppy to load BASIC, then swap for a general floppy to store my input data and programs. Running `PR#2` on the Apple will direct output to the modem, allowing me to `LIST` my finished programs into a `minicom` capture. Through a custom BASIC program I named `SERIN`, the Apple will read data from the modem and write it to a file; this is how I get my input data. `SERIN` writes the input file with `PRINT` statements, which sticks carriage returns between every byte. After writing this, I may have realized how to fix that.
|
||||||
|
|
||||||
|
In the future, I will add more notes here on my setup and learned techniques. I'll also add the script for `SERIN`.
|
||||||
|
Loading…
Reference in New Issue