实验报告模板—汇编语言.docxVIP

  • 7
  • 0
  • 约1.64万字
  • 约 30页
  • 2021-12-05 发布于天津
  • 举报
云南大学软件学院实验报告 姓名 年级 班级 学号 专业 序号 实验 名称 成绩 指导教师(签名): 实验原理(基本知识简单介绍、算法、流程) 开始 打幵文件 打幵文件 — 賈文件I旨针到文咋屋 施冬端按受用户输入的记汞 逮一个沪录 显示记录 记录写入文件 关闭文件并返回 t4) mDCfy谎琨圄 开始 打开文祎 文件加针恬 谊 T’iES 写入俺改记录幷矢诩交件 r 號回 ⑶qu?y流程图 幵贻 打幵玄体 4个记录 逋回 」 I按学成啧廿最并崛计 叱庁弋11尾 录元錨卄结里 T 关疲件 L 返回 退岀程序 实验结果(截图,提供实验测试/调试的结果等,在空白地方手写注释) Stude nt struc m_sName db 6 dup() m_sNum db 8 dup() m_sScore db 3 dup() Stude nt ends stsg segme nt stack s dw 32 dup⑺ stsg ends an ykey macro mov ah,7 int 21h endm an ykeyback macro anykey showmsg back endm crlfm macro push ax push dx mov ah,9 lea dx,crlf int 21h pop dx pop ax endm excha nge macro i,j push cx push si push di mov cx,17;t=[i],即 t=前项 mov si,i lea di,stutemp rep movsb mov cx,17;i=j,si-后项,即前项=后项 mov di,i ; rep movsb mov cx,17;j=t,di- 后项,即后项=t lea si,stutemp rep movsb mov swapped」 pop di pop si pop ex endm space macro push dx push ax lea dx,gap mov ah,9 int 21h pop ax pop dx endm showmsg macro n push ax push dx mov ah,9 lea dx,msgn int 21h pop dx pop ax endm movitem macro dst,src push cx push di push si cld mov cx,17 lea di,[dst] lea si,[src] rep movsb pop si pop di pop cx endm data segme nt stude ntx stude nt 30 dup() stutemp db 17 dup (0),$ studisp db 19 dup(0),$ n amepar LABEL BYTE maxnlen db 7 n amele n db ? n amefld db 7 dup(?) nu mpar label byte maxmle n db 9 nu mle n db ? numfld db 9 dup(?) scopar label byte maxsco db 4 scole n db ? scofld db 4 dup(?) ;输入文件路径缓冲区 pathpar label byte pathmax db 40 pathle n db ? path nam db 40 dup(?) ae90 db 0 ae80 db 0 ae70 db 0 ae60 db 0 b60 db 0 msg_b60 db 9,9,Scores60:$ msg_ae60 db 9,9,Scores=60:$ msg_ae70 db 9,9,Scores=70:$ msg_ae80 db 9,9,Scores=80:$ msg_ae90 db 9,9,Scores=90:$ cur_i dw ? crlf db 13,10,$ titl db Students Management System,ODH,OAH, ,ODH,OAH,ODH,OAH menul db 1(1 nsert the data of the stude nts),0dh,0ah ;me nu menu2 db L(Browse the data of the students),0dh, Oah menu3 db Q(Query the data of the students),0dh, Oah menu4 db D(Delete the data of the students),0dh, Oah menu5 db M(Modify the data of the students),

文档评论(0)

1亿VIP精品文档

相关文档