summaryrefslogtreecommitdiff
path: root/arch/arm/src/angel.s
blob: 3a0e4c61341fe13ca20dbb11fa387e1f35f70eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.cpu cortex-m3
.syntax unified
.thumb

.section ".text.Semihost_SYS_OPEN", "x", %progbits
.thumb_func
.globl Semihost_SYS_OPEN
.type Semihost_SYS_OPEN, %function
Semihost_SYS_OPEN:
    mov r1, r0
    mov r0, #1
    bkpt 0xAB
    bx lr

.section ".text.Semihost_SYS_CLOSE", "x", %progbits
.thumb_func
.globl Semihost_SYS_CLOSE
.type Semihost_SYS_CLOSE, %function
Semihost_SYS_CLOSE:
    mov r1, r0
    mov r0, #2
    bkpt 0xAB
    bx lr

.section ".text.Semihost_SYS_WRITE", "x", %progbits
.thumb_func
.globl Semihost_SYS_WRITE
.type Semihost_SYS_WRITE, %function
Semihost_SYS_WRITE:
    mov r1, r0
    mov r0, #5
    bkpt 0xAB
    bx lr

.section ".text.Semihost_SYS_READ", "x", %progbits
.thumb_func
.globl Semihost_SYS_READ
.type Semihost_SYS_READ, %function
Semihost_SYS_READ:
    mov r1, r0
    mov r0, #6
    bkpt 0xAB
    bx lr

.section ".text.Semihost_SYS_SEEK", "x", %progbits
.thumb_func
.globl Semihost_SYS_SEEK
.type Semihost_SYS_SEEK, %function
Semihost_SYS_SEEK:
    mov r1, r0
    mov r0, #10
    bkpt 0xAB
    bx lr

.section ".text.Semihost_SYS_FLEN", "x", %progbits
.thumb_func
.globl Semihost_SYS_FLEN
.type Semihost_SYS_FLEN, %function
Semihost_SYS_FLEN:
    mov r1, r0
    mov r0, #12
    bkpt 0xAB
    bx lr

.end