Skip to content

Amanda-WangXiao/Assembly-Language-Exercise

Repository files navigation

Assembly Language Exercise

Some self-written assembly language programs.
一些自己编写的汇编语言程序。

Introduction

1.Information Retrieval
In the data area, there are nine different information, numbered 0-8, each information includes 20 characters. Receive a number between 0 and 8 from the keyboard, then display the information content of the corresponding number on the screen, press the "q" key to exit.
在数据区,有9 个不同的信息,编号 0-8,每个信息包括20 个字符。从键盘接收0-8 之间的一个编号,然后再屏幕上显示出相应编号的信息内容,按“q”键退出。

2.Multiplication Table
Display the multiplication table with a loop program. Require input of the value a between 0 and 10, showing the multiplication table of values 1 to a.
用循环程序,显示乘法表。要求输入0-10 之间的数值a,显示1 到a 值的乘法表。

3.Conversion
Complete a conversion program between letters or numerals, the main program has five optional sub-functions, according to the corresponding characters can be entered into the corresponding sub-functions and display the results on the screen, press the "q" key to exit. The sub-functions are as follows: 1) realizing the conversion of lower-case letters to upper-case letters; 2) realizing the conversion of upper-case letters to lower-case letters; 3) realizing the conversion of binary numbers to hexadecimal numbers; 4) realizing the conversion of hexadecimal numbers to binary numbers; 5) realizing the conversion of hexadecimal numbers to decimal numbers.
完成一个字母或数制之间的转化程序,主程序分别具有5种可选择的子功能,按相应的字符可分别进入相应的子功能并在屏幕上显示结果,按“q”键退出。子功能分别为:1)实现小写字母向大写字母的转换;2)实现大写字母向小写字母的转换;3)实现二进制数向十六进制数的转换;4)实现十六进制数向二进制数的转换;5)实现十六进制数向十进制数的转换。

4.Statistics
Statistical character count. Enter a line of characters from the keyboard, count the number of letters, spaces, numbers, and other characters, and display them. Requirements: prompt to enter a line of string; keyboard input string, Enter key to end the input, and display the results in a new line.
统计字符数。从键盘输入一行字符,统计字母、空格、数字、其他字符的个数,并显示。要求:提示输入一行字符串; 键盘输入字符串,Enter 键结束输入,并换行显示结果。

5.Competition Score
Write a game scoring program. There are seven judges, scoring according to the percentage system. The scoring principle is to get rid of the highest score and the lowest score and to find the average. Requirements:
(1) The judges'scores are entered from the keyboard in decimal system.
(2) The score is given in decimal system, and one decimal digit is reserved.
(3) There should be corresponding prompts on the screen when I input and output.
编写一个比赛得分程序。共有7个评委,按百分制打分,计分原则是去掉一个最高分和一个最低分,求平均值。要求:
(1)评委的打分以十进制从键盘输入。
(2)成绩以十进制给出,并保留1位小数。
(3)输入输出时屏幕上要有相应提示。

Environment

Windows 10
MASM 13.0

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published