登录
首页 » 汇编语言 » 从键盘读入一个4进制数,CRT显示等效双…

从键盘读入一个4进制数,CRT显示等效双…

于 2022-12-17 发布 文件大小:981.00 B
0 277
下载积分: 2 下载次数: 1

代码说明:

从键盘读入一个四位的十六进制数,CRT显示等值的二进制数. 由于每个十六进制数位对应4个二进制,所以每读入一个十六进制位后,即可将其对应的4个二进制位依次输出。由于数字‘0’~ ‘9’的ASCⅡ码为30H~39H,字母‘a’~‘f’与 ‘A’~‘F’的ASCⅡ码为61H~66H 与41H~46H ,因此,如果输入的字母为数字‘0’~‘9’,则其低4位即为对应的二进制位;如果输入的字符为字母‘a’~‘f’或‘A’~‘F’,则需要减7,然后通过移位将低4位依次输出。 -Reading from the keyboard into a 4 hexadecimal number, CRT display equivalent binary number. Since each hexadecimal number of the corresponding 4-bit binary, so every time into a hexadecimal places, can be its corresponding 4-bit binary sequence output. Due to the number

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • msp430f133 of 24c01 reading and writing, can be modified to read and write byte...
    msp430f133对24c01的读写,可以修改读写字节长度,对其他eeprom进行读写-msp430f133 of 24c01 reading and writing, can be modified to read and write byte length, read and write to other EEPROM
    2022-06-02 17:49:25下载
    积分:1
  • Run the executable program testword.exe, the main interface, the menu that appea...
    运行可执行程序testword.exe,出现菜单主界面,按回车键出现由26个字母组成 的乱序行,这时其中任一字母落下,在键盘上敲入该字母,如果输入正确,字母 消失;按ESC键返回主界面;按空格见暂停;按‘E’退出。-Run the executable program testword.exe, the main interface, the menu that appears, press the Enter key appears composed of 26 letters out of order lines, when any one of the letters fall in the Jianpanshangqiao into the letters, if you type correctly, the letter disappeared Press ESC key to return to the main interface according to space, see the moratorium Press " E" out.
    2022-04-30 18:45:02下载
    积分:1
  • 程序设计
    汇编语言程序设计-assembly language programming
    2023-01-10 15:20:06下载
    积分:1
  • MCD1 real one, to light a LED and continuously put out 3 seconds after the real...
    MCD1实战一,点亮一个LED并持续3秒后熄灭 该实战的目的作为学习和应用MCD1在线调试工具套件,进行项目的软件和硬件 联合调试的范例程序,也就是当做一个用户程序实例,而演示板暂时充当用户电 路的角色。这样就构成了一个软件、硬件齐全的自制项目模拟环境。 本程序实现的功能是,把端口RC的8条引脚全部设置为输出模式,并从RC0输出高电平 从而点亮RC0口的一个LED,持续3秒后LED熄灭. 该程序可用于PIC16F87X(A)所有系列-MCD1 real one, to light a LED and continuously put out 3 seconds after the real purpose for learning and application debugging MCD1 online suite of tools to carry out the project software and hardware examples of joint commissioning procedures, that is, as a user instance, and the demonstration user circuit board to serve as a temporary role. This constitutes a software, hardware, a full range of home-made simulation environment projects. Realize the function of this procedure is that the 8-port RC pin all set to output mode and high output from the RC0 so I RC0 a lit LED, continuous 3 seconds after the LED goes out. The program can be used to PIC16F87X ( A) All Series
    2022-03-05 02:28:25下载
    积分:1
  • 包括多种12864的驱动程序,有用51写的,有其他的,希望对大家有帮助...
    包括多种12864的驱动程序,有用51写的,有其他的汇编,希望对大家有帮助-Including a wide range of 12,864 drivers, a useful 51 written have other compilation, and they hope to have everyone help
    2022-04-29 22:10:22下载
    积分:1
  • DS18B20
    DS18B20-液晶1602显示温度和控制-DS18B20-LCD 1602 shows that the temperature and control
    2022-04-13 00:04:42下载
    积分:1
  • AD9851的应用程序,经验证可以正常使用
    AD9851的应用程序,经验证可以正常使用-AD9851 application, normal use can be proven
    2022-08-07 18:35:42下载
    积分:1
  • Js powerful components, need to download to a friend enjoy.
    强大的jJs powerful components, need to download to a friend enjoy.s组件,需要的朋友尽情的下载把。-Js powerful components, need to download to a friend enjoy.
    2022-05-06 04:17:16下载
    积分:1
  • 记事本,ASM的
    记事本,汇编ASM的-notebook, a compilation of the ASM
    2022-03-02 05:20:56下载
    积分:1
  • DT900数据采集器
    DT900数据采集器-DT900 data acquisition system
    2022-02-21 16:26:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载