汇编程序13:定位程序入口

 1 assume cs:code
 2 
 3 code segment
 4 
 5     dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
 6     start: //程序入口
 7           mov bx,0
 8           mov ax,0
 9           mov cx,8
10         s:
11           add ax,cs:[bx]
12           add bx,2
13           loop s
14 
15           mov ax,4c00h
16           int 21h
17 
18 code ends
19 
20 end start

 

posted on 2018-01-27 12:41  叶倾仙  阅读(269)  评论(0编辑  收藏  举报

导航