alu simulation in C