Subversion Repositories Kolibri OS

Rev

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

Rev 200 Rev 202
Line 76... Line 76...
76
drawbar         dd __sys_drawbar.forced
76
drawbar         dd __sys_drawbar.forced
77
;//mike.dld, 2006-08-02 ]
77
;//mike.dld, 2006-08-02 ]
78
putpixel        dd __sys_putpixel
78
putpixel        dd __sys_putpixel
79
; } mike.dld
79
; } mike.dld
Line 80... Line 80...
80
 
80
 
81
version           db    'Kolibri OS  version 0.6.0.0      ',13,10,13,10,0
81
version           db    'Kolibri OS  version 0.6.3.0      ',13,10,13,10,0
Line 82... Line 82...
82
                  ;dd    endofcode-0x10000
82
                  ;dd    endofcode-0x10000
83
 
83
 
84
                  ;db   'Boot02'
84
                  ;db   'Boot02'
Line 226... Line 226...
226
 
226
 
Line 227... Line 227...
227
         ret
227
         ret
228
 
228
 
229
iglobal
229
iglobal
230
  firstapp   db  '/rd/1/LAUNCHER',0
230
  firstapp   db  '/rd/1/LAUNCHER',0
231
  char       db  'CHAR    MT '
231
  char       db  'FONTS/CHAR.MT',0
232
  char2      db  'CHAR2   MT '
232
  char2      db  'FONTS/CHAR2.MT',0
233
  bootpath   db  '/KOLIBRI    '
233
  bootpath   db  '/KOLIBRI    '
234
  bootpath2  db  0
234
  bootpath2  db  0
235
  vmode      db  'VMODE   MDR'
235
  vmode      db  'VMODE   MDR'
Line 521... Line 521...
521
 
521
 
522
        mov   [0x3000],dword 1
522
        mov   [0x3000],dword 1
523
        mov   [0x3004],dword 1
523
        mov   [0x3004],dword 1
Line 524... Line 524...
524
        mov   [0x3010],dword 0x3020
524
        mov   [0x3010],dword 0x3020
525
 
-
 
526
        mov   eax,char
525
 
527
        mov   esi,12
526
        mov   esi,char
528
        xor   ebx,ebx
527
        xor   ebx,ebx
529
        mov   ecx,2560;26000
528
        mov   ecx,2560;26000
Line 530... Line 529...
530
        mov   edx,0x3F600;0x37000
529
        mov   edx,0x3F600;0x37000
531
        call  fileread
-
 
532
 
530
        call  fs_RamdiskRead
533
        mov   eax,char2
531
 
534
        mov   esi,12
532
        mov   esi,char2
535
        xor   ebx,ebx
533
        xor   ebx,ebx
Line 536... Line 534...
536
        mov   ecx,2560;26000
534
        mov   ecx,2560;26000
537
        mov   edx,0x3EC00;0x30000
535
        mov   edx,0x3EC00;0x30000
Line 538... Line 536...
538
        call  fileread
536
        call  fs_RamdiskRead
Line 2188... Line 2186...
2188
sound_flag      db 0
2186
sound_flag      db 0
2189
endg
2187
endg
Line 2190... Line 2188...
2190
 
2188
 
2191
iglobal
2189
iglobal
2192
version_inf:
2190
version_inf:
2193
  db 0,6,0,0  ; version 0.6.0.0
2191
  db 0,6,3,0  ; version 0.6.3.0
2194
  db UID_KOLIBRI
2192
  db UID_KOLIBRI
2195
  db 'Kolibri',0
2193
  db 'Kolibri',0
2196
version_end:
2194
version_end:
Line 3021... Line 3019...
3021
        shl     edi,5
3019
        shl     edi,5
Line 3022... Line 3020...
3022
 
3020
 
3023
        ; have to check if caption is within application memory limit
3021
        ; have to check if caption is within application memory limit
3024
        ; check is trivial, and if application resizes its memory,
3022
        ; check is trivial, and if application resizes its memory,
-
 
3023
        ;   caption still can become over bounds
-
 
3024
; diamond, 31.10.2006: check removed because with new memory manager
3025
        ;   caption still can become over bounds
3025
; there can be valid data after APPDATA.mem_size bound
3026
        mov     ecx,[edi*8+0x80000+APPDATA.mem_size]
3026
;        mov     ecx,[edi*8+0x80000+APPDATA.mem_size]
3027
        add     ecx,255 ; max caption length
3027
;        add     ecx,255 ; max caption length
3028
        cmp     ebx,ecx
3028
;        cmp     ebx,ecx
Line 3029... Line 3029...
3029
        ja      .exit_fail
3029
;        ja      .exit_fail
3030
 
3030
 
Line 3031... Line 3031...
3031
        mov     [edi*8+0x80000+APPDATA.wnd_caption],ebx
3031
        mov     [edi*8+0x80000+APPDATA.wnd_caption],ebx
Line 4848... Line 4848...
4848
     mov   [esp+24],ebx
4848
     mov   [esp+24],ebx
Line 4849... Line 4849...
4849
 
4849
 
Line 4850... Line -...
4850
     ret
-
 
4851
 
-
 
4852
 
-
 
4853
align 4
-
 
4854
 
-
 
4855
write_to_hd:                            ; Write a file to hd
-
 
4856
 
-
 
4857
     mov   edi,[0x3010]
-
 
4858
     add   edi,TASKDATA.mem_start
-
 
4859
     add   eax,[edi]
-
 
4860
     add   ecx,[edi]
-
 
4861
     add   edx,[edi]
-
 
4862
     call  file_write
-
 
4863
     ret
-
 
4864
 
-
 
4865
;  Sysfunction 57, delete_from_hd, is obsolete. Use 58 or 70 functions instead.
-
 
4866
;align 4
-
 
4867
;
-
 
4868
;delete_from_hd:                         ; Delete a file from hd
-
 
4869
;
-
 
4870
;     mov   edi,[0x3010]
-
 
4871
;     add   edi,0x10
-
 
4872
;     add   eax,[edi]
-
 
4873
;     add   ecx,[edi]
-
 
4874
;     call  file_delete
-
 
4875
;     ret
4850
     ret
4876
;
4851
 
4877
 
4852
 
4878
; --------------- APM ---------------------
4853
; --------------- APM ---------------------
4879
apm_entry    dp    0
4854
apm_entry    dp    0