| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 587 人关注过本帖
标题:帮我看一下?
只看楼主 加入收藏
lrgsz
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-9-27
收藏
 问题点数:0 回复次数:1 
帮我看一下?

.model small
.stack
.data
intoff dw ?
intseg dw ?
.code
.startup
mov ax,351ch
int 21h
mov intoff,bx
mov intseg,es
push ds
mov dx,offset newint1ch
mov ax,seg newint1ch
mov ds,ax
mov ah,251ch
int 21h
pop ds
;
;int 1ch
;
again:mov ah,02h
int 21h
cmp al,'q'
jne again
mov dx,intoff
mov ax,intseg
mov ds,ax
mov ax,251ch
int 21h
.exit 0
newint1ch proc
sti
cld
mov ax,b800h
mov es,ax
xor di,di
mov ah,02h
int 1ch
push dx
push cx
push cx


and ch,f0h
shr ch,1
shr ch,1
shr ch,1
shr ch,1
add ch,30
mov al,ch
stosw ;存储小时高4位

pop cx
and ch,0fh
add ch,30
mov al,ch
stosw ;存储小时低4位

and cl,f0h
shr cl,1
shr cl,1
shr cl,1
shr cl,1
add cl,30
mov al,cl
stosw ;存储分钟高4位

pop cx
and cl,0fh
add cl,30
mov al,cl
stosw ;存储分钟低4位

and dh,f0h
shr dh,1
shr dh,1
shr dh,1
shr dh,1
add dh,30
mov al,dh
stosw ;存储秒高4位

pop dx
and dh,0fh
add dh,30
mov al,dh
stosw ;存储秒低4位
iret
newint1ch endp
end

我的编译器说不支持

搜索更多相关主题的帖子: pop 
2007-01-08 21:33
菜鸟上路
Rank: 4
等 级:贵宾
威 望:14
帖 子:1120
专家分:0
注 册:2006-3-21
收藏
得分:0 
251ch是什么?
b800h在前面加个0就对了

2007-01-08 22:05
快速回复:帮我看一下?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012499 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved