I recently found the nand2tetris site and have started following the course. I'm really enjoying it and have upto now not had too much trouble implementing things.
But now I've got stuck on the ALU in project 2. The first bit of the processing is fine, and I have written the ALU.hdl for that. It's passing all the test from the ALU-nostat.tst script.
I am however struggeling to derive the values for the zr and ng flags that need to be returned.
I'm pretty sure it shouldn't be very complicated, but I'm probably overthinking it.
Anyone got any pointers of what to do and/or look for?