1. Trang chủ
  2. » Công Nghệ Thông Tin

Giáo trình phân tích ứng dụng cấu tạo và công dụng của máy in theo setup catridge p6

5 2 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 214,37 KB

Nội dung

Tham khảo tài liệu ''giáo trình phân tích ứng dụng cấu tạo và công dụng của máy in theo setup catridge p6'', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả

y o c u -tr a c k c - The base is ten – there are 10 different symbols, the digits 0, 1, 2, etc upto - To represent value less than ten involves only one digit larger values need two or more digits  Binary system - The base must be two, with only the digits and available - To show values of two or ever require two or more binary digits  Octal system - Octal system has eight as its base, it uses the symbol 0, 1, up to only - Two or more digits are needed for values of eight and above  Hexadecimal system(hex) - Hexadecimal system has sixteen as its base, it use the symbols 0, 1, ,9 & A, B, C, D, E, F, to stand for the “digits” ten, eleven, twelve, thirteen, fourteen, fifteen Question Converting from Bases To Bases? Change the decimal - Binary: Eg (2559) 10 2559 1279 639 319 159 79 (2559)10 = (10111111111)2 39 19 0 - Octal: 7690 49 96,1 10 16 120 40 15 11 (7690)10 = (17012)8 6396 159 156 1221 Hexadecimal: 16 399 79 16 24 15 81 16 11 d o m o w w w d o C lic k to bu y bu to k lic C w w w N O W ! h a n g e Vi e N PD ! XC er O W F- w m h a n g e Vi e w PD XC er F- c u -tr a c k c y o c u -tr a c k c C F (6369)10 = (CF81)16 Convert to others from binary - To decimal (101010)2 (?)10 1.25 + 0.24 + 1.23 + 0.22 + 1.21 + 0.20 = 42 (101010)2 = (42)10 - To octal 100101101  1st step change into denary = 1.28 + 1.25 + 1.23 + 1.22 + 1.20 = 256 + 32 + + + =(301)10  2nd step: convert to octal 301 61 37 5 (301)10 = (455)8 - (100101101)2 = (455)8 To hexadecimal 110111011011 1st step = 1.211 + 1.210 + 1.28 + 1.27 + 1.26 + 1.24 + 1.23 + 1.21 + 1.20 = 2048+ 1024 + 256 + 158 + 64 + 16 + + + = (3547)10 nd step 3547 16 384 221 16 27 61 13 11 13 (3547)10 = (CCA)16 (110111011011)2 = (CCA)16 Convert into binary and display the answer in normalized exponential form 247 123 61 30 1 1 d o m o w w w d o C lic k to bu y bu to k lic C w w w N O W ! h a n g e Vi e N PD ! XC er O W F- w m h a n g e Vi e w PD XC er F- c u -tr a c k c y o c u -tr a c k c 15 1 1 1 (247)10 = (11110111)2 = 1111011 x normalized exponential form Question Integer and Floating – point arithmetic? Floating – point Addition a (0.1011 x 25 ) + (0.1001 x 25 ) = (0.1011 + 1001) x 25 = 1.0100 x 25 = 0.10100 x 26 b (0.1001 x 23 ) + (0.1110 x 25 ) = (0.001001 x 25 ) + (0.1110 x 25 ) = (0.001001 + 0.111000) x 25 = 1.000001 x 25 = 0.1000 x 26 (here have truncation) (0.1000001 x 26 ) Floating – point subtraction a (0.1110 x 27 ) – (0.1100 x 27 ) = 0.0010 x 27 = 10 x 25 b (0.1001 x 28 ) – ( 0.1000 x 25 ) = (0.1001 x 28 ) – ( 0.0001 x 28 ) = 0.1000 x 28 Floating – point multiplication a (0.1010 x 23 ) x (0.1100 x 23 ) = (0.1010 x 0.1100) x 26 = 0.01111 x 26 = 0.1111 x 25 b (0.11110 x 23 ) x ((0.01011) x 24 ) = (0.11110 x 01011) x 27 = 0.001111 x 27 = 0.1111 x 25 Floating – point division a (0.11010 x 26) : (0.001 x 26) = (0.11010 x 26) : (1 x 23) = 0.1101 x 26 : 1x 23 = 0.1101 x b (0.110111 x 26) : (0.1001 x 24) = (0.110111 : 0.1001) x 22 = (1101.11 : 1001) x 22 = 1.100001 x 22 = 0.1100001 x 23 Chapter 3: TYPES OF INSTRUCTION AND ADDRESSING .d o m o w w w d o C lic k to bu y bu to k lic C w w w N O W ! h a n g e Vi e N PD ! XC er O W F- w m h a n g e Vi e w PD XC er F- c u -tr a c k c y o c u -tr a c k c Question Types of instructions used in CS? Arithmetic instructions Arithmetic instructions include directives to the computers to perform additions, subtraction, multiplications, divisions and exponentiations Input/ output instructions They direct the computer to read data values from the specified input devices into the main store for processing They also include instructions to write the contents of memory locations holding the result of processing to a specified output device Decision or control instructions Most data processing application will contain situations where alternative calculations or procedures will have to be executed based on the result of condition tests carried out Data handling instructions They include the copying of the content of one memory location to another or setting a memory locations to an initial value Also include the management or insertion of characters into data items Examples of such instructions include branch instructions, jump instruction & stop instruction Question Types of addressing? Direct addressing The operands of each machine instructions is used to retrieve the data Indirect addressing The operands is used to specify the memory address which contains the address of the data to be processed Op – code OP – CODE OPERAND OP – CODE OPERAND 12345 Data item 12345 Data item Main storage Direct addressing Indirect addressing Indexed addressing - The main applications of this type of addressing technique is to enable to access of sequential locations in memory that are adjacent to each other - Each adjcent memory address has value n+1, where n is the address of the previous location - When the first of the location have been accessed, the next memory location in sequence is accessed by simply increasing the add of the present location by & using accessing it d o m o w w w d o C lic k to bu y bu to k lic C w w w N O W ! h a n g e Vi e N PD ! XC er O W F- w m h a n g e Vi e w PD XC er F- c u -tr a c k c y o c u -tr a c k c - The starting address of the series of locations is specified in the operand of the instruction In order to access the next location in sequence, the content of the index register is increased by a added to the opreand address This is done repeatedly until the last memory location in the series is processed Indexed addressing OP – CODE OPERAND Index Register Data Data Data Data Chapter 4: PROGRAMMING LANGUAGES Question Program and level of language? Program is group of constructions that is linked together to perform specific task It’s necessary for a computer program to be written in a “PL” because at a computer program is created by a programing using a sys analyst’s specification of the job in the hand Machine language - ML is the set of bit(0,1) that can performed considered by CPU - Ads  fast  short prog  store in small memory - Dis  difficult to understand & remember its code  takes a lot of time to programming  difficult to use Low level language - LLL is used to dercribe exactly procedure of performance of CPU at certain time - Features:  Instruction is written by natrural English or natural language  More powerful and so the prog is shortest  Need less instruction  Is a one to one relationship between the written instruction and the machine instructions  It’s instruction tend to be machine It runs in OS d o m o w w w d o C lic k to bu y bu to k lic C w w w N O W ! h a n g e Vi e N PD ! XC er O W F- w m h a n g e Vi e w PD XC er F- c u -tr a c k c ... characters into data items Examples of such instructions include branch instructions, jump instruction & stop instruction Question Types of addressing? Direct addressing The operands of each machine instructions... item Main storage Direct addressing Indirect addressing Indexed addressing - The main applications of this type of addressing technique is to enable to access of sequential locations in memory... exponentiations Input/ output instructions They direct the computer to read data values from the specified input devices into the main store for processing They also include instructions to write

Ngày đăng: 08/05/2021, 17:25