ch8_isa/data/skiptype.rs
1/*
2 * skiptype.rs
3 * Enumerates condition types for the SKIP instruction
4 * Created on 12/2/2019
5 * Created by Andrew Davis
6 *
7 * Copyright (C) 2019 Andrew Davis
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23/// Types of `SKIP` conditions
24#[derive(Debug, PartialEq)]
25pub enum SkipType {
26 /// Test equality between two registers
27 /// or a register and a constant value
28 Equals,
29
30 /// Test inequality between two registers
31 /// or a register and a constant value
32 NotEquals,
33
34 /// Test whether a given key is pressed
35 KeyDown,
36
37 /// Test whether a given key is released
38 KeyUp
39}
40
41//end of file