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
/
08_gcd_48_18.s
ArmAsm · 205 bytes
Raw
Blame
History
1
.global
_main
2
.text
3
.p2align
2
4
5
_main
:
6
mov
x0
, #
48
7
mov
x1
, #
18
8
1
:
9
cmp
x0
,
x1
10
b
.eq
2f
11
b
.gt
3f
12
sub
x1
,
x1
,
x0
13
b
1b
14
3
:
15
sub
x0
,
x0
,
x1
16
b
1b
17
2
:
18
mov
x16
, #
1
19
svc #
0x80