cambridge-asm 0.23.0

Run pseudoassembly from Cambridge International syllabus 9618
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::BTreeMap;

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

use crate::parse::Span;

/// Struct to store original labels of shuffled addresses
#[derive(Default, Debug, Clone)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct DebugInfo {
    /// Original labels of instructions
    pub prog: BTreeMap<usize, String>,
    /// Original labels of memory entries
    pub mem: BTreeMap<usize, String>,
    /// Portions of source recognised as instructions
    pub inst_spans: Vec<Span>,
}