Fixed implementation of DEC B operations (like dec_d)

Just like in c6d108489a312637463762dc8a5ee8b27246b011, somehow the F
flag was being set in a weird way.
This just copies the reference implementation
Fixed (?) implementation of jr_z_n

Just like in the previous commits,
jano's implementation differs from the reference one, so we're just
copying that one