现在的位置: 首页 > 综合 > 正文

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

2012年07月04日 ⁄ 综合 ⁄ 共 180字 ⁄ 字号 评论关闭
代码


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.

 

 

抱歉!评论已关闭.