mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 00:26:46 +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
|
||||
.global main
|
||||
.align 2
|
||||
.global _main
|
||||
.align 2
|
||||
|
||||
main: str x30, [sp, -16]!
|
||||
_main:
|
||||
str x30, [sp, -16]!
|
||||
mov x0, 0xFFFFFFFF
|
||||
/*
|
||||
ldr s0, =0x3fc00000
|
||||
fcvt d0, s0
|
||||
ldr x0, =fmt
|
||||
bl printf
|
||||
*/
|
||||
ldr x30, [sp], 16
|
||||
mov w0, wzr
|
||||
ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue