You can use Visual Mode to assemble code using
For example let's replace the
push by a
Notice the preview of the disassembly and arrows:
You need to open the file in writing mode (
rizin -w or
oo+) in order to patch the file.
You can also use the cache mode:
e io.cache=true and
Remember that patching files in debug mode only patch the memory not the file.