]> code.bitgloo.com Git - clyne/advent-of-code.git/summary
 
descriptionAdvent of Code solutions in various languages
ownerClyne Sullivan
last changeMon, 9 Jan 2023 01:02:25 +0000 (20:02 -0500)

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.

shortlog
2023-01-09 Clyne Sullivanadd day 23 master
2022-12-22 Clyne Sullivanadd day 21
2022-12-17 Clyne Sullivanadd day 17 part 1 c++
2022-12-16 Clyne Sullivanday15: part 1 speedup
2022-12-15 Clyne Sullivanday15: really finish part 2 c++
2022-12-15 Clyne Sullivanday15: finish part 2 c++
2022-12-15 Clyne Sullivanday15: part 1 c++, partial part 2
2022-12-14 Clyne Sullivanadd day 14 c++
2022-12-13 Clyne Sullivanadd day 13 c++
2022-12-12 Clyne Sullivanday11: add part 1 basic
2022-12-11 Clyne Sullivanadd day 11 c++
2022-12-10 clyneoops wrong day
2022-12-10 Clyne Sullivanadd day 10
2022-12-10 Clyne Sullivanday9: add part 2 graphics
2022-12-09 Clyne Sullivanday9: cpp changes, add part2 basic
2022-12-09 Clyne Sullivanday9: add part 1 basic
...
heads
2 years ago master