mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 02:26:59 +08:00
exploring mov
This commit is contained in:
parent
eff9490c5f
commit
45e0c0403b
1 changed files with 7 additions and 3 deletions
|
|
@ -1,12 +1,16 @@
|
||||||
.text
|
.text
|
||||||
.global main
|
.global _main
|
||||||
.align 2
|
.align 2
|
||||||
|
|
||||||
main: str x30, [sp, -16]!
|
_main:
|
||||||
|
str x30, [sp, -16]!
|
||||||
|
mov x0, 0xFFFFFFFF
|
||||||
|
/*
|
||||||
ldr s0, =0x3fc00000
|
ldr s0, =0x3fc00000
|
||||||
fcvt d0, s0
|
fcvt d0, s0
|
||||||
ldr x0, =fmt
|
ldr x0, =fmt
|
||||||
bl printf
|
bl printf
|
||||||
|
*/
|
||||||
ldr x30, [sp], 16
|
ldr x30, [sp], 16
|
||||||
mov w0, wzr
|
mov w0, wzr
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue