Working...

This commit is contained in:
Werner
2021-12-11 17:32:54 -03:00
parent 222d90004c
commit c14a20391f
12 changed files with 1895 additions and 10 deletions

23
Source/Assembly.rs Normal file
View File

@ -0,0 +1,23 @@
use serde::{Deserialize, Serialize};
use std::borrow::Cow;
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct Assembly {
/// Assembly name.
pub name: Cow<'static, str>,
/// Assembly version.
pub version: u8,
/// Assembly bytecode source.
pub source: AssemblySource,
}
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct AssemblySource {
/// Source instructions.
pub text: Vec<u8>,
/// Statics and embed data.
pub data: Vec<u8>,
}