Skip to content

Instantly share code, notes, and snippets.

@sciguyryan
sciguyryan / nested_subroutines.asm
Last active June 3, 2020 19:14
Nested Subroutines
push $0xAAA ; Should remain in place once the stack is restored
push $0xC ; TESTER Argument 3
push $0xB ; TESTER Argument 2
push $0xA ; TESTER Argument 1
push $3 ; The number of arguments for the subroutine
call !TESTER
mov $0x123, R1
hlt
TESTER:
class Day10
{
// http://adventofcode.com/2017/day/10
// An example worthy of note that uses lots of LINQ. Neat!
// https://www.reddit.com/r/adventofcode/comments/7irzg5/2017_day_10_solutions/dr15bpc/
private const int DayID = 10;
private byte[] Lengths1;