Got functionality completely working for all opcodes the thing that was tricking me was with opCode EC because in the command sheet it says set the z-flag(zero) if equal. I thought it meant set to zero when equal but really its supposed to be set to 1.