> For the complete documentation index, see [llms.txt](https://vxerlee.gitbook.io/radare2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vxerlee.gitbook.io/radare2/intro-3/visual_assembler.md).

# 汇编

You can use Visual Mode to assemble code using `A`. For example let's replace the `push` by a `jmp`:

![Before](https://1729600163-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVtoMwezSF3vlNshyJH%2Fsync%2F4c676def36bb267212383550ba57d48c01ec87f7.png?generation=1615878146583253\&alt=media)

Notice the preview of the disassembly and arrows:

![After](https://1729600163-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVtoMwezSF3vlNshyJH%2Fsync%2F26c6843d0adb999ed87e966164a046ff9b56e4b2.png?generation=1615878146340798\&alt=media)

You need to open the file in writing mode (`r2 -w` or `oo+`) in order to patch the file. You can also use the cache mode: `e io.cache = true` and `wc?`.

Remember that patching files in debug mode only patch the memory not the file.
