2023-01-08 20:02:25 -05:00
2022-12-02 06:18:00 -05:00
2022-12-04 19:35:32 -05:00
2022-12-03 14:14:20 -05:00
2022-12-04 19:34:59 -05:00
2022-12-05 10:11:52 -05:00
2022-12-09 03:36:32 -05:00
2022-12-07 21:47:54 -05:00
2022-12-08 21:47:46 -05:00
2022-12-09 19:21:05 -05:00
2022-12-10 08:57:49 -05:00
2022-12-11 21:38:11 -05:00
2022-12-13 14:55:32 -05:00
2022-12-14 08:14:15 -05:00
2022-12-15 19:50:01 -05:00
2022-12-17 13:33:45 -05:00
2022-12-22 08:53:56 -05:00
2023-01-08 20:02:25 -05:00
2022-12-05 18:47:28 -05:00
2022-12-05 18:45:58 -05:00
2021-12-17 09:59:09 -05:00
2021-12-01 17:13:56 -05:00
2022-12-05 19:01:15 -05:00

Advent of Code 2022

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.

Day 5 (Supply Stacks) has my first well-done visualization. I'm hoping to do more in the future as long as the challenge's complexity (and my time) allows.

Notes

The Apple communicates with my primary computer over a serial connection with its modem (see ADTPro's guide. 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.

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.

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.

Description
My Advent of Code answers
Readme 269 KiB
Languages
Clojure 43.6%
BASIC 26.4%
C++ 24.8%
Forth 5.1%