hephasm 0.1.0

Assembler for Asmodeus architecture with macro support and extended instructions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use hephasm::assemble_source;

#[test]
fn test_rst_directive() {
    let machine_code = assemble_source("RST 42").unwrap();
    assert_eq!(machine_code.len(), 1);
    assert_eq!(machine_code[0], 42);
}

#[test]
fn test_rpa_directive() {
    let machine_code = assemble_source("RPA").unwrap();
    assert_eq!(machine_code.len(), 1);
    assert_eq!(machine_code[0], 0);
}