Mirror backgrounds correctly
[ScratchNES.git] / src / CPU / instructions / BIT
1 R, N, OP
2 set flagV to <(OP mod 128) > 63>
3 set hA to item A+1 of hex
4 set hOP to item OP+1 of hex
5 set flagZ to <(16*(item (join "0x" (join (letter 1 of hA) (letter 1 of hOP)))+1 of AND)) + (item (join "0x" (join (letter 2 of hA) (letter 2 of hOP)))+1 of AND) = 0>
This page took 0.059012 seconds and 5 git commands to generate.