汇编指令

寄存器

pc寄存器(program counter)为指令指针寄存器,它指示了CPU当前要读取指令的地址

mov指令(传送指令),可以用来修改大部分寄存器的值      mov x0,#10

但是,mov指令不能用于设置pc的值,ARM64没有提供这样的功能

bl指令

读寄存器:       register read x0

str x30, [sp,#-0x10]!

等于

sub sp,sp,#0x10

str x30, [sp]


ldr    x30, [sp],#0x30

等于

ldr    x30, [sp]

add sp, #0x30

 读寄存器:        register read x0

                x0 = 0x00000001c40304e0

  读寄存器:       register read x1

                x1 = 0x00000001912e9d20 "init"

 打印OC对象:    po 0x00000001c40304e0

                

打印内存存储:    x 0x00000001c40304e0

                0x1c40304e0: a5 4e 76 02 a1 01 00 00 00 00 00 00 00 00 00 00 .Nv.............

                0x1c40304f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

你可能感兴趣的:(汇编指令)