定义代码段起始, 在代码段存数据

代码

assume
cs:code

code segment

dw 0123h,0456h,0789h,0abch, 0defh,0321h,0654h,0987h

start:
mov ax,0
mov bx,0

mov cx,8
s: add ax,cs:[bx]
add bx,2
loop s

mov ax,4300h
int 21h
code ends

end start

 

dw: 定义一个字 2 Bytes.

 

 

posted @ 2011-01-08 11:01  庚武  Views(368)  Comments(1Edit  收藏  举报