Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4480 → Rev 4479

/programs/system/board/trunk/board.asm
56,19 → 56,16
add eax,399
mov [xstart],eax
mcall 48,3,sc,sizeof.system_colors
 
if WRITE_LOG
mov esi,filename
call CreateFile
end if
;------------------------------------------------------------------------------
red:
call draw_window
;------------------------------------------------------------------------------
still:
cmp [buffer_length],0
je @f
call write_buffer
@@:
mcall 23,50 ; wait here for event
mcall 23,1 ; wait here for event
cmp eax,1 ; redraw request ?
je red
 
83,25 → 80,11
jne still
 
new_data:
cmp [buffer_length],255
jne @f
call write_buffer
@@:
movzx ebx,byte[buffer_length]
mov [ebx+tmp],al
inc [buffer_length]
 
mov ebp,[targ]
.no4:
cmp al,13
jne no13
and [ebp-8],dword 0
jmp new_check
;------------------------------------------
write_buffer:
if WRITE_LOG
pusha
mov [tmp],al
mov edx,tmp
movzx ecx,byte[buffer_length] ;1
mov ecx,1
mov esi,filename
.write_to_logfile:
call WriteToFile
112,12 → 95,15
call CreateFile
jnc .write_to_logfile
@@:
movzx eax,byte[buffer_length]
add [filepos],eax
xor eax,eax
mov [buffer_length],al
inc [filepos]
popa
ret
end if
mov ebp,[targ]
.no4:
cmp al,13
jne no13
and [ebp-8],dword 0
jmp new_check
;------------------------------------------
no13:
cmp al,10
266,6 → 252,7
jne newline
ret
;------------------------------------------------------------------------------
if WRITE_LOG
;********************************************
;* input: esi = pointer to the file name *
;********************************************
323,6 → 310,8
 
filepos dd 0
default_filename db '/sys/boardlog.txt',0
tmp db 0
end if
;------------------------------------------------------------------------------
krnl_msg db 'K : '
duk db 'KernUser'
363,10 → 352,7
sc system_colors
 
i_end:
buffer_length rb 1
;------------------------------------------------------------------------------
tmp rb 256
;------------------------------------------------------------------------------
 
filename rb 256
;------------------------------------------------------------------------------
align 4