-
从键盘读入一个4进制数,CRT显示等效双…
从键盘读入一个四位的十六进制数,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
- 2022-12-17 12:35:03下载
- 积分:1
-
Vehicle race
赛车- Vehicle race
- 2023-03-23 10:35:03下载
- 积分:1
-
A/D测试首先对A/D模块进行初始化操作,当A/D不忙时,进行A/D转化,A/D转化完毕产生中断,并将结果存入数组中。...
A/D测试首先对A/D模块进行初始化操作,当A/D不忙时,进行A/D转化,A/D转化完毕产生中断,并将结果存入数组中。-A/D test first A/D module to initialize the operation, when the A/D not busy when conducting A/D conversion, A/D conversion completion interrupt generated, and the results into the array.
- 2022-03-07 06:31:34下载
- 积分:1
-
89c52的汇编程序,gps通信数据接受
89c52的汇编程序,gps通信数据接受-89C52 the assembler, a GPS data communications acceptable
- 2023-08-31 12:50:03下载
- 积分:1
-
这个运用了win32中的一些内容 由原来的单一的颜色不断换成不同颜色...
这个运用了win32中的一些内容 由原来的单一的颜色不断换成不同颜色-win32 the use of some elements of the original single color constantly replaced by the different colors
- 2022-03-16 01:10:54下载
- 积分:1
-
cdecl函数调用,了解printf这样的函数调用,对比stdcall…
cdecl函数调用,了解printf这样的函数调用,对比stdcall会更清楚。-cdecl function call, to understand such a function call printf, compared stdcall will be clearer.
- 2023-02-02 21:50:03下载
- 积分:1
-
一个简单的小闹钟程序
一个简单的小闹钟程序-a small alarm clock simple procedures
- 2022-07-09 04:53:19下载
- 积分:1
-
很实用的三极管资料,封装:TO
很实用的三极管资料,封装:TO-92,1.5A-very practical transistor, Compliant : TO-92, 1.5A
- 2022-02-11 17:01:15下载
- 积分:1
-
接口8251编程
汇编实现的接口8251编程 一个很好用的代码 上课实验时写的
- 2022-01-25 15:46:36下载
- 积分:1
-
an AD converter code, we do experimental interface, useful download.
一个AD转换代码,是我们做的接口实验,有用的下载。-an AD converter code, we do experimental interface, useful download.
- 2022-05-24 08:22:13下载
- 积分:1