cbvm 0.6.9

Cross bytes virtual machine used for building, running and reading CBVM files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
bytestream = bytestream
        .emit(op!(FUNC))
        .emitstream(stream!((TypeU64, 0x0)))
        .emit(op!(ALLOC))
        .emitstream(stream!((TypeReg, 0x1), (TypeU8, 11)))
        .emit(op!(STORE))
        .emitstream(stream!(
            (TypeReg, 0x1),
            (TypeU8, 11)
        ))
        .emitstream(string!("hello world"))
        .emit(op!(WRITE))
        .emitstream(stream!((TypeU8, 0x1), (TypeU8, 11)))
        .emit(op!(FLUSH))
        .emit(op!(FREE))
        .emitstream(stream!((TypeU8, 0x1)));