Files

51 lines
756 B
Rust

use crsn::asm::data::{Rd, Wr};
use crsn::asm::data::literal::Value;
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum ScreenOp {
ScreenInit {
width: Rd,
height: Rd,
},
SetPixel {
x: Rd,
y: Rd,
color: Rd,
},
GetPixel {
color: Wr,
x: Rd,
y: Rd,
},
GetMouse {
x: Wr,
y: Wr,
},
TestKey {
pressed: Wr,
code: Rd,
},
TestMouse {
pressed: Wr,
button: Rd,
},
Update,
Erase {
color: Rd,
},
FillRect {
x: Rd,
y: Rd,
w: Rd,
h: Rd,
color: Rd,
},
Blit {
force: Rd,
},
SetOpt {
opt: Value,
val: Rd,
},
}