Subversion Repositories Kolibri OS

Rev

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

Rev 9831 Rev 9897
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: 9831 $
80
$Revision: 9897 $
Line 3391... Line 3391...
3391
 
3391
 
3392
if 1
3392
if 1
3393
align 4
3393
align 4
3394
delay_hs:     ; delay in 1/100 secs
3394
delay_hs:     ; delay in 1/100 secs
3395
; ebx = delay time
-
 
3396
 
3395
; ebx = delay time
3397
        pushad
3396
        pushad
3398
        push    ebx
3397
        push    ebx
3399
        xor     esi, esi
3398
        xor     esi, esi
3400
        mov     ecx, MANUAL_DESTROY
3399
        mov     ecx, MANUAL_DESTROY
Line 4224... Line 4223...
4224
        mov     [msg_board_count], ecx
4223
        mov     [msg_board_count], ecx
4225
.ret:
4224
.ret:
4226
        pop     ebx eax
4225
        pop     ebx eax
4227
        ret
4226
        ret
Line 4228... Line -...
4228
 
-
 
4229
@@:
-
 
4230
        mov     [esp + SYSCALL_STACK.eax], ecx
-
 
4231
        mov     [esp+20], ecx
-
 
4232
        jmp     .ret
-
 
4233
 
4227
 
4234
.read:
4228
.read:
4235
        cmp     eax, 2
4229
        cmp     eax, 2
4236
        jne     .ret
-
 
4237
        test    ecx, ecx
-
 
4238
        jz      @b
4230
        jne     .ret
-
 
4231
        add     esp, 8  ; returning data in ebx and eax, so no need to restore them
-
 
4232
        test    ecx, ecx
-
 
4233
        jnz     @f
-
 
4234
        mov     [esp + SYSCALL_STACK.eax], ecx
-
 
4235
        mov     [esp + SYSCALL_STACK.ebx], ecx
-
 
4236
        ret
4239
        add     esp, 8  ; returning data in ebx and eax, so no need to restore them
4237
@@:
4240
        mov     eax, msg_board_data+1
4238
        mov     eax, msg_board_data+1
4241
        mov     ebx, msg_board_data
4239
        mov     ebx, msg_board_data
4242
        movzx   edx, byte [ebx]
4240
        movzx   edx, byte [ebx]
4243
        call    memmove
4241
        call    memmove
4244
        dec     [msg_board_count]
4242
        dec     [msg_board_count]
4245
        mov     [esp + SYSCALL_STACK.eax], edx ;eax
4243
        mov     [esp + SYSCALL_STACK.eax], edx
4246
        mov     [esp + 20], dword 1
4244
        mov     [esp + SYSCALL_STACK.ebx], 1
Line 4247... Line 4245...
4247
        ret
4245
        ret
4248
 
4246
 
4249
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4247
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;