Home Random Page


CATEGORIES:

BiologyChemistryConstructionCultureEcologyEconomyElectronicsFinanceGeographyHistoryInformaticsLawMathematicsMechanicsMedicineOtherPedagogyPhilosophyPhysicsPolicyPsychologySociologySportTourism






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

 


Date: 2015-01-29; view: 1164


<== previous page | next page ==>
Features of the Assembler. The main programs for work with the Assembler. | Main unprivileged commands. Data transfer.
doclecture.net - lectures - 2014-2024 year. Copyright infringement or personal data (0.006 sec.)