- 2
- 0
- 约6.45千字
- 约 77页
- 2017-07-07 发布于河南
- 举报
5章高级汇编语言程序设计_1
第 5 章;教学重点;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;5.1 高级语言特性;;汇编语言程序:lt503.asm
.model small
checksumd PROTO c,:word,:word ;声明过程
.stack
.data
array db 12h,25h,0f0h,0a3h,3
db 68h,71h,0cah,0ffh,90h
count equ $-array ;数组的元素个数result db ? ;校验和
.code
.startup
INVOKE checksumd,count,offset array ;调用过程
mov result,al ;保存校验和
.exit 0;checksumd PROC c USES bx cx,\
countp:word,arrayp:word
mov bx,arrayp ;BX←数组的偏移地址
mov cx,countp ;CX←数组的元素个数
xor al,al
sumd: add al,[bx] ;求和:AL←AL
原创力文档

文档评论(0)