aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools/lcc/mips/irix/tst/incr.sbk
blob: 1fe2edd53cf643f1b5d5299c175cc851df1c6b42 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
move $2,$0
L.1:
j $31
.end main
.globl memchar
.text
.align 2
.ent memchar
memchar:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
lw $24,-8+8($sp)
la $15,1($24)
sw $15,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $24,1($24)
sw $24,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $15,-1($24)
sw $15,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $24,-1($24)
sw $24,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
move $2,$0
L.2:
addu $sp,$sp,8
j $31
.end memchar
.globl memint
.text
.align 2
.ent memint
memint:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
lw $24,-8+8($sp)
la $15,4($24)
sw $15,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $24,4($24)
sw $24,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $15,-4($24)
sw $15,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $24,-4($24)
sw $24,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
move $2,$0
L.3:
addu $sp,$sp,8
j $31
.end memint
.globl regchar
.text
.align 2
.ent regchar
regchar:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
.mask 0x40800000,-4
sw $23,0($sp)
sw $30,4($sp)
move $24,$23
la $23,1($24)
lb $30,($24)
la $24,1($23)
move $23,$24
lb $30,($24)
move $24,$23
la $23,-1($24)
lb $30,($24)
la $24,-1($23)
move $23,$24
lb $30,($24)
move $2,$0
L.4:
lw $23,0($sp)
lw $30,4($sp)
addu $sp,$sp,8
j $31
.end regchar
.globl regint
.text
.align 2
.ent regint
regint:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
.mask 0x40800000,-4
sw $23,0($sp)
sw $30,4($sp)
move $24,$23
la $23,4($24)
lw $30,($24)
la $24,4($23)
move $23,$24
lw $30,($24)
move $24,$23
la $23,-4($24)
lw $30,($24)
la $24,-4($23)
move $23,$24
lw $30,($24)
move $2,$0
L.5:
lw $23,0($sp)
lw $30,4($sp)
addu $sp,$sp,8
j $31
.end regint