pub mod msp430_asm_printer;
pub mod msp430_instr_info;
pub mod msp430_isel;
pub mod msp430_mc_encoder;
pub mod msp430_register_info;
pub mod msp430_x86_bridge;
pub use msp430_asm_printer::Msp430AsmPrinter;
pub use msp430_instr_info::{Msp430InstrDesc, Msp430InstrInfo, Msp430Opcode, Msp430OperandType};
pub use msp430_isel::Msp430InstructionSelector;
pub use msp430_mc_encoder::Msp430MCEncoder;
pub use msp430_register_info::{
Msp430RegClass, Msp430RegisterInfo, MSP430_GPR_BASE, MSP430_GPR_COUNT, MSP430_MAX_REG_ID,
};
pub const MSP430_ENDIANNESS: &str = "little";
pub const MSP430_STACK_ALIGNMENT: u32 = 2;
pub const MSP430_RED_ZONE_SIZE: u32 = 0;
pub const MSP430_PAGE_SIZE: u32 = 65536;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_msp430_constants() {
assert_eq!(MSP430_ENDIANNESS, "little");
assert_eq!(MSP430_STACK_ALIGNMENT, 2);
assert_eq!(MSP430_RED_ZONE_SIZE, 0);
assert_eq!(MSP430_PAGE_SIZE, 65536);
}
}