Subversion Repositories Kolibri OS

Rev

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

Rev 9249 Rev 9268
Line 75... Line 75...
75
format binary as "mnt"
75
format binary as "mnt"
Line 76... Line 76...
76
 
76
 
77
include 'macros.inc'
77
include 'macros.inc'
Line 78... Line 78...
78
include 'struct.inc'
78
include 'struct.inc'
Line 79... Line 79...
79
 
79
 
80
$Revision: 9249 $
80
$Revision: 9268 $
Line 2162... Line 2162...
2162
        dd      sysfn_getactive         ; 7 = get active window
2162
        dd      sysfn_getactive         ; 7 = get active window
2163
        dd      sysfn_sound_flag        ; 8 = get/set sound_flag
2163
        dd      sysfn_sound_flag        ; 8 = get/set sound_flag
2164
        dd      sysfn_shutdown          ; 9 = shutdown with parameter
2164
        dd      sysfn_shutdown          ; 9 = shutdown with parameter
2165
        dd      sysfn_minimize          ; 10 = minimize window
2165
        dd      sysfn_minimize          ; 10 = minimize window
2166
        dd      sysfn_getdiskinfo       ; 11 = get disk subsystem info
2166
        dd      sysfn_getdiskinfo       ; 11 = get disk subsystem info
2167
        dd      sysfn_lastkey           ; 12 = get last pressed key
2167
        dd      undefined_syscall       ; 12 = get last pressed key. function removed. sysfn_lastkey
2168
        dd      sysfn_getversion        ; 13 = get kernel version
2168
        dd      sysfn_getversion        ; 13 = get kernel version
2169
        dd      sysfn_waitretrace       ; 14 = wait retrace
2169
        dd      sysfn_waitretrace       ; 14 = wait retrace
2170
        dd      sysfn_centermouse       ; 15 = center mouse cursor
2170
        dd      sysfn_centermouse       ; 15 = center mouse cursor
2171
        dd      sysfn_getfreemem        ; 16 = get free memory size
2171
        dd      sysfn_getfreemem        ; 16 = get free memory size
2172
        dd      sysfn_getallmem         ; 17 = get total memory size
2172
        dd      sysfn_getallmem         ; 17 = get total memory size
Line 2428... Line 2428...
2428
;------------------------------------------------------------------------------
2428
;------------------------------------------------------------------------------
2429
get_cpu_freq:
2429
get_cpu_freq:
2430
        mov     eax, dword [cpu_freq]
2430
        mov     eax, dword [cpu_freq]
2431
        mov     edx, dword [cpu_freq+4]
2431
        mov     edx, dword [cpu_freq+4]
2432
        ret
2432
        ret
2433
;  SAVE ramdisk to /hd/1/menuet.img
2433
;  SAVE ramdisk to /hd/1/kolibri.img
2434
;!!!!!!!!!!!!!!!!!!!!!!!!
2434
;!!!!!!!!!!!!!!!!!!!!!!!!
2435
   include 'blkdev/rdsave.inc'
2435
   include 'blkdev/rdsave.inc'
2436
;!!!!!!!!!!!!!!!!!!!!!!!!
2436
;!!!!!!!!!!!!!!!!!!!!!!!!
2437
;------------------------------------------------------------------------------
2437
;------------------------------------------------------------------------------
2438
align 4
2438
align 4
Line 2475... Line 2475...
2475
        cld
2475
        cld
2476
        rep movsb
2476
        rep movsb
2477
.exit:
2477
.exit:
2478
        ret
2478
        ret
2479
;------------------------------------------------------------------------------
2479
;------------------------------------------------------------------------------
2480
sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
2480
;sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
2481
        and     dword [esp+32], 0
2481
;        and     dword [esp+32], 0
2482
        ret
2482
;        ret
2483
;------------------------------------------------------------------------------
2483
;------------------------------------------------------------------------------
2484
sysfn_getversion:       ; 18.13 = get kernel ID and version
2484
sysfn_getversion:       ; 18.13 = get kernel ID and version
2485
        ; if given memory address belongs to kernel then error
2485
        ; if given memory address belongs to kernel then error
2486
        stdcall is_region_userspace, ecx, version_end-version_inf
2486
        stdcall is_region_userspace, ecx, version_end-version_inf
2487
        jnz     .addr_error
2487
        jnz     .addr_error
Line 2667... Line 2667...
2667
sound_flag      db 0
2667
sound_flag      db 0
Line 2668... Line 2668...
2668
 
2668
 
Line 2669... Line 2669...
2669
endg
2669
endg
2670
 
-
 
2671
UID_NONE=0
2670
 
Line 2672... Line 2671...
2672
UID_MENUETOS=1   ;official
2671
UID_NONE=0
2673
UID_KOLIBRI=2    ;russian
2672
UID_KOLIBRI=2    ;russian
2674
 
2673
 
Line 4683... Line 4682...
4683
align 4
4682
align 4
4684
putimage_init4bpp:
4683
putimage_init4bpp:
4685
        add     eax, ecx
4684
        add     eax, ecx
4686
        push    ecx
4685
        push    ecx
4687
        add     ecx, 1
4686
        add     ecx, 1
4688
        add     eax, 1
4687
        inc     eax      ;add   eax, 1
4689
        shr     ecx, 1
4688
        shr     ecx, 1
4690
        shr     eax, 1
4689
        shr     eax, 1
4691
        sub     eax, ecx
4690
        sub     eax, ecx
4692
        pop     ecx
4691
        pop     ecx
4693
        ret
4692
        ret
Line 4940... Line 4939...
4940
        pusha
4939
        pusha
4941
        lea     edx, [msg_board_data+ecx]
4940
        lea     edx, [msg_board_data+ecx]
4942
        mov     ecx, 0x40FFFFFF
4941
        mov     ecx, 0x40FFFFFF
4943
        mov     ebx, [msg_board_pos]
4942
        mov     ebx, [msg_board_pos]
4944
        mov     edi, 1
4943
        mov     edi, 1
4945
        mov     esi, 1
4944
        mov     esi, edi ;1
4946
        call    dtext
4945
        call    dtext
4947
        popa
4946
        popa
4948
        add     word [msg_board_pos+2], 6
4947
        add     word [msg_board_pos+2], 6
4949
        cmp     word [msg_board_pos+2], 105*6
4948
        cmp     word [msg_board_pos+2], 105*6
4950
        jnc     @f
4949
        jnc     @f