You can now script radare2 in assembly by using the lang.s and lang.asm plugins, the first uses gcc/gas to build a shared lib, load it and run the entrypoint passing the Core instance, the second uses rasm2 to assemble to snippet in memory, then setups a pin/syscall to run r2cmd() and uses ESIL to emulate the code.
Assembly files can be loaded as scripts using the `r2 -i script.asm /path/to/file`.
Orthogonality all the way!
Comme le soleil, les machines ne se couchent jamais.