-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest5.ass
82 lines (82 loc) · 1006 Bytes
/
test5.ass
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
XOR R0,R0,R0
L1:MOVIR R2,1.0
WRR R2
MOVIR R2,1.0
MOVIR R3,2.0
SUBR R4,R2,R3
BLTZR R4,L1
L3:MOVIR R3,2.0
WRR R3
MOVIR R3,2.0
MOVIR R2,3.0
SUBR R4,R2,R3
BLTZR R4,L3
L5:MOVIR R2,3.0
WRR R2
WRS 0
MOVIR R2,4.0
MOVIR R3,4.0
SUBR R4,R2,R3
BEQZR R4,L5
L7:MOVIR R3,5.0
WRR R3
WRS 2
WRS 4
MOVIR R3,5.0
MOVIR R2,5.0
SUBR R4,R3,R2
BNEZR R4,L7
L9:MOVIR R2,7.0
WRR R2
MOVIR R2,6.0
MOVIR R3,7.0
SUBR R4,R3,R2
BGEZR R4,L9
L11:MOVIR R3,8.0
MOVIR R2,9.0
SUBR R4,R3,R2
BGEZR R4,L11
L13:MOVIR R2,0.1
MOVIR R3,0.2
SUBR R4,R2,R3
BLTZR R4,L13
L15:WRS 6
MOVIR R3,0.2
MOVIR R2,0.3
SUBR R4,R2,R3
BLTZR R4,L15
L17:WRS 8
MOVIR R2,0.4
MOVIR R3,0.4
SUBR R4,R2,R3
BEQZR R4,L17
L19:
L21:WRS 10
MOVIR R3,0.7
MOVIR R2,0.8
SUBR R4,R2,R3
BGEZR R4,L21
L23:WRS 12
MOVIR R2,0.9
MOVIR R3,1.0e-1
SUBR R4,R2,R3
BGEZR R4,L23
MOVIR R3,0.5
MOVIR R2,6.0
SUBR R4,R3,R2
BNEZR R4,L19
HALT
DATA 10 ;
DATA 0 ;
DATA 10 ;
DATA 0 ;
DATA 10 ;
DATA 0 ;
DATA 97 ; a
DATA 0 ;
DATA 98 ; b
DATA 0 ;
DATA 99 ; c
DATA 0 ;
DATA 100 ; d
DATA 0 ;