汇编程序15:检测点6.1(二)

 1 assume cs:code
 2 
 3 code segment
 4 
 5     dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
 6     dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 7     start:
 8           mov ax,cs
 9           mov ss,ax
10           mov sp,0030h
11           mov ax,0
12           mov ds,ax
13           mov bx,0
14           mov cx,8
15         s:
16           push [bx] //入栈
17           pop cs:[bx] //出栈
18           add bx,2
19           loop s
20 
21           mov ax,4c00h
22           int 21h
23 
24 code ends
25 
26 end start

 

posted on 2018-01-27 14:17  叶倾仙  阅读(146)  评论(0编辑  收藏  举报

导航