汇编课程设计网上电子表.docx
- 文档编号:8853882
- 上传时间:2023-02-02
- 格式:DOCX
- 页数:8
- 大小:15.34KB
汇编课程设计网上电子表.docx
《汇编课程设计网上电子表.docx》由会员分享,可在线阅读,更多相关《汇编课程设计网上电子表.docx(8页珍藏版)》请在冰豆网上搜索。
汇编课程设计网上电子表
这是一个网上电子表
datasegment
;*****定义please等提示信息*****
strdb20
db50h,7,0,0
db6ch,7,0,1
db65h,7,0,1
db61h,7,0,1
db73h,7,0,1
db65h,7,0,1
db70h,7,1,-10
db72h,7,0,1
db65h,7,0,1
db73h,7,0,1
db73h,7,0,1
db53h,7,0,2
db6bh,7,0,2
db65h,7,0,1
db79h,7,0,1
db65h,7,0,2
db78h,7,0,1
db69h,7,0,1
db74h,7,0,1
db21h,7,0,1
;*****定义0-9十个图形数字*****
s0db6
db5fh,7,0,0
db7ch,7,1,-1
db7ch,7,1,0
db5fh,7,0,1
db7ch,7,0,1
db7ch,7,-1,0
sydb2
db7ch,7,1,0
db7ch,7,1,0
s2db5
db5fh,7,0,0
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,1,-1
db5fh,7,0,1
s3db5
db5fh,7,0,0
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,1,1
db5fh,7,0,-1
s4db4
db7ch,7,1,0
db5fh,7,0,1
db7ch,7,1,1
db7ch,7,-1,0
s5db5
db5fh,7,0,0
db7ch,7,1,-1
db5fh,7,0,1
db7ch,7,1,1
db5fh,7,0,-1
s6db6
db5fh,7,0,0
db7ch,7,1,-1
db5fh,7,0,1
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,0,-1
s7db3
db5fh,7,0,0
db7ch,7,1,1
db7ch,7,1,0
s8db7
db7ch,7,1,0
db5fh,7,-1,1
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,0,-1
s9db6
db7ch,7,1,0
db5fh,7,-1,1
db7ch,7,1,1
db5fh,7,0,-1
db7ch,7,1,1
db5fh,7,0,-1
s11db2
db03h,7,1,0
db03h,7,1,0
dataends
stacksegment
db200dup(0)
stackends
codesegment
assumecs:
code,ss:
stack,ds:
data
start:
movax,data
movds,ax
movah,0;设置显示方式
moval,4
int10h
movah,0bh;置彩色调板
movbh,0
movbl,1
int10h
movah,0bh;置彩色调板
movbh,1
movbl,4
int10h
movah,2;取系统时间
int1ah
movax,0
movbx,0
movah,ch;取系统时间
moval,cl;保存分钟
movbh,dh;保存秒
movbl,dl;保存百分之一秒
tt:
pushax
pushbx
movah,0
moval,4
int10h
movah,0bh
movbh,0
movbl,1
int10h
movah,0bh
movbh,1
movbl,4
int10h
MOVAH,1;读键盘缓冲区字符
INT16h
JZww
MOVAH,8;从键盘输入字符
INT21h
CMPAL,'s';输入s,结束程序
JEtu
ww:
popbx
popax
callxian;调用显示子程序
pushax
qu:
movah,2;取系统时间
int1ah
cmpbh,dh
jequ
popax
incbh;对时间进行加1
cmpbh,100
jltt
movbh,0
incal
callbeep
cmpal,100
jltt
moval,0
incah
cmpah,24
jltt
movah,0
jmptt
tu:
movah,4ch
int21h
ret
xianproc;对时间值进行处理并显示的子程序
pushsi
pushdi
pushdx
pushcx
pushbx
pushax
popax
pushax
movbx,ax
movax,0
moval,bh
movcl,4
shral,cl
movbl,al
movdh,10
movdl,2
callff
popax
pushax
movbx,ax
movax,0
moval,bh
andal,0fh
movbl,al
movdh,10
movdl,6
callff
movdh,10
movdl,10
movbl,10
callff
popax
pushax
movcl,4
shral,cl
movbl,al
movdh,10
movdl,14
callff
popax
pushax
andal,0fh
movbl,al
movdh,10
movdl,18
callff
movdh,10
movdl,22
movbl,10
callff
popax
popbx
pushbx
pushax
movax,0
moval,bh
movcl,4
shral,cl
movbl,al
movdh,10
movdl,26
callff
popax
popbx
pushbx
pushax
moval,bh
andal,0fh
movbl,al
movdh,10
movdl,30
callff
movdh,0
movdl,15
movbl,22
callff
popax
popbx
popcx
popdx
popdi
popsi
ret
xianendp
ffproc;显示具体数值
pushax
pushbx
pushcx
pushdx
cmpbl,0
jel0
cmpbl,1
jel1
cmpbl,2
jel2
cmpbl,3
jel3
cmpbl,4
jel4
cmpbl,5
jel5
cmpbl,6
jel6
cmpbl,7
jel7
cmpbl,8
jel8
cmpbl,9
jel9
cmpbl,10
jel10
cmpbl,22
jeld
l0:
leadi,s0
jmpty
l1:
leadi,sy
jmpty
l2:
leadi,s2
jmpty
l3:
leadi,s3
jmpty
l4:
leadi,s4
jmpty
l5:
leadi,s5
jmpty
l6:
leadi,s6
jmpty
l7:
leadi,s7
jmpty
l8:
leadi,s8
jmpty
l9:
leadi,s9
jmpty
l10:
leadi,s11
jmpty
ld:
leadi,str
ty:
movah,0fh;示方式
int10h
subcx,cx
movcl,[di]
incdi
plot_next:
adddh,[di+2]
adddl,[di+3]
movah,2
int10h
moval,[di]
movbl,[di+1]
pushcx
movcx,1
movah,09
int10h
popcx
adddi,4
loopplot_next
popdx
popcx
popbx
popax
movcx,100
gg:
deccx
loopgg
ret
ffendp
clearproc
pushax
pushbx
pushcx
pushdx
movah,6
moval,0
movbh,1
int10h
popdx
popcx
popbx
popax
ret
clearendp
beepproc
pushax
pushbx
pushcx
pushdx
moval,10110110b
out43h,al
movax,533h
out42h,al
moval,ah
out42h,al
inal,61h
movah,al
oral,03
out61h,al
subcx,cx
movbl,28h
g7:
loopg7
decbl
jnzg7
moval,ah
out61h,al
popdx
popcx
popbx
popax
ret
beependp
codeends
endstart
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 汇编 课程设计 网上 电子表