Модуль ввода-вывода МПС. Совмещенная карта. Адресный селектор. Порты ввода и вывода. Одноразрядный порт, страница 4

         1         STB                                      R                          

                    OE                                                           CS                                                                                          

  IOW                                                                                                                                                 

                                                                                               1                                                                                            

                                                                     +5B                                                                                         

IOR                                                                           

Организация     модуля ввода-вывода с совмещенным полем адресов памяти и портов.                                                                                                                                          

                                                                                                                                                 

При такой адресации  IN PORT и OUT PORT не используются. Соответственно не вырабатывается

стробы  IOR и IOW,  удобно такие стробы иметь. Для этого дорабатывают системный контроллер.

                                                                                                                                                                        

                MEMR                                              MEMR                                                  Порт вывода 9005Н                                    

                                                                                             Для работы с                     Порт ввода    9001Н                                

                 MEMW                                             MEMW          памятью                                                                                                     

       SC     IOR                                                                                                                 LDA 9001H;  ввод в акк.из                             

                                                                                                                                                               порта 9001Н                     

                 IOW                                        1                  &          IOR                                              .          

                                                                                                              Для работы с                   .

                                                                  A15                                      портами                           .

LXIH,9001H;  

                                                                                                                                          MOV C,M  ;в рег.С из                                                                                                                                                                                                                                                                    

                                                                                                 IOW                                                       порта 9001Н

                                                                                     &                                                  STA 9005H ; вывод изакк. 

                                                        1                                                                                                     в порт 9005Н          

LXI H,9005H;

MOV M,C ;вывод из рег.С

в порт 9005Н