/ MS-DOS / MS-DOS. / 10 / - (BCD)

Ш

- (BCD)

NPX BCD (- ). BCD? - 4- , 0 9. . , ASCII. 10-4 256 - . .


                               
                  01 0000  0000             01 0000  0000
                               
                  9-8  7...4 3...0              9-8  7...4 3...0
                                                        
                   1     0     0                 2      5    6

         :1x256 + 0x16 + 0x1 = 256     2x256 + 5x16 + 6x1 = 598
         -
         .:1x100 + 0x10 + 0x1 = 100     2x100 + 5x10 + 6x1 = 256

              .10-4.    - 

10-4 , - , ( 4- ), . ? , ASCII BCD. 10-5 , BCD ASCII ( ) 30 ASCII 0 9 ( 30 39). 30h , .


                               
                               01 0000  0000
                               
                               9-8  7...4 3...0
            -            
                          2     5     6
                                          
                                          
                               
                                                     
                                                     
            
             0011      0010  0011      0101   0011      0110  
            
                  7.......0       7........0        7........0
                                                       
                                                       
                   32(Hex)         35(Hex)            36(Hex)
                                                       
                                     
             ASCII                     


                .10-5.    ASCII  BCD

NPX . BCD. BCD NPX. , , .


NPX . ASCII BCD, ( , ). NPX .


Ш

Hosted by uCoz