;
;          io_sys.txt
;    /   
;    ,    
;     TERMINAL   
; (   /  / )
; KOTUINO mode 2     PGX051
;
;
;----------------------------------------------
   .cseg at 0xFC00 ;(    .xseg at 0xFC00)
 com_string:
      ljmp start_system ;    /
			 ;  
       ;       
       ;  
      .ds 13 ;     
          ;  16  1024 
 reinfo:
      .ds 256 ;     
          ; 
 start_system:
        setb P3.KEY_EA ;    
        nop ;   
        nop
        setb EA ; EI  
        LLPRINT str0 ;   - 
 res_user:
       mov DPTR,#com_string
       mov a,#0x02
       movx @dptr,a
       mov a,#high start_user
       inc dptr
       movx @dptr,a
			 mov a,#low start_user
       inc dptr
       movx @dptr,a ;   (ljmp start_system)
       ;   com_string   ljmp start_user
       ;       
			 ;   ,   ,
			 ;        
			 ;    (ldu_ios.txt)
;
;------------------------------------------------------------
;
 start_user:
        ELL_ON
        WAITT 50
        LLPRINT str1 ;  
          ; "expect boot the command file"
           ; ("   ")
        ELL_OFF
;
;----------------------------------------------
;
;   *.hex    
;    /  
;  N      
;  b52m & kotios (AT89S52)  
;  0x0000 - 0x1FFF -    
;  0x2000 - 0xFBFF -   
;           /
;  0xFC00 - 0xFEFF -   kotios
;  0xFF00 - 0xFFEF -   
;             
;  0xFFF0 - 0xFFFF -    
;           KEY_EA - " +"/ 
;
 echo_rst:
  lcall bottle 
;----------------------------------------------
;
;      \
;  
;    ap_fill=0     \
;                        
;    glob_er=?    " "
;    eof_ldr=1/?     "  "
;
;    
;  boot_addr+1:boot_addr
;
;----------------------------------------------
;   
     lcall proc_txd_init ;    
        ;     
        ; m_bottle     bios
      WAIT_TOF ;     
      jbc eof_ldr,work_start ;     work_start
      clr glob_er ;    (    )
     ajmp echo_rst ;    echo_rst (  )
;--------------------------------------
 work_start:
   ajmp com_string ;      
       ; com_string 
       ; (     bottle 
       ; boot_addr+1:boot_addr -  
			 ;     b52m)
       ;      ajmp/ljmp 
       ;  mov DPTR,#addr   
       ;   -
       ;     
;
;----------------------------------------------
;
;      
; 
;     res_user (ajmp/ljmp res_user)
;
;