Skip to content

Latest commit

 

History

History
135 lines (133 loc) · 9.05 KB

jmp-truth-table.md

File metadata and controls

135 lines (133 loc) · 9.05 KB

Condition Test Logic (CC flags)

JUMP ≡ CC_INV ⊕ ( CC_N ∧ A_DATA.7 ∨ CC_Z ∧ ALU_C_OUT ∨ CC_C ∧ ¬CFLAG )

Truth table

CC_INV CC_C CC_Z CC_N CFLAG ALU_C_OUT A_DATA.7 JUMP
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 0
0 0 0 0 0 1 1 0
0 0 0 0 1 0 0 0
0 0 0 0 1 0 1 0
0 0 0 0 1 1 0 0
0 0 0 0 1 1 1 0
0 0 0 1 0 0 0 0
0 0 0 1 0 0 1 1
0 0 0 1 0 1 0 0
0 0 0 1 0 1 1 1
0 0 0 1 1 0 0 0
0 0 0 1 1 0 1 1
0 0 0 1 1 1 0 0
0 0 0 1 1 1 1 1
0 0 1 0 0 0 0 0
0 0 1 0 0 0 1 0
0 0 1 0 0 1 0 1
0 0 1 0 0 1 1 1
0 0 1 0 1 0 0 0
0 0 1 0 1 0 1 0
0 0 1 0 1 1 0 1
0 0 1 0 1 1 1 1
0 0 1 1 0 0 0 0
0 0 1 1 0 0 1 1
0 0 1 1 0 1 0 1
0 0 1 1 0 1 1 1
0 0 1 1 1 0 0 0
0 0 1 1 1 0 1 1
0 0 1 1 1 1 0 1
0 0 1 1 1 1 1 1
0 1 0 0 0 0 0 1
0 1 0 0 0 0 1 1
0 1 0 0 0 1 0 1
0 1 0 0 0 1 1 1
0 1 0 0 1 0 0 0
0 1 0 0 1 0 1 0
0 1 0 0 1 1 0 0
0 1 0 0 1 1 1 0
0 1 0 1 0 0 0 1
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
0 1 0 1 0 1 1 1
0 1 0 1 1 0 0 0
0 1 0 1 1 0 1 1
0 1 0 1 1 1 0 0
0 1 0 1 1 1 1 1
0 1 1 0 0 0 0 1
0 1 1 0 0 0 1 1
0 1 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