Paso 3: Código de fuente de almacenamiento de información de la canción
INICIO:. INCLUYEN "m16def.inc"
LDI r16, (TAPE 1 OUT TCCR0, r16
LDI r21, 0xFF
a DDRA, r21
LDI r19, 0b00000001
r20 de CLR
CLR r23
Timer1:
en r17, TIFR
CPI r17, 0b00000001
breq clr0
CPI r17, 0b00000011
breq clr0
rjmp timer1
clr0:
LDI r16, (TAPE 1 OUT TIFR, r16
Loop1:
Inc r18
CP r18, r19
breq incnote
rjmp timer1
incnote:; Nota # almacenada en r20 y r23. Tenga en cuenta longitud de r19, nota echada en r22
CPI r20, 0xFF
breq incnote2
r20 Inc
canción de rjmp
incnote2:; Esto permite que la canción que hasta 512 notas largas
r23 Inc; si usé ambos registros en la otra forma, permitiría para 65 notas k,
; pero aumentaría la complejidad del programa un poco y lo más importante, tiempo de ejecución.
canción:
CLR r18
N1:
CPI r20, 0 x 01; Comenzar con algún silencio silencio entre canción lazos
n2 Brne
LDI r19, 0 x 40
LDI r22, 0 x 00
a PORTA, r22
rjmp n2
bogo2:
rjmp timer1
N2:
CPI r20, 0 x 02; Comenzar con algún silencio silencio entre canción lazos
n3 Brne
LDI r19, 0 x 20
LDI r22, 0 x 00
a PORTA, r22
rjmp n3
N3:
CPI r20, 0 x 03; a3, 250msec
n4 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N4:
CPI r20, 0 x 04; b3, 250msec
n5 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N5:
CPI r20, 0 x 05; c4, 250msec
n6 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N6:
CPI r20, 0 x 06; e3, 250msec
n7 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N7:
CPI r20, 0x07, c4, 250msec
n8 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N8:
CPI r20, 0x08, e3, 250msec
n9 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N9:
CPI r20, 0 x 09, c4, 250msec
n10 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
rjmp n10
bogo3:
rjmp bogo2
N10:
CPI r20, 0x0A; e3, 250msec
n11 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N11:
CPI r20, 0x0B; c4, 250msec
n12 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N12:
CPI r20, 0x0C; e3, 250msec
n13 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N13:
CPI r20, 0x0D; d4, 250msec
n14 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
N14:
CPI r20, 0x0D; e3, 250msec
n15 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N15:
CPI r20, 0x0E; c4, 250msec
n16 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N16:
CPI r20, 0x0F; e3, 250msec
n17 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N17:
CPI r20, 0x19, b3, 250msec
n18 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N18:
CPI r20, 0x11, e3, 250msec
n19 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
rjmp n19
bogo4:
rjmp bogo3
N19:
CPI r20, 0x12, b3, 250msec
n20 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N20:
CPI r20, 0 x 13; e3, 250msec
n21 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N21:
CPI r20, 0x14, b3, 130msec
n22 Brne
LDI r19, 0x0D
LDI r22, 0b00110100
a PORTA, r22
N22:
CPI r20, 0x15, e3, 130msec
n23 Brne
LDI r19, 0x0C
LDI r22, 0b00111011
a PORTA, r22
N23:
CPI r20, 0x16, b3, 250msec
n24 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N24:
CPI r20, 0x17, e3, 250msec
n25 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N25:
CPI r20, 0x18, c4, 250msec
n26 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N26:
CPI r20, 0x19, e3, 250msec
n27 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N27:
CPI r20, 0x1A; b3, 250msec
n28 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N28:
CPI r20, 0x1B; e3, 380msec
n29 Brne
LDI r19, 0x26
LDI r22, 0b00111011
a PORTA, r22
N29:
CPI r20, 0x1C; a3, 260msec
n30 Brne
LDI r19, 0x1A
LDI r22, 0b00110110
a PORTA, r22
rjmp n30
bogo5:
rjmp bogo4
N30:
CPI r20, 0x1D; resto, 30msec
n31 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N31:
CPI r20, 0x1E; a3, 20msec
n32 Brne
LDI r19, 0 x 04
LDI r22, 0b00110110
a PORTA, r22
N32:
CPI r20, 0x1F; resto, 20msec
n33 Brne
LDI r19, 0 x 04
LDI r22, 0b00000000
a PORTA, r22
N33:
CPI r20, 0 x 20; b3, 30msec
n34 Brne
LDI r19, 0 x 05
LDI r22, 0b00110100
a PORTA, r22
N34:
CPI r20, 0x21, resto, 30msec
n35 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N35:
CPI r20, 0x22, a3, 280msec, dos notas MIDI descompilado...
n36 Brne
LDI r19, 0x1C
LDI r22, 0b00110110
a PORTA, r22
n36:
CPI r20, 0x23, b3, 40msec
n37 Brne
LDI r19, 0 x 04
LDI r22, 0b00110100
a PORTA, r22
N37:
CPI r20, 0x24, a3, 320msec, dos notas sobre midi descompilado... ahora se alinean nota # y fila el número de
Brne n38; en mi hoja de cálculo. Antes no eran debido a las dos pausas iniciales.
LDI r19, 0 x 20; Conveniente para mí!
LDI r22, 0b00110110
a PORTA, r22
N38:
CPI r20, 0x25, b3
n39 Brne
LDI r19, 0x07
LDI r22, 0b00110100
a PORTA, r22
N39:
CPI r20, 0x26, a3
n40 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
rjmp n40
bogo6:
rjmp bogo5
N40:
CPI r20, 0x27, g3
n41 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
N41:
CPI r20, 0x28, e3
n42 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N42:
CPI r20, 0x29, d3
n43 Brne
LDI r19, 0x19
LDI r22, 0b00111101
a PORTA, r22
N43:
CPI r20, 0x2A; e3
n44 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N44:
CPI r20, 0x2B; a3
n45 Brne
LDI r19, 0x36
LDI r22, 0b00110110
a PORTA, r22
N45:
CPI r20, 0x2C; b3
n46 Brne
LDI r19, 0x36
LDI r22, 0b00110100
a PORTA, r22
N46:
CPI r20, 0x2D; c4
n47 Brne
LDI r19, 0x26
LDI r22, 0b00110011
a PORTA, r22
n47:
CPI r20, 0x2F; e3
n48 Brne
LDI r19, 0x26
LDI r22, 0b00111011
a PORTA, r22
N48:
CPI r20, 0 x 30; c4
n49 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N49:
CPI r20, 0x31, e3
n50 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
rjmp n50
bogo7:
rjmp bogo6
N50:
CPI r20, 0x32, c4
n51 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N51:
CPI r20, 0x33, e3
n52 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N52:
CPI r20, 0x34, c4
n53 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n53:
CPI r20, 0x35, e3
n54 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N54:
CPI r20, 0x36; d4
n55 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
N55:
CPI r20, 0x37, e3
n56 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N56:
CPI r20, 0x38, c4
n57 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N57:
CPI r20, 0 x 39; e3
n58 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N58:
CPI r20, 0x3A; b3
n59 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N59:
CPI r20, 0x3B; e3
n60 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
rjmp n60
bogo8:
rjmp bogo7
N60:
CPI r20, 0x3C; b3
Brne n61
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N61:
CPI r20, 0x3D; e3
n62 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N62:
CPI r20, 0x3E; b3
n63 Brne
LDI r19, 0x0D
LDI r22, 0b00110100
a PORTA, r22
N63:
CPI r20, 0x3F; e3
n64 Brne
LDI r19, 0x0C
LDI r22, 0b00111011
a PORTA, r22
N64:
CPI r20, 0 x 40; b3
n65 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N65:
CPI r20, 0 x 41, null
n66 Brne
LDI r19, 0 x 06
LDI r22, 0b00000000
a PORTA, r22
N66:
CPI r20, 0x42, e3
n67 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N67:
CPI r20, 0x43, c4
n68 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N68:
CPI r20, 0x44, e3
n69 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N69:
CPI r20, 0x45, b3
n70 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
rjmp n70
bogo9:
rjmp bogo8
N70:
CPI r20, 0x46, e3
n71 Brne
LDI r19, 0x26
LDI r22, 0b00111011
a PORTA, r22
N71:
CPI r20, 0x47, a3
n72 Brne
LDI r19, 0x1A
LDI r22, 0b00110110
a PORTA, r22
N72:
CPI r20, 0x48, a3
n73 Brne
LDI r19, 0 x 04
LDI r22, 0b00110110
a PORTA, r22
N73:
CPI r20, 0x49, b3
n74 Brne
LDI r19, 0 x 05
LDI r22, 0b00110100
a PORTA, r22
N74:
CPI r20, 0x4A, null
n75 Brne
LDI r19, 0 x 04
LDI r22, 0b00000000
a PORTA, r22
N75:
CPI r20, 0x4B; a3
n76 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N76:
CPI r20, 0x4C; a3
n77 Brne
LDI r19, 0 x 06
LDI r22, 0b00110110
a PORTA, r22
N77:
CPI r20, 0x4D; b3
n78 Brne
LDI r19, 0 x 06
LDI r22, 0b00110100
a PORTA, r22
N78:
CPI r20, 0x4E; a3
n79 Brne
LDI r19, 0x1A
LDI r22, 0b00110110
a PORTA, r22
N79:
CPI r20, 0x4F; null
n80 Brne
LDI r19, 0x0A
LDI r22, 0b00000000
a PORTA, r22
rjmp n80
bogo10:
rjmp bogo9
N80:
CPI r20, 0 x 50; a3
n81 Brne
LDI r19, 0x08
LDI r22, 0b00110110
a PORTA, r22
N81:
CPI r20, 0x51, b3
n82 Brne
LDI r19, 0 x 09
LDI r22, 0b00110100
a PORTA, r22
N82:
CPI r20, 0x52, a3
n83 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
N83:
CPI r20, 0x53, g3
n84 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
N84:
CPI r20, 0x54, e3
n85 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N85:
CPI r20, 0x55, d3
n86 Brne
LDI r19, 0 x 40
LDI r22, 0b00111101
a PORTA, r22
N86:
CPI r20, 0x56, e3
n87 Brne
LDI r19, 0 x 40
LDI r22, 0b00111011
a PORTA, r22
N87:
CPI r20, 0x57, a3
n88 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N88:
CPI r20, 0x58, b3
n89 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N89:
CPI r20, 0x59, c4
n90 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
rjmp n90
bogo11:
rjmp bogo10
N90:
CPI r20, 0x5A; e3
n91 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N91:
CPI r20, 0x5B; c4
n92 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N92:
CPI r20, 0x5C; e3
n93 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N93:
CPI r20, 0x5D; c4
Brne n93b
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n93b:
CPI r20, 0x5E; e3
n94 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N94:
CPI r20, 0x5F; e3
n95 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N95:
CPI r20, 0x60, c4
n96 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N96:
CPI r20, 0x61, e3
n97 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N97:
CPI r20, 0x62; d4
n98 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
N98:
CPI r20, 0x63, e3
n99 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N99:
CPI r20, 0x64, c4
n100 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
rjmp n100
bogo12:
rjmp bogo11
N100:
CPI r20, 0x65, e3
n101 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N101:
CPI r20, 0x66, b3
n102 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N102:
CPI r20, 0x67, e3
n103 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N103:
CPI r20, 0x68, b3
n104 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N104:
CPI r20, 0x69, e3
n105 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N105:
CPI r20, 0x6A; b3
n106 Brne
LDI r19, 0x0D
LDI r22, 0b00110100
a PORTA, r22
n106:
CPI r20, 0x6B; e3
n107 Brne
LDI r19, 0x0C
LDI r22, 0b00111011
a PORTA, r22
N107:
CPI r20, 0x6C; b3
n108 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n108:
CPI r20, 0x6D; e3
n109 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N109:
CPI r20, 0x6E; c4
n110 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
rjmp n110
bogo13:
rjmp bogo12
N110:
CPI r20, 0x6F; e3
n111 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
N111:
CPI r20, 0x70, b3
n112 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N112:
CPI r20, 0x71, e3
n113 Brne
LDI r19, 0x26
LDI r22, 0b00111011
a PORTA, r22
N113:
CPI r20, 0x72, a3
n114 Brne
LDI r19, 0x1A
LDI r22, 0b00110110
a PORTA, r22
N114:
CPI r20, 0x73, a3
n115 Brne
LDI r19, 0 x 05
LDI r22, 0b00110110
a PORTA, r22
N115:
CPI r20, 0x74, null
n116 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N116:
CPI r20, 0 x 75; b3
n117 Brne
LDI r19, 0 x 06
LDI r22, 0b00110100
a PORTA, r22
N117:
CPI r20, 0x76, a3
n118 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N118:
CPI r20, 0x77, a3
n119 Brne
LDI r19, 0x07
LDI r22, 0b00110110
a PORTA, r22
n119:
CPI r20, 0x78, b3
n120 Brne
LDI r19, 0x07
LDI r22, 0b00110100
a PORTA, r22
rjmp n120
bogo14:
rjmp bogo13
N120:
CPI r20, 0x79, a3
indican n121 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
indican N121:
CPI r20, 0x7A; a3
n122 Brne
LDI r19, 0x08
LDI r22, 0b00110110
a PORTA, r22
N122:
CPI r20, 0x7B; null
n123 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n123:
CPI r20, 0x7C; b3
n124 Brne
LDI r19, 0x08
LDI r22, 0b00110100
a PORTA, r22
N124:
CPI r20, 0x7D; a3
n125 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
N125:
CPI r20, 0x7E; g3
n126 Brne
LDI r19, 0 x 05
LDI r22, 0b00111000
a PORTA, r22
N126:
CPI r20, 0x7F; e3
n127 Brne
LDI r19, 0x19
LDI r22, 0b00111011
a PORTA, r22
n127:
CPI r20, 0 x 80; g3
n128 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
n128:
CPI r20, 0x81, a3
n129 Brne
LDI r19, 0x4A
LDI r22, 0b00110110
a PORTA, r22
n129:
CPI r20, 0x82, a3
n130 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
rjmp n130
bogo15:
rjmp bogo14
N130:
CPI r20, 0x83, null
n131 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n131:
CPI r20, 0x84, b3
n132 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n132:
CPI r20, 0x85, null
n133 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n133:
CPI r20, 0x86, c4
n134 Brne
LDI r19, 0x4D
LDI r22, 0b00110011
a PORTA, r22
N134:
CPI r20, 0x87; d4
n135 Brne
LDI r19, 0x0C
LDI r22, 0b00110001
a PORTA, r22
N135:
CPI r20, 0x88, c4
n136 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N136:
CPI r20, 0 x 89; b3
n137 Brne
LDI r19, 0x4D
LDI r22, 0b00110100
a PORTA, r22
N137:
CPI r20, 0x8A; c4
n138 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N138:
CPI r20, 0x8B; b3
n139 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n139:
CPI r20, 0x8C; a3
n140 Brne
LDI r19, 0 x 40
LDI r22, 0b00110110
a PORTA, r22
rjmp n140
bogo16:
rjmp bogo15
N140:
CPI r20, 0x8D; null
n141 Brne
LDI r19, 0x08
LDI r22, 0b00000000
a PORTA, r22
N141:
CPI r20, 0x8E; null
n142 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n142:
CPI r20, 0x8F; b3
n143 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N143:
CPI r20, 0x90, a3
n144 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
N144:
CPI r20, 0x91, g3
n145 Brne
LDI r19, 0x0C
LDI r22, 0b00111000
a PORTA, r22
N145:
CPI r20, 0x92, null
n146 Brne
LDI r19, 0 x 03
LDI r22, 0b00000000
a PORTA, r22
N146:
CPI r20, 0x93, e3
n147 Brne
LDI r19, 0x4D
LDI r22, 0b00111011
a PORTA, r22
n147:
CPI r20, 0x94, a3
n148 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
n148:
CPI r20, 0x95, b3
n149 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n149:
CPI r20, 0x96, c4
n150 Brne
LDI r19, 0x33
LDI r22, 0b00110011
a PORTA, r22
rjmp n150
bogo17:
rjmp bogo16
N150:
CPI r20, 0x97, b3
n151 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n151:
CPI r20, 0x98, c4
n152 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N152:
CPI r20, 0x99; d4
n153 Brne
LDI r19, 0x26
LDI r22, 0b00110001
a PORTA, r22
n153:
CPI r20, 0x9A; c4
n154 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N154:
CPI r20, 0x9B; d4
n155 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
n155:
CPI r20, 0x9C; e4
n156 Brne
LDI r19, 0x26
LDI r22, 0b00101111
a PORTA, r22
n156:
CPI r20, 0x9D; a3
n157 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N157:
CPI r20, 0x9E; b3
n158 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N158:
CPI r20, 0x9F; c4
n159 Brne
LDI r19, 0x26
LDI r22, 0b00110011
a PORTA, r22
N159:
CPI r20, 0xA0; d4
n160 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
n160 rjmp
bogo18:
rjmp bogo17
n160:
CPI r20, 0xA1; c4
n161 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N161:
CPI r20, 0xA2; b3
n162 Brne
LDI r19, 0x22
LDI r22, 0b00110100
a PORTA, r22
N162:
CPI r20, 0xA3; c4
n163 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n163:
CPI r20, 0xA4; b3
n164 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n164:
CPI r20, 0xA5; a3
n165 Brne
LDI r19, 0x26
LDI r22, 0b00110110
a PORTA, r22
N165:
CPI r20, 0xA6; null
n166 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N166:
CPI r20, 0xA7, b3
n167 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n167:
CPI r20, 0xA8; null
n168 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N168:
CPI r20, 0xA9; a3
n169 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
n169:
CPI r20, 0xAA; g3
n170 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
rjmp n170
bogo19:
rjmp bogo18
N170:
CPI r20, 0xAB; e3
n171 Brne
LDI r19, 0x33
LDI r22, 0b00111011
a PORTA, r22
N171:
CPI r20, 0xAC; a3
n172 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N172:
CPI r20, 0xAD; b3
n173 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n173:
CPI r20, 0xAE; c4
n174 Brne
LDI r19, 0x26
LDI r22, 0b00110011
a PORTA, r22
N174:
CPI r20, 0xAF; d4
n175 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
N175:
CPI r20, 0xB0; c4
n176 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N176:
CPI r20, 0xB1; b3
n177 Brne
LDI r19, 0x26
LDI r22, 0b00110100
a PORTA, r22
N177:
CPI r20, 0xB2; a3
n178 Brne
LDI r19, 0x22
LDI r22, 0b00110110
a PORTA, r22
n178:
CPI r20, 0xB3; null
n179 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n179:
CPI r20, 0xB4; g3
n180 Brne
LDI r19, 0x0C
LDI r22, 0b00111000
a PORTA, r22
rjmp n180
bogo20:
rjmp bogo19
N180:
CPI r20, 0xB5; null
n181 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N181:
CPI r20, 0xB6; b3
n182 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N182:
CPI r20, 0xB7; a3
n183 Brne
LDI r19, 0x65
LDI r22, 0b00110110
a PORTA, r22
N183:
CPI r20, 0xB8; a3
N184 Brne.
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
N184.:
CPI r20, 0xB9; null
n185 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n185:
CPI r20, 0xBA; b3
n186 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N186:
CPI r20, 0xBB; null
n187 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N187:
CPI r20, 0xBC; c4
n188 Brne
LDI r19, 0x3E
LDI r22, 0b00110011
a PORTA, r22
n188:
CPI r20, 0xBD, null
n189 Brne
LDI r19, 0x14
LDI r22, 0b00000000
a PORTA, r22
n189:
CPI r20, 0xBE; d4
n190 Brne
LDI r19, 0x0C
LDI r22, 0b00110001
a PORTA, r22
rjmp n190
bogo21:
rjmp bogo20
n190:
CPI r20, 0xBF; null
n191 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N191:
CPI r20, 0xC0; c4
n192 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N192:
CPI r20, 0xC1; null
n193 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N193:
CPI r20, 0xC2; b3
n194 Brne
LDI r19, 0x3E
LDI r22, 0b00110100
a PORTA, r22
n194:
CPI r20, 0xC3; null
n195 Brne
LDI r19, 0x14
LDI r22, 0b00000000
a PORTA, r22
N195:
CPI r20, 0xC4; c4
n196 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N196:
CPI r20, 0xC5; null
n197 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N197:
CPI r20, 0xC6; b3
n198 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N198:
CPI r20, 0xC7; null
n199 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n199:
CPI r20, 0xC8; a3
n200 Brne
LDI r19, 0x34
LDI r22, 0b00110110
a PORTA, r22
rjmp n200
bogo22:
rjmp bogo21
N200:
CPI r20, 0xC9, null
n201 Brne
LDI r19, 0x0A
LDI r22, 0b00000000
a PORTA, r22
N201:
CPI r20, 0xCA; b3
n202 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N202:
CPI r20, 0xCB; a3
n203 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
n203:
CPI r20, 0xCC; g3
n204 Brne
LDI r19, 0x0C
LDI r22, 0b00111000
a PORTA, r22
n204:
CPI r20, 0xCD, null
n205 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N205:
CPI r20, 0xCE; e3
n206 Brne
LDI r19, 0x3E
LDI r22, 0b00111011
a PORTA, r22
N206:
CPI r20, 0xCF; null
n207 Brne
LDI r19, 0x14
LDI r22, 0b00000000
a PORTA, r22
N207:
CPI r20, 0xD0; a3
n208 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
n208:
CPI r20, 0xD1; null
n209 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N209:
CPI r20, 0xD2; b3
n210 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
rjmp n210
bogo23:
rjmp bogo22
N210:
CPI r20, 0xD3; null
n211 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N211:
CPI r20, 0xD4; c4
n212 Brne
LDI r19, 0 x 30
LDI r22, 0b00110011
a PORTA, r22
n212:
CPI r20, 0xD5; b3
n213 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n213:
CPI r20, 0xD6, c4
n214 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n214:
CPI r20, 0xD7; d4
n215 Brne
LDI r19, 0 x 30
LDI r22, 0b00110001
a PORTA, r22
n215:
CPI r20, 0xD8; c4
n216 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n216:
CPI r20, 0xD9; d4
n217 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
n217:
CPI r20, 0xDA; e4
n218 Brne
LDI r19, 0x65
LDI r22, 0b00101111
a PORTA, r22
n218:
CPI r20, 0xDB; a3
n219 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
n219:
CPI r20, 0xDC; b3
n220 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
rjmp n220
bogo24:
rjmp bogo23
N220:
CPI r20, 0xDD; c4
n221 Brne
LDI r19, 0 x 30
LDI r22, 0b00110011
a PORTA, r22
N221:
CPI r20, 0xDE; d4
n222 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
N222:
CPI r20, 0xDF; c4
n223 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N223:
CPI r20, 0xE0; b3
n224 Brne
LDI r19, 0 x 30
LDI r22, 0b00110100
a PORTA, r22
n224:
CPI r20, 0xE1; c4
n225 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N225:
CPI r20, 0xE2; b3
n226 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n226:
CPI r20, 0xE3; a3
n227 Brne
LDI r19, 0x25
LDI r22, 0b00110110
a PORTA, r22
n227:
CPI r20, 0xE4; null
n228 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n228:
CPI r20, 0xE5; b3
n229 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n229:
CPI r20, 0xE6, null
n230 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
rjmp n230
bogo25:
rjmp bogo24
N230:
CPI r20, 0xE7; a3
n231 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
n231:
CPI r20, 0xE8; g3
n232 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
N232:
CPI r20, 0xE9; e3
n233 Brne
LDI r19, 0 x 30
LDI r22, 0b00111011
a PORTA, r22
N233:
CPI r20, 0xEA, a3
n234 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
N234:
CPI r20, 0xEB; b3
n235 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n235:
CPI r20, 0xEC; c4
n236 Brne
LDI r19, 0 x 30
LDI r22, 0b00110011
a PORTA, r22
n236:
CPI r20, 0xED; d4
n237 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
n237:
CPI r20, 0xEE; c4
n238 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
N238:
CPI r20, 0xEF; b3
n239 Brne
LDI r19, 0 x 30
LDI r22, 0b00110100
a PORTA, r22
N239:
CPI r20, 0xF0; a3
n240 Brne
LDI r19, 0x25
LDI r22, 0b00110110
a PORTA, r22
rjmp n240
bogo26:
rjmp bogo25
N240:
CPI r20, 0xF1, null
n241 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n241:
CPI r20, 0xF2; g3
n242 Brne
LDI r19, 0x0C
LDI r22, 0b00111000
a PORTA, r22
n242:
CPI r20, 0xF3; null
n243 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n243:
CPI r20, 0xF4; b3
n244 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n244:
CPI r20, 0xF5; a3
Brne n245
LDI r19, 0x65
LDI r22, 0b00110110
a PORTA, r22
n245:
CPI r20, 0xF6, c4
n246 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
n246:
CPI r20, 0xF7; null
n247 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n247:
CPI r20, 0xF8; d4
n248 Brne
LDI r19, 0x0C
LDI r22, 0b00110001
a PORTA, r22
n248:
CPI r20, 0xF9; e4
n249 Brne
LDI r19, 0x0C
LDI r22, 0b00101111
a PORTA, r22
N249:
CPI r20, 0xFA; null
n250 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
rjmp n250
bogo27:
rjmp bogo26
N250:
CPI r20, 0xFB; d4
Brne n251
LDI r19, 0 x 30
LDI r22, 0b00110001
a PORTA, r22
n251:
CPI r20, 0xFC, null
N252 hacia Brne
LDI r19, 0x08
LDI r22, 0b00000000
a PORTA, r22
N252 hacia:
CPI r20, 0xFD; c4
n253 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
n253:
CPI r20, 0xFE; d4
n254 Brne
LDI r19, 0x0C
LDI r22, 0b00110001
a PORTA, r22
n254:
CPI r20, 0xFF; e4
n255 Brne
LDI r19, 0x34
LDI r22, 0b00101111
a PORTA, r22
N255:
CPI r23, 0 x 01; nulo, también el registro cambio de r20 a r23 aquí
n256 Brne
LDI r19, 0x08
LDI r22, 0b00000000
a PORTA, r22
n256:
CPI r23, 0 x 02; d4
n257 Brne
LDI r19, 0x19
LDI r22, 0b00110001
a PORTA, r22
n257:
CPI r23, 0 x 03; c4
n258 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n258:
CPI r23, 0 x 04; d4
n259 Brne
LDI r19, 0x0C
LDI r22, 0b00110001
a PORTA, r22
n259:
CPI r23, 0 x 05; c4
n260 Brne
LDI r19, 0x25
LDI r22, 0b00110011
a PORTA, r22
rjmp n260
bogo28:
rjmp bogo27
N260:
CPI r23, 0 x 06; b3
n261 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
N261:
CPI r23, 0x07, c4
n262 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
n262:
CPI r23, 0x08; d4
n263 Brne
LDI r19, 0x34
LDI r22, 0b00110001
a PORTA, r22
n263:
CPI r23, 0 x 09, null
n264 Brne
LDI r19, 0x0D
LDI r22, 0b00000000
a PORTA, r22
n264:
CPI r23, 0x0A; c4
n265 Brne
LDI r19, 0x19
LDI r22, 0b00110011
a PORTA, r22
n265:
CPI r23, 0x0B; b3
n266 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n266:
CPI r23, 0x0C; c4
n267 Brne
LDI r19, 0 x 30
LDI r22, 0b00110011
a PORTA, r22
n267:
CPI r23, 0x0D; a3
n268 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
n268:
CPI r23, 0x0E; b3
n269 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
N269:
CPI r23, 0x0F; c4
n270 Brne
LDI r19, 0x3E
LDI r22, 0b00110011
a PORTA, r22
rjmp n270
bogo29:
rjmp bogo28
N270:
CPI r23, 0 x 10; b3
n271 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n271:
CPI r23, 0x11, null
n272 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n272:
CPI r23, 0x12; a3
n273 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
N273:
CPI r23, 0 x 13; null
n274 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n274:
CPI r23, 0x14, g3
n275 Brne
LDI r19, 0 x 50
LDI r22, 0b00111000
a PORTA, r22
n275:
CPI r23, 0x15, null
n276 Brne
LDI r19, 0x18
LDI r22, 0b00000000
a PORTA, r22
n276:
CPI r23, 0x16; a3
n277 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
n277:
CPI r23, 0x17, null
n278 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N278:
CPI r23, 0x18, b3
n279 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n279:
CPI r23, 0x19, c4
n280 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
rjmp n280
bogo30:
rjmp bogo29
N280:
CPI r23, 0x1A; null
carretera n281 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
carretera N281:
CPI r23, 0x1B; b3
n282 Brne
LDI r19, 0x25
LDI r22, 0b00110100
a PORTA, r22
n282:
CPI r23, 0x1C; null
n283 Brne
LDI r19, 0x0D
LDI r22, 0b00000000
a PORTA, r22
n283:
CPI r23, 0x1D; a3
n284 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
n284:
CPI r23, 0x1E; c4
n285 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N285:
CPI r23, 0x1F; b3
Brne n286
LDI r19, 0x4B
LDI r22, 0b00110100
a PORTA, r22
N286:
CPI r23, 0 x 20; c4
n287 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
n287:
CPI r23, 0x21, null
n288 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n288:
CPI r23, 0x22, b3
n289 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n289:
CPI r23, 0x23, null
n290 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
rjmp n290
bogo31:
rjmp bogo30
n290:
CPI r23, 0x24, c4
n291 Brne
LDI r19, 0x25
LDI r22, 0b00110011
a PORTA, r22
n291:
CPI r23, 0x25, null
Brne n292
LDI r19, 0x0A
LDI r22, 0b00000000
a PORTA, r22
n292:
CPI r23, 0x26, b3
n293 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
n293:
CPI r23, 0x27; a3
n294 Brne
LDI r19, 0x0C
LDI r22, 0b00110110
a PORTA, r22
n294:
CPI r23, 0x28, null
n295 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n295:
CPI r23, 0x29, g3
n296 Brne
LDI r19, 0x19
LDI r22, 0b00111000
a PORTA, r22
N296:
CPI r23, 0x2A; null
n297 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n297:
CPI r23, 0x2B; e3
n298 Brne
LDI r19, 0x34
LDI r22, 0b00111011
a PORTA, r22
n298:
CPI r23, 0x2C; null
n299 Brne
LDI r19, 0x08
LDI r22, 0b00000000
a PORTA, r22
N299:
CPI r23, 0x2D; a3
n300 Brne
LDI r19, 0x19
LDI r22, 0b00110110
a PORTA, r22
rjmp n300
bogo32:
rjmp bogo31
N300:
CPI r23, 0x2E; b3
n301 Brne
LDI r19, 0x19
LDI r22, 0b00110100
a PORTA, r22
n301:
CPI r23, 0x2F; c4
n302 Brne
LDI r19, 0 x 30
LDI r22, 0b00110011
a PORTA, r22
N302:
CPI r23, 0 x 30; d4
n303 Brne
LDI r19, 0x25
LDI r22, 0b00110001
a PORTA, r22
n303:
CPI r23, 0x31, null
n304 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
N304:
CPI r23, 0x32, c4
n305 Brne
LDI r19, 0x0C
LDI r22, 0b00110011
a PORTA, r22
N305:
CPI r23, 0x33, null
n306 Brne
LDI r19, 0 x 05
LDI r22, 0b00000000
a PORTA, r22
n306:
CPI r23, 0x34, b3
n307 Brne
LDI r19, 0 x 30
LDI r22, 0b00110100
a PORTA, r22
n307:
CPI r23, 0x35; a3
n308 Brne
LDI r19, 0x25
LDI r22, 0b00110110
a PORTA, r22
n308:
CPI r23, 0x36, null
n309 Brne
LDI r19, 0x0A
LDI r22, 0b00000000
a PORTA, r22
n309:
CPI r23, 0x37, g3
n310 Brne
LDI r19, 0x0C
LDI r22, 0b00111000
a PORTA, r22
rjmp n310
bogo33:
r24 Inc
CPI r24, 0b11111111; Ajustar tiempo
breq bogo32
rjmp bogo33
N310:
CPI r23, 0x38, b3
n312 Brne
LDI r19, 0x0C
LDI r22, 0b00110100
a PORTA, r22
; n311:
; IPC r23, 0 x 39; null
; n312 brne
; ldi r19, 0 x 05
; ldi r22, 0b00000000
; a PORTA, r22
; n312:
; IPC r23, 0x3A; a3, no es necesario
; n313 brne
; ldi r19, 0x4B
; ldi r22, 0b00110110
; a PORTA, r22
n312:
CPI r23, 0x3B
LDI r24, 0b00000000
Brne bogo33
CLR r23
r20 de CLR
CLR r17
LDI r22, 0b00000000
a PORTA, r22
rjmp bogo33