add more sensible API for object handles, add drop instruction

This commit is contained in:
2020-09-28 19:36:15 +02:00
parent 79d5aa3cd5
commit d5de189af6
28 changed files with 444 additions and 269 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ use crsn::asm::data::{Rd, Wr};
use crsn::asm::error::Error;
use crsn::asm::instr::Op;
use crsn::asm::parse::arg_parser::ArgParser;
use crsn::module::{AsmModule, ParseOpRes};
use crsn::module::{CrsnExtension, ParseOpRes};
use crate::defs::ArithOp;
@@ -12,14 +12,14 @@ pub struct ArithOps {
}
impl ArithOps {
pub fn new() -> Box<dyn AsmModule> {
pub fn new() -> Box<dyn CrsnExtension> {
Box::new(Self {
_internal: ()
})
}
}
impl AsmModule for ArithOps {
impl CrsnExtension for ArithOps {
fn name(&self) -> &'static str {
"arith"
}