This commit is contained in:
2025-12-04 00:45:42 -06:00
parent 4ca5884255
commit 28d44f2bbf
13 changed files with 851 additions and 31 deletions

8
day2.c
View File

@@ -251,13 +251,13 @@ no_len_change:
#define RUN_TEST1 1
#define RUN_PART1 1
#define RUN_TEST2 1
#define RUN_PART2 1
#define RUN_TEST2 0
#define RUN_PART2 0
#define TEST1_EXPECT 0x1227775554l
#define TEST2_EXPECT 0x4174379265l
void _start() {
void run() {
#if RUN_TEST1
print("PART 1 TEST: ");
if (bcdint v = do_part1(countof(test), test); v != TEST1_EXPECT) {
@@ -292,5 +292,5 @@ void _start() {
print("\n");
#endif
syscall(SYS_exit_group, 0);
exit_group(0);
}