aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Apply suggestions as found by nasmMiquel Sabaté Solà2025-10-131-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Finished the second part of day 4Miquel Sabaté Solà2023-12-211-9/+223
| | | | | | | | In order to do so I had to come up with a custom list library because otherwise keeping up with the enunciate and the memory management logic was a bit chaotic. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Implemented the first part of day 4Miquel Sabaté Solà2023-12-131-0/+617
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Implemented day 3Miquel Sabaté Solà2023-12-123-2/+721
| | | | | | | | | | Note that only part 1 has been implemented. The reasoning is on the file header. Moreover, we are not printing 24-bit results yet because that would entail modifying the somewhat terrifying vendor code on `vendor/bcd16.s`. Since this will be a recurring theme, I guess that I will have to come up with a solution sooner or later. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Added a test suiteMiquel Sabaté Solà2023-12-082-4/+24
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Implemented both parts of the second dayMiquel Sabaté Solà2023-12-082-66/+645
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Let's print the result to the screenMiquel Sabaté Solà2023-12-031-19/+157
| | | | | | | | I have found and vendored a piece of code that allows me to convert a 16-bit number so it can be easily printed on screen. With this, let's be a bit more flashy and print the result to the screen. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* First day of advent of codeMiquel Sabaté Solà2023-12-031-0/+1231
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>