Home Random Page


CATEGORIES:

BiologyChemistryConstructionCultureEcologyEconomyElectronicsFinanceGeographyHistoryInformaticsLawMathematicsMechanicsMedicineOtherPedagogyPhilosophyPhysicsPolicyPsychologySociologySportTourism






Management commands of FPU.

Command : FINCSTP Purpose: Increase the stack pointer -TOR field FPU status register is incremented by 1. If the top is equal to seven, it is reset. This command is not equivalent to the expulsion of ST (0) from the stack, because the data register, called ST (0) and became ST (7) is not marked as empty. Command: FDECSTP Purpose: Reduce the stack pointer -TOR field FPU status register is decremented by 1. If the top is zero, it is set to 7. The contents of data registers and TW is not changed. Command: FFREE operand Purpose: To release the data register-The command notes in the register TW, that operand (data register ST (n)) - empty. The contents of the register and TOP are not changed. command: FINIT Purpose: Initialize FPU command: FNINIT Purpose: Initialize FPU without waiting –commands FINIT FNINIT and restore the default values ​​in registers CR, SR, TW, and beginning with 80387 - FIP and FDP control register is initialized to 037Fh (rounded to the nearest 64-bit precision, all exceptions are masked). The status register is reset to zero (TOP = 0, no flags are not set exceptions). Data register is not modified, but they are marked in the register empty TW. FIP, and FDP registers are reset. Command FINIT, unlike FNINIT, checks and unhandled exception occurred and processes them before initialization. Team FINIT completely equivalent to (and actually is) WAIT FNINIT. command: FCLEX Purpose: Reset exception flags command: FNCLEX Purpose: Reset exception flags without delay - Commands zeroed exception flags (PE, UE, OF, ZE, DE, IE), and flags ES, SF and a status register in FPU. Command FCLEX, unlike FNCLEX, checks and unhandled exception occurred and processes them before execution. Team FCLEX completely equivalent to (and actually is) WAIT FNCLEX. command: FSTCW receiver Purpose: Save CR register command: FNSTCW receiver Purpose: Save CR register without delay-Commands copy the contents of the CR to the receiver (16-bit variable). Command FSTCW, unlike FNSTCW, checks and unhandled exception occurred and processes them before execution. Team FSTCW completely equivalent to (and actually is) WAIT FNSTCW. command: FLDCW source Purpose: Download the CR register -Copies the contents of the source (16-bit variable) in the register CR. If one or more of the exceptions set of flags in the SR register and disguised in CR, and the team FLDCW these masks are removed, an exception will be processed before the next instruction FPU (except for commands without waiting). To prevent this from happening, usually before FLDCW execute command FCLEX. command: FSTENV receiver Purpose: Save auxiliary registers command: FNSTENV receiver Purpose: Save auxiliary registers without waiting -Saves all the supporting FPU registers in the receiver (14 or 28 bytes in memory, depending on the length of operands), and masks all exceptions. Saves the contents of the registers CR, SR, TW, FIP, FDP and the last command in a format that depends on the current length of operands and addresses (7 double words for 32-bit operands and 7 words for the 16-bit operands). The first word (or the lower half of the first double word in the 32-bit case) always contains the CR, the second word - SR, the third word - TW, fourth - FIP. Using the last three words varies depending on the current bit addressing and operands. command: FLDENV source Purpose: Download the auxiliary registers-This command loads the auxiliary registers all FPU (registers CR, SR, TW, FIP, FDP) from the source (memory area 14 or 28 bytes, depending on the bit operands) previously stored command FSTENV / FNSTENV. If the downloadable SW installed a few (or one) flag exceptions that are not masked by the flags of both CR, these exceptions will be made before the next command FPU (except for commands without waiting).



Command: FSAVE receiver Purpose: Save FPU state Command: FNSAVE receiver Purpose: Save FPU state without waiting-Saves the state of the FPU (data registers and auxiliary registers) to the receiver (the memory size of 94 or 108 bytes, depending on the length of operands), and initializes the FPU similarly commands FINIT / FNINIT. Command FSAVE, unlike FNSAVE, checks and unhandled exception occurred and processes them before execution. Team FSAVE completely equivalent to (and actually is) WAIT FNSAVE. This command is typically used by the operating system when switching tasks or programs that need to transmit procedure is called to clean FPU.

 

 

14. ASCII symbols and scan codes. The American Standard Code for Information Interchange- is a character-encoding scheme originally based on the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many additional characters.This table shows to us ASCII symbols in beginner order:

Code Name Ctrl-code assignment Code Name Ctrl-code assignment

00 NUL ^ @ Empty (end of line) 01 SOH ^ A Start of Header

02 STX ^ B Start of Text 03 EOT ^ C End of Text

04 ENQ ^ D End of transmission 06 ACK ^ F Confirmation

07 BEL ^ G Bell 08 BS ^ H Step Back

09 HT ^ I Horizontal tab 0A LF ^ J Line Feed

0B VT ^ K Vertical Tab 0C FF ^ L Translations page

0D CR ^ M Carriage Return 0E SO ^ N Pull

0F SI ^ O Move

Here we can see the scan codes of ASCII.there we can see how we can enter the scan codes with help of keyboard:

 

 


Date: 2015-01-29; view: 1148


<== previous page | next page ==>
Work with the keyboard. The data buffer BIOS. Using MS DOS function. | Translation of programs. Directive INCLUDE.
doclecture.net - lectures - 2014-2024 year. Copyright infringement or personal data (0.005 sec.)