3393,7 → 3393,6 |
align 4 |
delay_hs: ; delay in 1/100 secs |
; ebx = delay time |
|
pushad |
push ebx |
xor esi, esi |
4226,24 → 4225,23 |
pop ebx eax |
ret |
|
@@: |
mov [esp + SYSCALL_STACK.eax], ecx |
mov [esp+20], ecx |
jmp .ret |
|
.read: |
cmp eax, 2 |
jne .ret |
add esp, 8 ; returning data in ebx and eax, so no need to restore them |
test ecx, ecx |
jz @b |
add esp, 8 ; returning data in ebx and eax, so no need to restore them |
jnz @f |
mov [esp + SYSCALL_STACK.eax], ecx |
mov [esp + SYSCALL_STACK.ebx], ecx |
ret |
@@: |
mov eax, msg_board_data+1 |
mov ebx, msg_board_data |
movzx edx, byte [ebx] |
call memmove |
dec [msg_board_count] |
mov [esp + SYSCALL_STACK.eax], edx ;eax |
mov [esp + 20], dword 1 |
mov [esp + SYSCALL_STACK.eax], edx |
mov [esp + SYSCALL_STACK.ebx], 1 |
ret |
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |