assembly language

An assembly language is a programming language that can be used to directly tell the computer what to do. An assembly language is almost exactly like the machine code that a computer can understand, except that it uses words in place of numbers. A computer cannot really understand an assembly program directly. However, it can easily change the program into machine code by replacing the words of the program with the numbers that they stand for. A program that does that is called an assembler.

アセンブリ言語とは、コンピュータに直接指示を出すことができるプログラミング言語のことです。アセンブリ言語は、数字の代わりに言葉を使うことを除けば、コンピュータが理解できる機械語とほぼ同じである。コンピュータは、アセンブリプログラムを直接理解することはできません。しかし、プログラムの単語を、それを表す数字に置き換えることで、プログラムを簡単に機械語に変えることができます。これを行うプログラムを「アセンブラ」といいます。

Programs written in assembly language are usually made of instructions, which are small tasks that the computer performs when it is running the program. They are called instructions because the programmer uses them to instruct the computer what to do. The part of the computer that follows the instructions is the processor.

アセンブリ言語で書かれたプログラムは、通常、命令で構成されています。命令とは、プログラムを実行しているときにコンピュータが行う小さな作業のことです。プログラマーがコンピュータに何をすべきかを指示するために使用するので、命令と呼ばれています。コンピュータの中で命令を実行する部分がプロセッサです。

The assembly language of a computer is a low-level language, which means that it can only be used to do the simple tasks that a computer can understand directly. In order to perform more complex tasks, one must tell the computer each of the simple tasks that are part of the complex task. For example, a computer does not understand how to print a sentence on its screen. Instead, a program written in assembly must tell it how to do all of the small steps that are involved in printing the sentence.

コンピュータのアセンブリ言語は低レベルの言語であり、コンピュータが直接理解できるような単純な作業を行うためにのみ使用することができます。より複雑なタスクを実行するためには、複雑なタスクの一部である単純なタスクをそれぞれコンピュータに伝えなければならない。例えば、コンピュータは文章を画面に印刷する方法を理解していません。その代わり、アセンブリで書かれたプログラムが、文章を印刷するためのすべての小さなステップを実行する方法を教えなければなりません。

Such an assembly program would be composed of many, many instructions, that together do something that seems very simple and basic to a human. This makes it hard for humans to read an assembly program. In contrast, a high-level programming language may have a single instruction such as PRINT "Hello, world!" that will tell the computer to perform all of the small tasks for you.

このようなアセンブリプログラムは、たくさんの命令で構成されており、人間にとっては非常に単純で基本的なことをやっているように見えます。これでは、人間がアセンブリプログラムを読むのは難しい。一方、高級プログラミング言語では、PRINT "Hello, world!"のような1つの命令で、すべての小さな作業をコンピュータに代行させることができます。

この記事が気に入ったらサポートをしてみませんか?