customasm 0.13.12

An assembler for custom, user-defined instruction sets!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ruledef
{
    emit {x: i8} => x
    
    test2 {x} => {
        y = 0x10 + x
        asm { emit y }
    }

    test1 {x} => {
        y = 0x10 + x
        asm { test2 {y} }
    }
}

test1 2 ; error: failed / note:_:10: within / note:_:12: test2 :y / error:_:12: failed / note:_:5: within / error:_:7: failed / note:_:3: within / error:_:7: unknown