Exacto Hernán, esa fué la idea.para debugear un programa BASIC viene bárbaro!!
ORG 65340
62,24 LD A,24
50,255,255 LD (65535),A
62,195 LD A,195
50,244,255 LD (65524),A
33,90,255 LD HL,65370
34,245,255 LD (65525),HL
62,59 LD A,59
237,71 LD I,A
237,94 IM 2
201 RET
62,63 LD A,63
231,71 LD I,A
237,86 IM 1
201 RET
229 PUSH HL
245 PUSH AF
197 PUSH BC
213 PUSH DE
42,69,92 LD HL,(23621)
17,71,71 LD DE,18247 ; RUTINA ROM??
237,83,24,88 LD (22552),DE
237,83,26,88 LD (22554),DE
205,126,255 CALL 65406
209 POP DE
193 POP BC
241 POP AF
225 POP HL
195,56,0 JP 56 ; RET ESTABLE EN ROM
17,24,0 LD DE,24
237,83,200,255 LD (65480),DE
17,232,3 LD DE,1000
205,189,255 CALL 65469
17,100,0 LD DE,100
205,189,255 CALL 65469
17,10,0 LD DE,10
205,189,255 CALL 65469
255 RST 38H ; IMPRESION?
77 LD C,L
205,179,255 CALL 65459
62,58 LD A,58
205,189,255 CALL 65469
58,71,92 LD A,(21063)
38,0 LD H,0
111 LD L,A
17,100,0 LD DE,100
209 POP DE
189 CP L
255 RST 38H ; IMPRESION?
17,101,0 LD DE, 101
205,189,255 CALL 65469
77 LD C,L
77 LD C,L
25 ADD HL,DE
62,48 LD A,48
129 ADD A,C
225 POP HL
205,199,255 CALL 65479
225 POP HL
201 RET ; SALGO AL BASIC
167 AND A
14,0 LD C,0
237,82 SBC HL,DE
56,239 JR C, -111 ; 239 CON SIGNO
12 INC C
24,249 JR -121 ; 249 CON SIGNO
17,32,0 LD DE,32
38,0 LD H,0
111 LD L,A
237,75,54,92 LD BC,(23606)
41 ADD HL,HL
41 ADD HL,HL
41 ADD HL,HL
9 ADD HL,BC
122 LD A,D
230,24 AND 24
198,64 ADD A,64
71 LD B,A
122 LD A,D
15 RRCA
15 RRCA
15 RRCA
230,224 AND 224
131 ADD A,E
96 LD E,A
80 LD D,B
6,8 LD B,8
126 LD A,(HL)
18 LD (DE),A
20 INC D
35 INC HL
16,250 DJNZ -122 ; 250 CON SIGNO
33,200,255 LD HL, 65480
52 INC (HL)
201 RET
Te pareces al tipo de Matrix que interpretaba el mundo mirando los numeros de la pantalla. ;DSi bien no tengo el assembler, viendo el LM en decimal, me juego a que si.
Si, el desensamble lo hice a mano, pero no recuerdo todos los opcodes por eso las planillas de la anécdota.Hiciste el desensamble a mano?
Fig.2
Pos: 7 6 5 4 3 2 1 0
| x | x | x | x | x | x | x | x |
^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | +-- 1
| | | | | | +------ 2
| | | | | +---------- 4
| | | | +-------------- 8
| | | +------------------ 16
| | +---------------------- 32
| +-------------------------- 64
+------------------------------ 128