91黄动漫 I 欧美 日韩 国产 成人 在线 I a级成人毛片 I 农村黄色片 I 男生捅女生的肌肌 I 精品99一区二区三区 I 妃光莉av I 日日夜夜操操 I 性中国古装videossex I 久久不卡av I 美女高潮动态图 I 极品美女开粉嫩精品 I 牛牛精品一区二区 I 91精品福利视频 I 成人刺激视频 I 91国内精品视频 I 中国一级特黄毛片大片 I 校长狠狠挺进校花体内小说 I 欧美激情黄色片 I 欧美久久久一区 I 爱豆国产剧免费观看大全剧苏畅 I 麻豆国产人妻欲求不满谁演的 I 亚洲一区二区在线免费观看视频 I 国产超碰av人人做人人爽 I 精品国产第一国产综合精品 I 久久免费看av I 欧美一区二区三区白人 I 国产精品夫妻激情 I 校花被肉干高h潮不断 I 欧美最猛黑人xxxx黑人表情 I 国产欧美日韩一区二区搜索 I 极品女神露脸呻吟啪啪 I 人人天天久久 I 亚洲动漫在线 I 日本91福利区 I 五月天 桃色 开心 I av在线免费观看国产 I 男人添女人的免费视频 I 夜夜穞天天穞狠狠穞

duhuaiguo
級別: *
精華主題: * 篇
發帖數量: * 個
工控威望: * 點
下載積分: * 分
在線時間: (小時)
注冊時間: *
最后登錄: *
查看duhuaiguo的 主題 / 回貼
樓主  發表于: 2009-09-01 18:48
This is the main handler of the MMI profile container

Parameters : fb_in_offset   First byte in the input container
             fb_out_offset  First byte in the output container
             db_address     Number of the database to use
             con_len        Length of container in bytes (min.32)  

Example : The terminal is configured to be on input and output byte 64,
          32 bytes allocated  and database to communcate with is 51:
          fb_in_offset  = 64
          fb_out_offset = 64
          db_address    = 51
          con_len       = 32

The function block handles one complete container in one scan. If read index,
FC111 is called.
If write index, FC112 is called.
Note that the control byte is not set until next scan, to avoid timing problems



      L     #fb_in_offset               // Incontainer start address
      T     MW   496                    // Remember incontainer start
      T     MW   500

      L     #fb_in_offset               // Incontainer start address
      SLD   3                           //
      LAR1  
      L     IB [AR1,P#0.0]              // Get the proper control byte from inp.container
      T     MB   486                    // Store it

      L     #fb_out_offset              // Outcontainer start address
      T     MW   498                    // Store it
      T     MW   502

      L     #m_110                      // Previous input control byte
      T     MB   479                    // Store it

      L     0
      T     MB   474                    // Clear error code

      A     M    479.0
      R     M    479.0                  // Clear error flag

      A     M    486.6                  // Terminal present ?
      JC    WEI1                        //
      L     1                           // Error 1 : Comm error
      JU    FEH                         //

WEI1: A     M    486.5                  // Does the terminal toggle the toggle bit ?
      AN    M    486.5
      L     S5T#2S                      // Timeout timer
      SD    "Terminal timeout"
      AN    "Terminal timeout"
      JC    WEI2
      L     2                           // Error 2 : Terminal not in RUN
      JU    FEH

WEI2: A     M    486.7                  // Test if new container
      A     M    479.7                  // Compare old container byte with the new one
      O    
      AN    M    486.7
      AN    M    479.7
      JC    ENDE                        // No new container

      A     M    486.7                  // Pulse
      =     M    479.7

      L     MW   498                    // Outcontainer pointer
      L     4
      +I    
      T     MW   498                    // First data position : 4

      L     MW   496                    // Incontainer pointer
      L     4
      +I    
      T     MW   496                    // First index position : 4
//    
LOOP: NOP   0
      L     MW   496                    // Incontainer pointer
      ITD  
      SLD   3
      T     MD   504                    // Make it double word
      L     IB [MD 504]                 // Get first index byte
      T     MB   486                    // Store it
      L     MB   486
      L     0
      ==I  
      JC    DONE                        // Jump out if index is 0

      A     M    486.7                  // Is it a read index ?
      JC    ANK1
      CALL  "READ INDEX OP PANEL"       // Then call read index function
       DataBase:=#db_address
ANK1: NOP   0
      L     MB   478                    // Check return value from FC111
      L     0
      ==I  
      JC    WEI3                        // Was there an error return ?
      AN    M    479.0
      S     M    479.0                  // Then, set error bit
      L     MB   478
      JU    FEH                         // Jump to error
WEI3: AN    M    486.7                  // Is it a write index ?
      JC    WEI4
      CALL  "WRITE INDEX OP PANEL"      // Then call write index function
       DataBase:=#db_address
      L     MB   478                    // Check return value from FC112
      L     0
      ==I  
      JC    WEI4                        // Was there an error return ?
      AN    M    479.0
      S     M    479.0                  // Then set error bit
      L     MB   478                    //
      JU    FEH                         // Jump to error
WEI4: L     MW   496                    // Check if incontainer is done
      L     MW   500
      -I    
      L     #con_len
      <I    
      A(    
      L     MW   498                    // .. or that outcontainer is done
      L     MW   502
      -I    
      L     #con_len
      <I    
      )    
      JC    LOOP                        // Continue id conatiner not completed
DONE: L     #fb_in_offset               // Container done !
      SLD   3
      LAR1  
      L     IB [AR1,P#0.0]              // Get input control byte

      T     MB   486                    // Store it
      JU    ENDE
//-------  ERROR HANDLING  ---------
FEH:  T     MB   474                    // Store error code
FEH1: L     MW   498
      ITD  
      SLD   3
      T     MD   504

      L     0                           // Write controlbyte to output container
      T     QB [MD 504]

      L     1
      L     MW   498

      +I    
      T     MW   498

      L     MW   502
      -I                                // INTERNES MERKERBYTE SICHERN

      L     32
      <I    

      JC    FEH1
ENDE: NOP   0
      NOP   0
      AN    M    486.6
      S     M    486.6                  // Set the COM-bit
      AN    M    486.5
      =     M    486.5                  // Toggle the Toggel-bit
      A     M    479.0
      =     M    486.4
//----------------------
      L     MB   486                    // Delay answer one scan to avoid timing problems
      T     #out_this_cycle
      L     #fb_out_offset
      SLD   3
      LAR1  
      L     #out_last_cycle
      T     QB [AR1,P#0.0]
      L     #out_this_cycle
      T     #out_last_cycle
      L     MB   479
      T     #m_110
      NOP   0

主站蜘蛛池模板: 色妞综合网| 国产精品久久久久久久久岛国 | 国产亚洲精品一区二区三区 | 久久精品国产欧美日韩 | 中文字幕久久综合伊人 | 日韩毛片基地 | 久热爱精品视频在线9 | 色婷婷网 | 国产成人无码精品久久久露脸 | 90后极品粉嫩小泬20p | 国产人伦精品一区二区三区 | 孕妇怀孕高潮潮喷视频孕妇 | 欧美黄色片免费看 | 欧美老妇交zozo人 | 久久日本理伦片aaaaaaa | 国产乱人伦av在线麻豆a | 欧美激情一二三 | 黄页嫩草| 波多野结衣亚洲视频 | 亚洲在av极品无码 | 欧美牲交a欧美牲交aⅴ一 | 国产成人免费观看视频 | 真正免费毛片在线播放 | 亚洲视频在线观看一区二区 | 日本a v网站| 色婷婷综合缴情综免费观看 | 国产区精品福利在线社区 | 99爱在线精品免费观看 | 亚洲人成伊人成综合网中文 | 人妻av中文字幕无码专区 | 亚洲第一色网 | 丝袜高潮流白浆潮喷在线播放 | 久久久久一区二区三区 | 国产在线精品国自产拍影院 | 国产精品爆乳奶水无码视频 | av老司机久久 | 粗了大了 整进去好爽视频 91香蕉影院 | 精品久久国产综合婷婷五月 | 国产精品偷伦视频免费还看的 | 中文精品一卡2卡3卡4卡国色 | 毛片一区二区 | 四色米奇777狠狠狠me | 一区二区三区精品视频 | 九九九九热 | 97超级碰碰碰 | 欧美日韩一区二区三区免费 | 黄网在线免费 | 婷婷伊人五月色噜噜精品一区 | 国产高清精品福利私拍国产写真 | 超清中文乱码字幕在线观看 | 十八禁在线观看视频播放免费 | 亚洲国产成人无码网站大全 | 女人高潮a毛片在线看 | 中文字幕乱码熟妇五十中出 | 国产精品对白 | 18禁动漫美女禁处被爆桶出水 | av爱爱网站 | 久久综合狠狠色综合伊人 | 欧洲国产精品无码专区影院 | 啦啦啦www播放日本观看 | 国产欧美日韩亚洲一二三区 | 中国女人一级片 | 99色99| 成a人片亚洲日本久久 | 午夜福利无遮挡十八禁视频 | 丁香五月天综合缴情网 | 极品少妇粉嫩小泬v片可看 少妇一级淫片免费放正片 一级一毛片a级毛片 | 性色欲情网站iwww | 99热日韩 | 久艹在线观看视频 | 色婷婷国产精品视频 | 裸体女人高潮毛片 | 久久夜夜操妹子 | 欧美高清另类 | 99热爱久久99热爱九九热爱 | 在线毛片片免费观看 | 91麻豆视频在线观看 | 国产在线观看av | 夜夜操天天射 | 国产一二区精品 | 无码专区无码专区视频网址 | 色综合色综合色综合 | 开心黄色网 | 国产在线视频网 | 国产午夜一区二区 | 操天天操 | 欧美亚洲日韩国产网站 | 国产成人小视频在线观看 | 国产精品毛片一区 | 92国产精品午夜福利免费 | 在线a网站| 日本美女黄网站 | 亚洲综合无码精品一区二区三区 | 91老女人| 激情综合婷婷丁香五月情 | 午夜影院h | 亚洲最大的成人网 | 亚洲色大成网站www在线观看 | 国产精品人妻熟女男人的天堂 |