实验名称:实验五 分支与循环程序设计 二、实验内容:从键盘输入一个四位的16进制数(其中字母为大写),将其转化为二进制数提示输出。 实验过程: 源代码: data segmentbuff1 db 'Please input a number(H):$'buff2 db 10,?,10 dup(?),13,10buff3 db 'The consequent is:$
实验名称:实验三 串操作指令 二、实验内容: 在数据段定义缓冲区,从键盘接收两串字符到两个缓冲区,将第二串中与第一串字符不一致的字符显示在屏幕。 实验过程: 源代码: data segmentmess1 db 16,?,16 dup(?),13,10mess2 db 16,?,16 dup(?),13,10buff1 db 'Please input string1: $'buff2