`b .` 在此 ASSEMBLY 代码中是什么意思?
What does `b .` mean in this ASSEMBLY code?
所以我正在研究 source code for Redox OS(一个用 Rust 制作的操作系统),看看我是否能学到一些东西。
我正在读取 bootloader
文件夹中的程序集文件 start.s。在 interrupt_vector_table
标签中我们有:
interrupt_vector_table:
b . @ Reset
b .
b . @ SWI instruction
b .
b .
b .
b .
b .
b .
到底是什么?
我不是一个完整的汇编初学者,我以前从未遇到过这个。
用于 ARM CPU 的 b
指令与用于 x86 的 jmp
指令几乎相同 CPU:跳转指令
使用GNU工具链.
表示:指令本身的地址。
所以b .
等于:
temporaryLabel:
b temporaryLabel
或(对于 x86 CPUs):
temporaryLabel:
jmp temporaryLabel
所以我正在研究 source code for Redox OS(一个用 Rust 制作的操作系统),看看我是否能学到一些东西。
我正在读取 bootloader
文件夹中的程序集文件 start.s。在 interrupt_vector_table
标签中我们有:
interrupt_vector_table:
b . @ Reset
b .
b . @ SWI instruction
b .
b .
b .
b .
b .
b .
到底是什么?
我不是一个完整的汇编初学者,我以前从未遇到过这个。
用于 ARM CPU 的 b
指令与用于 x86 的 jmp
指令几乎相同 CPU:跳转指令
使用GNU工具链.
表示:指令本身的地址。
所以b .
等于:
temporaryLabel:
b temporaryLabel
或(对于 x86 CPUs):
temporaryLabel:
jmp temporaryLabel