-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.s
94 lines (79 loc) · 1.5 KB
/
a.s
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
.data
pitchC: .byte 60
pitchD: .byte 62
pitchE: .byte 64
pitchF: .byte 65
pitchG: .byte 67
pitchA: .byte 69
pitchB: .byte 71
pitchCC: .byte 72
instrument: .byte 7
volume: .byte 127
duration: .byte 80
.text
main:
while:
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchC
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchD
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchE
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchF
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchG
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchA
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
li $v0, 32
li $a0, 80
syscall
li $v0, 31
lb $a0, pitchB
lb $a1, duration
lb $a2, instrument
lb $a3, volume
syscall
j while