shithub
fortrangoingonforty
/
armfortas
/
Sign in
Sign up
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
armfortas
Public
Watch
0
Fork
0
Star
0
armfortas
/
sample_programs
/
10_string_length.s
ArmAsm · 275 bytes
Raw
Blame
History
1
.global
_main
2
.text
3
.p2align
2
4
5
_main
:
6
adrp
x1
,
msg
@PAGE
7
add
x1
,
x1
,
msg
@PAGEOFF
8
mov
x0
, #
0
9
1
:
10
ldrb
w2
,
[
x1
]
11
cbz
w2
,
2f
12
add
x0
,
x0
, #
1
13
add
x1
,
x1
, #
1
14
b
1b
15
2
:
16
mov
x16
, #
1
17
svc #
0x80
18
19
.section
__
TEXT,
__cstring
20
msg
:
21
.asciz
"
assembler
"