Subversion Repositories Kolibri OS

Rev

Rev 129 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 133
Line 612... Line 612...
612
    mov  [app_start],eax
612
    mov  [app_start],eax
613
    mov  eax,[0x90000+16]
613
    mov  eax,[0x90000+16]
614
    mov  [app_i_end],eax
614
    mov  [app_i_end],eax
615
    mov  eax,[0x90000+20]
615
    mov  eax,[0x90000+20]
616
    mov  [app_mem],eax
616
    mov  [app_mem],eax
-
 
617
; \begin{diamond}[20.08.2006]
-
 
618
; sanity check (functions 19,58 load app_i_end bytes and that must
-
 
619
; fit in allocated memory to prevent kernel faults)
-
 
620
    cmp  eax,[app_i_end]
-
 
621
    jb   no_01_header
-
 
622
; \end{diamond}[20.08.2006]
617
    shr  eax,1
623
    shr  eax,1
618
    sub  eax,0x10
624
    sub  eax,0x10
619
    mov  [app_esp],eax
625
    mov  [app_esp],eax
620
    mov  eax,[0x90000+24]
626
    mov  eax,[0x90000+24]
621
    mov  [app_i_param],eax
627
    mov  [app_i_param],eax
622
    mov  [app_i_icon],dword 0
628
    mov  [app_i_icon],dword 0
Line 623... Line 629...
623
 
629
 
624
    pop  eax
630
    pop  eax
625
    mov  esi,1
631
    clc
Line 626... Line 632...
626
    ret
632
    ret
Line 635... Line 641...
635
    mov  [app_start],eax
641
    mov  [app_start],eax
636
    mov  eax,[0x90000+16]
642
    mov  eax,[0x90000+16]
637
    mov  [app_i_end],eax
643
    mov  [app_i_end],eax
638
    mov  eax,[0x90000+20]
644
    mov  eax,[0x90000+20]
639
    mov  [app_mem],eax
645
    mov  [app_mem],eax
-
 
646
; \begin{diamond}[20.08.2006]
-
 
647
    cmp  eax,[app_i_end]
-
 
648
    jb   no_01_header
-
 
649
; \end{diamond}[20.08.2006]
640
    mov  eax,[0x90000+24]
650
    mov  eax,[0x90000+24]
641
    mov  [app_esp],eax
651
    mov  [app_esp],eax
642
    mov  eax,[0x90000+28]
652
    mov  eax,[0x90000+28]
643
    mov  [app_i_param],eax
653
    mov  [app_i_param],eax
644
    mov  eax,[0x90000+32]
654
    mov  eax,[0x90000+32]
645
    mov  [app_i_icon],eax
655
    mov  [app_i_icon],eax
Line 646... Line 656...
646
 
656
 
647
    pop  eax
657
    pop  eax
648
    mov  esi,1
658
    clc
Line 649... Line 659...
649
    ret
659
    ret
Line 650... Line 660...
650
 
660
 
651
   no_01_header:
661
   no_01_header:
652
 
662
 
Line 653... Line 663...
653
    pop  eax
663
    pop  eax
654
    mov  esi,0
664
    stc