Laboratorio N° 2
Enviado por pitherdela • 6 de Julio de 2014 • 571 Palabras (3 Páginas) • 148 Visitas
Laboratorio N° 2
1. Mostrar el Listing
Microsoft (R) Macro Assembler Version 5.10 9/17/13 19:33:52
Page 1-1
0000 Pila segment stack
0000 0003076E dd 198510
0004 6D db 'm'
0005 0064[ db 100 dup('pila')
70 69 6C 61
]
0195 Pila ends
0000 Datos segment
0000 00000000 dd 0
0004 00 db 0
0005 Datos ends
0000 Codigo segment
0000 inicio Proc far
assume cs:Codigo; ds:Datos; ss:Pila
0000 1E push ds
0001 2B C0 sub ax,ax
0003 50 push ax
0004 B8 ---- R mov ax,datos
0007 8E D8 mov ds,ax
0009 BE 0000 mov si,0
000C 36: 8B 04 mov ax,ss:[si]
000F BF 0000 mov di,0
0012 89 05 mov ds:[di],ax
0014 BE 0002 mov si,2
0017 36: 8B 04 mov ax,ss:[si]
001A BF 0002 mov di,2
001D 89 05 mov ds:[di],ax
001F BE 0004 mov si,4
0022 36: 8B 04 mov ax,ss:[si]
0025 BF 0004 mov di,4
0028 89 05 mov ds:[di],ax
002A CB ret
002B inicio endp
002B Codigo ends
end inicio
Microsoft (R) Macro Assembler Version 5.10 9/17/13 19:33:52
Symbols-1
Segments and Groups:
N a m e Length
...