summaryrefslogtreecommitdiff
path: root/cpu/instructions/opcode.txt
blob: d69eda4fb6818b3849fffeaf8813c201a4945798 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Binary format:
	is_conditional[1], instruction id[remaining bits]


is_conditional:
	Appends 1 parameter to the normal parameter list for the instruction:
		Lowest 3 bits: flags for each of the following checked, from lowest to highest:
			Zero
			Overflow
			Carry
		Next 3 bits:
			Value for each of the above that it should match
		Remaining bits:
			Index into instruction queue for which result is to be compared

	Conditional instructions will be executed after unconditional ones

	Conditional instructions will never set flags, if a conditional instruction references another, it will always be based on null flags