-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlucky.asm
104 lines (96 loc) · 1.87 KB
/
lucky.asm
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
; PAUSA: 0, DO: 4400, DO#4200, RE: 4000, RE#: 3800, MI: 3600, FA: 3400, FA#: 3200
; SOL: 3000, SOL#: 2800, LA: 2700, LA#: 2600, SI: 2400
;
; PAUSA: 0, DO: 2200, DO#2100, RE: 2000, RE#: 1900, MI: 1800, FA: 1700, FA#: 1600
; SOL: 1500, SOL#: 1400, LA: 1350, LA#: 1300, SI: 1200
;
; Jason Mraz - Lucky by Rafael Pinho Carlos da Silva (Cusquito)
; Data: 08/12/2010 @ 12:34:10
mov bx, 1 ; Quantas vezes executar esta parte? (padrão: 1)
InicioAlejandro:
mov ax, 0 ; Começa sempre com uma pausa!
call Som_ON
mov ax, 1500 ; sol
call Som_ON
mov ax, 1500 ; sol
call Som_ON
mov ax, 1600 ; fa#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 0 ; PAUSA
call Som_ON
mov ax, 1500 ; sol
call Som_ON
mov ax, 1500 ; sol
call Som_ON
mov ax, 1600 ; fa#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 0 ; PAUSA
call Som_ON
mov ax, 1800 ; mi
call Som_ON
mov ax, 1600 ; fa#
call Som_ON
mov ax, 1800 ; mi
call Som_ON
mov ax, 2100 ; do#
call Som_ON
cmp bx, 0 ; Compara com 0 (já repetido)
jz Parte1_2
mov bx, 0 ; Informa q reperirá a função Inicio
jmp InicioAlejandro
Parte1_2:
mov ax, 0 ; PAUSA
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2400 ; si
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2400 ; si
call Som_ON
mov ax, 0 ; PAUSA
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2100 ; do#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2100 ; do#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2400 ; si
call Som_ON
mov ax, 0 ; PAUSA
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2100 ; do#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2100 ; do#
call Som_ON
mov ax, 2000 ; re
call Som_ON
mov ax, 2700 ; la
call Som_ON
mov ax, 0 ; PAUSA
call Som_ON
; Fim da música
jmp Som_OFF
; ---- Fim do código