代码搜索结果
找到约 10,000 项符合
5 的代码
p5_5.m
% Program P5_5
% Determines the binary equivalent of a
% decimal number in sign-magnitude form
d = input('Type in the decimal fraction = ');
b = input('Type in the desired wordlength = ');
d1 = abs(d)
p5_5.m
% Program P5_5
% Determines the binary equivalent of a
% decimal number in sign-magnitude form
d = input('Type in the decimal fraction = ');
b = input('Type in the desired wordlength = ');
d1 = a
p5_5.m
% Program P5_5
% Determines the binary equivalent of a
% decimal number in sign-magnitude form
d = input('Type in the decimal fraction = ');
b = input('Type in the desired wordlength = ');
d1 = abs(d)
ex5-5.hex
:03000000020030CB
:03000B00020040B0
:10003000758901758A18758CFC75A882D28C80FE32
:09004000B290758A18758CFC322F
:00000001FF
ex5-5.sdi
,,,
,,, ORG 0000H ;复位地址
0000,02 00 30,, LJMP MAIN ;跳转到主程序
,,, ORG 000BH ;定时器T0中断
000B,02 00 40,, LJMP SQ ;跳转到定时器T0中断服务程序
,,,
ex5-5.lst
ASEM-51 V1.2 Copyright (c) 1996 by W.W. Heinz PAGE 1
MCS-51 Family Cross Assembler A S E M - 5 1
ex5-5.asm
ORG 0000H ;复位地址
LJMP MAIN ;跳转到主程序
ORG 000BH ;定时器T0中断
LJMP SQ ;跳转到定时器T0中断服务程序
ORG 0030H ;主程序入口
MAIN: MOV TMOD,#01H ;写入T0控制字,