【200+50分】哪位大神能帮忙翻译一下汇编语言?最好逐句翻译,谢谢
我们是想做一个湿敏传感器,程序是下边的,哪位大神能帮帮忙??最好逐句翻译一下,谢谢!悬赏分我不在乎,我给最高分,只要大家帮我仔细翻译,最好逐句,那分数多多滴!还可以追加5...
我们是想做一个湿敏传感器,程序是下边的,哪位大神能帮帮忙??最好逐句翻译一下,谢谢!
悬赏分我不在乎,我给最高分,只要大家帮我仔细翻译,最好逐句,那分数多多滴!还可以追加50分!!!
;HUMIDITY.ASM
CS0809 EQU 04D0H
CON8279 EQU 0492H
DAT8279 EQU 0490H
ASSUME CS:CODE
CODE SEGMENT PUBLIC
ORG 100H
START: MOV DX,CS0809
MOV AL,34H
OUT DX,AL
WAIT: MOV CX,0010H
WAIT1: NOP
NOP
LOOP WAIT1
MOV DX,CS0809
IN AL,DX
MOV BL,AL
MOV DI, OFFSET VALUETAB
MOV BH, 00H
COMP1: MOV AL, CS:[DI]
CMP AL, BL
JBE PRO1
JMP PRO2
PRO1: INC BH
INC DI
JMP COMP1
PRO2: MOV DI, OFFSET HUMTAB
MOV AL, BH
MOV AH, 00H
ADD DI, AX
MOV AL, CS:[DI]
MOV AH, 00H
MOV BL, 0AH
DIV BL
MOV BH, AL
MOV BL, AH
DISP: MOV DI,OFFSET SEGCOD
MOV AX,08H
MOV DX, CON8279
OUT DX, AX
MOV AX, 90H
MOV DX, CON8279
OUT DX, AX
MOV DX, DAT8279
MOV AL, BH
MOV AH, 00H
ADD DI, AX
MOV AL,CS:[DI]
OUT DX,AL
NOP
NOP
MOV DI,OFFSET SEGCOD
MOV AL, BL
MOV AH, 00H
ADD DI, AX
MOV AL,CS:[DI]
OUT DX, AL
DELAY: MOV CX, 2710H
DELAY1: NOP
NOP
LOOP DELAY1
JMP START
SEGCOD DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H
VALUETAB DB 00H,03H,1CH,7CH,7FH,0BCH,0E3H,0E4H,0FBH,0FFH
HUMTAB DB 1EH,1EH,1EH,23H,28H,2DH,32H,37H,3CH,41H,46H
CODE ENDS
END START
还想问一句为什么显示出来的数都是5的倍数?怎么改变一下?改成比如3的倍数? 展开
悬赏分我不在乎,我给最高分,只要大家帮我仔细翻译,最好逐句,那分数多多滴!还可以追加50分!!!
;HUMIDITY.ASM
CS0809 EQU 04D0H
CON8279 EQU 0492H
DAT8279 EQU 0490H
ASSUME CS:CODE
CODE SEGMENT PUBLIC
ORG 100H
START: MOV DX,CS0809
MOV AL,34H
OUT DX,AL
WAIT: MOV CX,0010H
WAIT1: NOP
NOP
LOOP WAIT1
MOV DX,CS0809
IN AL,DX
MOV BL,AL
MOV DI, OFFSET VALUETAB
MOV BH, 00H
COMP1: MOV AL, CS:[DI]
CMP AL, BL
JBE PRO1
JMP PRO2
PRO1: INC BH
INC DI
JMP COMP1
PRO2: MOV DI, OFFSET HUMTAB
MOV AL, BH
MOV AH, 00H
ADD DI, AX
MOV AL, CS:[DI]
MOV AH, 00H
MOV BL, 0AH
DIV BL
MOV BH, AL
MOV BL, AH
DISP: MOV DI,OFFSET SEGCOD
MOV AX,08H
MOV DX, CON8279
OUT DX, AX
MOV AX, 90H
MOV DX, CON8279
OUT DX, AX
MOV DX, DAT8279
MOV AL, BH
MOV AH, 00H
ADD DI, AX
MOV AL,CS:[DI]
OUT DX,AL
NOP
NOP
MOV DI,OFFSET SEGCOD
MOV AL, BL
MOV AH, 00H
ADD DI, AX
MOV AL,CS:[DI]
OUT DX, AL
DELAY: MOV CX, 2710H
DELAY1: NOP
NOP
LOOP DELAY1
JMP START
SEGCOD DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H
VALUETAB DB 00H,03H,1CH,7CH,7FH,0BCH,0E3H,0E4H,0FBH,0FFH
HUMTAB DB 1EH,1EH,1EH,23H,28H,2DH,32H,37H,3CH,41H,46H
CODE ENDS
END START
还想问一句为什么显示出来的数都是5的倍数?怎么改变一下?改成比如3的倍数? 展开
展开全部
我的逐行注释昨晚已完成了,但不愿在此主楼贴出我的注释内容。原因是:
我的注释含有原程序全部代码,可能被误判为与别人回答大部分重复,将我的解答作违规处理。
若楼主将此主楼关闭(预扣的分数自动返馈给楼主),再另发新的提问主帖,
我乐意将逐行注释内容及有关的编程建议发到楼主的新提问主帖中。
我的注释含有原程序全部代码,可能被误判为与别人回答大部分重复,将我的解答作违规处理。
若楼主将此主楼关闭(预扣的分数自动返馈给楼主),再另发新的提问主帖,
我乐意将逐行注释内容及有关的编程建议发到楼主的新提问主帖中。
追答
为避免因原程序代码与别人的回答相同被百度系统误判违规,我的注释以截图上传:
(点击图中某处可见到大图显示)
若楼主想要文本方式的注释,请光临我的百度空间:
http://hi.baidu.com/gnfcxccgfgcmuyr/item/9baf8a3b2cf1acd96d15e9e8
展开全部
humidity.asm;
CS0809
EQU 04D0H
cs0809设备04d0h
CON8279
EQU 0492H
con8279设备0492h
DAT8279
EQU 0490H
dat8279设备0490h
ASSUME
CS:CODE
例子的源代码
CODE
SEGMENT PUBLIC
代码段
ORG
100H
org 100h
START:
MOV DX,CS0809
启动:MOV
DX,cs0809
MOV
AL,34H
MOV AL,34h
OUT DX,AL
了DX,铝
WAIT: MOV
CX,0010H
等待:MOV
CX,0010h
WAIT1:
NOP
wait1:NOP
NOP
NOP
LOOP
WAIT1
环wait1
MOV
DX,CS0809
mov
dx,cs0809
IN AL,DX
在Al,DX
MOV
BL,AL
MOV
BL,铝
MOV DI,
OFFSET VALUETAB
第二,偏移valuetab
MOV BH,
00H
MOV
BH,00H
COMP1:
MOV AL, CS:[DI]
设置组件:MOV
AL,CS:[二]
CMP AL,
BL
CMP AL,BL
JBE PRO1
日本乙型脑炎PRO1
JMP
PRO2
JMP 2
PRO1: INC
BH
PRO1:公司BH
INC
DI
公司地
JMP
COMP1
JMP设置组件
PRO2: MOV
DI, OFFSET HUMTAB
摘要:MOV迪,偏移humtab
MOV AL,
BH
MOV AL,BH
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV AL,
CS:[DI]
MOV AL,CS:[二]
MOV AH,
00H
MOV
AH,00H
MOV BL,
0AH
MOV
BL,0AH
DIV BL
div BL
MOV BH,
AL
MOV
BH,铝
MOV BL,
AH
MOV
BL,啊
DISP: MOV
DI,OFFSET SEGCOD
显示:MOV迪,偏移segcod
MOV
AX,08H
MOV
AX,08H
MOV DX,
CON8279
mov
dx,con8279
OUT DX,
AX
从AX
DX,
MOV AX,
90H
MOV
AX,90h
MOV DX,
CON8279
mov
dx,con8279
OUT DX,
AX
从AX
DX,
MOV DX,
DAT8279
mov
dx,dat8279
MOV AL,
BH
MOV AL,BH
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV
AL,CS:[DI]
MOV AL,CS:[二]
OUT DX,AL
了DX,铝
NOP
NOP
NOP
NOP
MOV
DI,OFFSET SEGCOD
第二,偏移segcod
MOV AL,
BL
MOV AL,BL
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV
AL,CS:[DI]
MOV AL,CS:[二]
OUT DX,
AL
了DX,铝
DELAY:
MOV CX, 2710H
延迟:MOV
CX,2710h
DELAY1:
NOP
delay1:NOP
NOP
NOP
LOOP
DELAY1
环delay1
JMP
START
JMP开始
SEGCOD DB
3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H
segcod DB
3Fh,06h,5bh,4Fh,66h,6dh,7dh,07,7FH,6fh,77h,7CH,39h,5eh,79h,71h
VALUETAB
DB 00H,03H,1CH,7CH,7FH,0BCH,0E3H,0E4H,0FBH,0FFH
valuetab DB
00H,03H,数据,7CH,7FH,0bch,0e3h,0e4h,0fbh,0FFH
HUMTAB DB
1EH,1EH,1EH,23H,28H,2DH,32H,37H,3CH,41H,46H
humtab DB
1Eh,1Eh,1Eh,23h,28h,2DH,32h,37H,3通道,41h,46h
CODE
ENDS
代码结束
END
START
结束的开始
CS0809
EQU 04D0H
cs0809设备04d0h
CON8279
EQU 0492H
con8279设备0492h
DAT8279
EQU 0490H
dat8279设备0490h
ASSUME
CS:CODE
例子的源代码
CODE
SEGMENT PUBLIC
代码段
ORG
100H
org 100h
START:
MOV DX,CS0809
启动:MOV
DX,cs0809
MOV
AL,34H
MOV AL,34h
OUT DX,AL
了DX,铝
WAIT: MOV
CX,0010H
等待:MOV
CX,0010h
WAIT1:
NOP
wait1:NOP
NOP
NOP
LOOP
WAIT1
环wait1
MOV
DX,CS0809
mov
dx,cs0809
IN AL,DX
在Al,DX
MOV
BL,AL
MOV
BL,铝
MOV DI,
OFFSET VALUETAB
第二,偏移valuetab
MOV BH,
00H
MOV
BH,00H
COMP1:
MOV AL, CS:[DI]
设置组件:MOV
AL,CS:[二]
CMP AL,
BL
CMP AL,BL
JBE PRO1
日本乙型脑炎PRO1
JMP
PRO2
JMP 2
PRO1: INC
BH
PRO1:公司BH
INC
DI
公司地
JMP
COMP1
JMP设置组件
PRO2: MOV
DI, OFFSET HUMTAB
摘要:MOV迪,偏移humtab
MOV AL,
BH
MOV AL,BH
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV AL,
CS:[DI]
MOV AL,CS:[二]
MOV AH,
00H
MOV
AH,00H
MOV BL,
0AH
MOV
BL,0AH
DIV BL
div BL
MOV BH,
AL
MOV
BH,铝
MOV BL,
AH
MOV
BL,啊
DISP: MOV
DI,OFFSET SEGCOD
显示:MOV迪,偏移segcod
MOV
AX,08H
MOV
AX,08H
MOV DX,
CON8279
mov
dx,con8279
OUT DX,
AX
从AX
DX,
MOV AX,
90H
MOV
AX,90h
MOV DX,
CON8279
mov
dx,con8279
OUT DX,
AX
从AX
DX,
MOV DX,
DAT8279
mov
dx,dat8279
MOV AL,
BH
MOV AL,BH
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV
AL,CS:[DI]
MOV AL,CS:[二]
OUT DX,AL
了DX,铝
NOP
NOP
NOP
NOP
MOV
DI,OFFSET SEGCOD
第二,偏移segcod
MOV AL,
BL
MOV AL,BL
MOV AH,
00H
MOV
AH,00H
ADD DI,
AX
添加DI,斧
MOV
AL,CS:[DI]
MOV AL,CS:[二]
OUT DX,
AL
了DX,铝
DELAY:
MOV CX, 2710H
延迟:MOV
CX,2710h
DELAY1:
NOP
delay1:NOP
NOP
NOP
LOOP
DELAY1
环delay1
JMP
START
JMP开始
SEGCOD DB
3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H
segcod DB
3Fh,06h,5bh,4Fh,66h,6dh,7dh,07,7FH,6fh,77h,7CH,39h,5eh,79h,71h
VALUETAB
DB 00H,03H,1CH,7CH,7FH,0BCH,0E3H,0E4H,0FBH,0FFH
valuetab DB
00H,03H,数据,7CH,7FH,0bch,0e3h,0e4h,0fbh,0FFH
HUMTAB DB
1EH,1EH,1EH,23H,28H,2DH,32H,37H,3CH,41H,46H
humtab DB
1Eh,1Eh,1Eh,23h,28h,2DH,32h,37H,3通道,41h,46h
CODE
ENDS
代码结束
END
START
结束的开始
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询