An ALU simulator in C