Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
system prog new.docx
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
275.7 Кб
Скачать

1)Features of the Assembler. The main programs for work with the Assembler.

The main common features of assembly language (usually not exactly known as a assembler; strictly assembler is a program that is a translator. This program takes a sequence of commands from assembly language to machine language code of the processor) processors coincide with those of all the languages ​​of this type. We note their basic features. [1]

Assembly languages ​​are machine-oriented languages ​​and, therefore, for each type of processor has its own language. Almost every team assembler equivalent to the command on the machine language of the processor. However, programming in assembly, as compared with programming in machine language (machine code level) is greatly facilitated by the possibility of using all the elements of a symbolic notation software (operation codes, addresses, memory, programs and data, variables, and constants, and so the operands etc.). Used symbolic notation elements usually reflect their substantive meaning. When programming in assembly language programmer can not take care of the memory allocation, the appointment of the specific addresses of operands. In the assembler can be issued if a repeated sequence of commands as a macro. The corresponding version of the language, allowing the use of macros, called macro assemblers. In addition, assemblers allow in some form to use when programming a standard cycle-type structure, branching.

When programming in assembler all available system resources and the specific processor (registers, stack memory, etc.). This allows for effective programs in terms of their execution time and memory size needed to accommodate the program. Problems related to the specific hardware and peripherals CPU better and more convenient to solve the assembly language. However, programming in assembly language implies the knowledge of the processor architecture and properties, that is, everything that is included in the concept of a software model of the processor.

2) Data presentation in the computer. Binary and hexadecimal notations. Bits, bytes and words.

In assembly language, the writer has integer and real numbers, and character strings and individual characters. Integers can be signed and unsigned, as well as recorded in BCD format. For integers, characters and commands in the microprocessor and, respectively, in assembly language has processing means - analysis, comparison, search, and so on. For real numbers such funds in the microprocessor is not, they are contained in an arithmetic coprocessor.Binary system just uses only these two numbers of degrees instead of ten, as in ordinary decimal system is used a power of two. To convert a binary number to decimal, we must add to the powers of two, corresponding to the positions where the units are in binary. To differentiate between binary numbers from decimal in assembly language programs at the end of each binary number, the letter «b».

The hexadecimal number systemIn hexadecimal system uses 16 "Numbers": 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C. D, E, F, and the position number corresponds to the number of digits in extent you want to raise the number of 16In assembler programs for writing numbers that begin with A, B, C, D, E, F, at the beginning of the digit 0 is attributed to not be confused with the name of a variable number or other identifier. After hexadecimal numbers, the letter «h».//(Signed numbers)To change the sign, perform an inversion, that is to replace the binary representation of all ones and zeros zeros units and then add 1.(Bits, bytes and words)The smallest unit of information is called a bit. A bit can have only two values, usually 0 and 1. In fact, these values ​​are completely optional - one bit can be either "yes" or "no", to show the presence and absence of the hard drive, if the character is playing a mage or a warrior - the only important thing is that the bit has only two values. But not all values

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]