Subversion Repositories Kolibri OS

Rev

Rev 138 | Rev 143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 139
Line 192... Line 192...
192
endg
192
endg
Line 193... Line 193...
193
 
193
 
194
boot_log:
194
boot_log:
Line 195... Line -...
195
         pushad
-
 
196
 
-
 
197
         mov   edx,esi
-
 
198
.bll3:   inc   edx
-
 
199
         cmp   [edx],byte 0
-
 
200
         jne   .bll3
195
         pushad
201
         sub   edx,esi
196
 
202
         mov   eax,10*65536
197
         mov   eax,10*65536
203
         mov   ax,word [boot_y]
198
         mov   ax,word [boot_y]
204
         add   [boot_y],dword 10
199
         add   [boot_y],dword 10
205
         mov   ebx,0xffffff
200
         mov   ebx,0x80ffffff   ; ASCIIZ string with white color
206
         mov   ecx,esi
201
         mov   ecx,esi
Line 207... Line 202...
207
         mov   edi,1
202
         mov   edi,1
Line 1311... Line 1306...
1311
 
1306
 
Line 1312... Line 1307...
1312
     pushad
1307
     pushad
1313
 
1308
 
1314
     cmp   al,1                  ; ecx is a pointer ?
-
 
1315
     jne   displnl1
1309
     cmp   al,1                  ; ecx is a pointer ?
1316
     mov   edi,[0x3010]
-
 
1317
     mov   edi,[edi+TASKDATA.mem_start]
1310
     jne   displnl1
1318
     mov   ebx,[edi+ebx]
1311
     mov   ebx,[ebx+std_application_base_address]
Line 1319... Line 1312...
1319
   displnl1:
1312
   displnl1:
1320
     sub   esp,64
1313
     sub   esp,64
Line 1418... Line 1411...
1418
     mov   ecx,65
1411
     mov   ecx,65
1419
     sub   ecx,eax
1412
     sub   ecx,eax
1420
     add   ecx,esp
1413
     add   ecx,esp
1421
     add   ecx,4
1414
     add   ecx,4
1422
     mov   eax,[esp+64+32-8+4]
1415
     mov   eax,[esp+64+32-8+4]
1423
     mov   ebx,[esp+64+32-12+4]
-
 
1424
     push  edx                       ; add window start x & y
1416
     push  edx                       ; add window start x & y
1425
     push  ebx
-
 
1426
     mov   edx,[0x3010]
1417
     mov   edx,[0x3010]
1427
     mov   ebx,[edx-twdw+WDATA.box.left]
1418
     mov   ebx,[edx-twdw+WDATA.box.left]
1428
     shl   ebx,16
1419
     shl   ebx,16
1429
     add   ebx,[edx-twdw+WDATA.box.top]
1420
     add   ebx,[edx-twdw+WDATA.box.top]
1430
     add   eax,ebx
1421
     add   eax,ebx
1431
     pop   ebx
-
 
1432
     pop   edx
1422
     pop   edx
1433
     mov   edi,0
1423
     mov   ebx,[esp+64+32-12+4]
-
 
1424
        and     ebx, not 0x80000000     ; force counted string
-
 
1425
        mov     esi, [esp+64+4+4]
1434
     call  dtext
1426
     xor   edi,edi
1435
 
-
 
1436
     ret
1427
     jmp   dtext
1437
 
-
 
Line 1438... Line 1428...
1438
 
1428
 
Line 1439... Line 1429...
1439
read_string:
1429
read_string:
1440
 
1430
 
Line 2898... Line 2888...
2898
        sar     ax,1
2888
        sar     ax,1
2899
        adc     ax,0
2889
        adc     ax,0
2900
        add     ax,[_skinmargins.top]
2890
        add     ax,[_skinmargins.top]
2901
        add     ax,-3
2891
        add     ax,-3
2902
        add     eax,ebp
2892
        add     eax,ebp
2903
        mov     ebx,[common_colours+16];0x00FFFFFF
-
 
2904
        xor     edi,edi
-
 
2905
        call    dtext
-
 
2906
        jmp     @f
2893
        jmp     .dodraw
Line 2907... Line 2894...
2907
 
2894
 
2908
  .not_skinned:
2895
  .not_skinned:
2909
        cmp     al,1
2896
        cmp     al,1
Line 2920... Line 2907...
2920
        or      eax,eax
2907
        or      eax,eax
2921
        js      @f
2908
        js      @f
2922
        mov     edx,eax
2909
        mov     edx,eax
2923
        mov     eax,0x00080007
2910
        mov     eax,0x00080007
2924
        add     eax,ebp
2911
        add     eax,ebp
-
 
2912
.dodraw:
2925
        mov     ebx,[common_colours+16];0x00FFFFFF
2913
        mov     ebx,[common_colours+16];0x00FFFFFF
-
 
2914
        or      ebx, 0x80000000
2926
        xor     edi,edi
2915
        xor     edi,edi
2927
        call    dtext
2916
        call    dtext
2928
        jmp     @f
-
 
Line 2929... Line 2917...
2929
 
2917
 
2930
    @@:
2918
    @@:
2931
;--------------------------------------------------------------
2919
;--------------------------------------------------------------
2932
        dec     [mouse_pause]
2920
        dec     [mouse_pause]
Line 4807... Line 4795...
4807
 
4795
 
Line 4808... Line 4796...
4808
syscall_writetext:                      ; WriteText
4796
syscall_writetext:                      ; WriteText
4809
 
4797
 
-
 
4798
     mov   edi,[0x3010]
4810
     mov   edi,[0x3010]
4799
     mov   ebp,[edi-twdw+WDATA.box.left]
4811
     mov   ebp,[edi-twdw+WDATA.box.left]
4800
        push    esi
4812
        mov     esi,[0x3000]
4801
        mov     esi,[0x3000]
4813
        shl     esi,8
4802
        shl     esi,8
4814
        add     ebp,[esi+0x80000+APPDATA.wnd_clientbox.left]
4803
        add     ebp,[esi+0x80000+APPDATA.wnd_clientbox.left]
4815
     shl   ebp,16
4804
     shl   ebp,16
-
 
4805
     add   ebp,[edi-twdw+WDATA.box.top]
4816
     add   ebp,[edi-twdw+WDATA.box.top]
4806
        add     bp,word[esi+0x80000+APPDATA.wnd_clientbox.top]
4817
        add     bp,word[esi+0x80000+APPDATA.wnd_clientbox.top]
4807
        pop     esi
4818
     add   ecx,[edi+TASKDATA.mem_start]
4808
     add   ecx,[edi+TASKDATA.mem_start]
4819
     add   eax,ebp
4809
     add   eax,ebp