AC97WAV: corrected after rewriting to fn 70

SYSXTREE: version from K0600 (CD-ROM support) + URL line fixes

git-svn-id: svn://kolibrios.org@156 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2006-09-22 11:26:31 +00:00
parent 1e0680aa80
commit b239f46ecb
4 changed files with 68 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -28,6 +28,8 @@
;80Ver prompt edit fatal bug deleted, antiflick when move list up/down
;81Ver Save Dialog bug deleted
;82Ver Rewritten to function 70. Corrected work with scrollbar.
;83Ver CD-ROM support
;84Ver URL line editor corrected
;1560000 bytes memory!
;******************************************************************************
@ -72,6 +74,30 @@ START: ; start of execution
je no_hdpartition_on_hd3
mov [hdimg4], aHD3
no_hdpartition_on_hd3:
test byte [edx+1], 80h
jz @f
mov [hdimg1], aCD0
mov [hdimg1+4], 'CD-R'
mov [hdimg1+8], 'OM '
@@:
test byte [edx+1], 20h
jz @f
mov [hdimg2], aCD1
mov [hdimg2+4], 'CD-R'
mov [hdimg2+8], 'OM '
@@:
test byte [edx+1], 8
jz @f
mov [hdimg3], aCD2
mov [hdimg3+4], 'CD-R'
mov [hdimg3+8], 'OM '
@@:
test byte [edx+1], 2
jz @f
mov [hdimg4], aCD3
mov [hdimg4+4], 'CD-R'
mov [hdimg4+8], 'OM '
@@:
mov eax,40
mov ebx,0100111b
@ -167,7 +193,7 @@ no_dlg:
mov ecx,tempimg ;src
mov edx,hdico ;dest
mov ebp,9
mov ebp,10
loogetimg:
call getimgproc
add edx,9*12*3+8
@ -316,12 +342,17 @@ con_edit:
no_con_ent:
cmp ah,key_Left
jne no_con_left
cmp [cursor], 0
jz still
dec [cursor]
mov [flick],2
jmp anti_flick ;red
no_con_left:
cmp ah,key_Right
jne no_con_right
mov eax, [cursor]
cmp byte [path+eax], 0
jz still
inc [cursor]
mov [flick],2
jmp anti_flick ;red
@ -344,7 +375,6 @@ lobsp:
no_con_bspace:
mov ecx,[cursor]
dec ecx
mov ebp,1022
cmp byte [path+ebp], 0
jnz still
@ -450,6 +480,8 @@ no_kfad:
rep stosb
jmp still
@@:
sub edi, path+1
mov [cursor], edi
pop edi
; name appended, now read new directory
mov [filecursor],0
@ -708,6 +740,8 @@ back:
jmp still
@@:
sub ecx, edi
lea eax, [edi-path]
mov [cursor], eax
xor eax, eax
rep stosb
mov [filecursor],0
@ -1084,7 +1118,7 @@ help_text:
info_text:
db ' ~~~~~ SYSTEM X-TREE ~~~~~ '
db ' INFO 82 Ver '
db ' INFO 84 Ver '
db ' '
db ' Create by Pavlushin Evgeni '
db 'with ASCL library special for Kolibri OS'
@ -1801,6 +1835,11 @@ no_rdico:
push rdico+8
jmp out_ico
no_fdico:
cmp [edx+4],dword 'CD-R'
jne no_cdico
push cdico+8
jmp out_ico
no_cdico:
push folico+8
jmp out_ico
no_folico:
@ -2052,16 +2091,14 @@ nstep:
je nstep2
cmp [path+4],byte '/'
je nstep2
cmp [path+1],word 'RD'
jne nostep_RD
mov ecx,1
jmp loxpt
nostep_RD:
cmp [path+1],word 'FD'
jne nostep_FD
cmp [path+1],word 'RD'
jz loxpt
cmp [path+1],word 'CD'
jz loxpt
mov ecx,2
jmp loxpt
nostep_FD:
cmp [path+1],word 'FD'
jz loxpt
cmp [path+1],dword 'HD0'
jne nostep_HD0
movzx ecx,byte [table_area+2]
@ -2434,6 +2471,10 @@ aHD0 db 'HD0',0
aHD1 db 'HD1',0
aHD2 db 'HD2',0
aHD3 db 'HD3',0
aCD0 db 'CD0',0
aCD1 db 'CD1',0
aCD2 db 'CD2',0
aCD3 db 'CD3',0
a1 db '1',0,0
a2 db '2',0,0
a3 db '3',0,0
@ -2585,6 +2626,8 @@ asmincico:
rb 12*9*3+8
execico:
rb 12*9*3+8
cdico:
rb 12*9*3+8
tempimg: ;reserve ram for images
rb 400*100*3+8 ;for picture

View File

@ -32,14 +32,14 @@
;---------------------------------------------------------------------
include "macros.inc" ; standart macros & constants
include "meosfunc.inc" ; MenuetOS API functions names
include "debug.inc" ; printing to debug board
include "constant.inc" ; BIT?? constants
include "ac97.inc" ; AC'97 constants
include "pci.inc" ; PCI interface
include "codec.inc" ; functions for configuring codec
include "frontend.inc" ; main window
include "MACROS.INC" ; standart macros & constants
include "MEOSFUNC.INC" ; MenuetOS API functions names
include "DEBUG.INC" ; printing to debug board
include "CONSTANT.INC" ; BIT?? constants
include "AC97.INC" ; AC'97 constants
include "PCI.INC" ; PCI interface
include "CODEC.INC" ; functions for configuring codec
include "FRONTEND.INC" ; main window
;---------------------------------------------------------------------
@ -652,13 +652,14 @@ update_next_buffer:
; jb temp_12_7
; inc ecx
; temp_12_7:
cmp edx,0
je temp_12_7
inc ecx
temp_12_7:
; cmp edx,0
; je temp_12_7
; inc ecx
; temp_12_7:
pop edx ebx
mov eax,[esp+4] ;restore buffer index
and ecx, not 511
add [fileinfo.first_byte], ecx ; +60Kb
call [convert + edx * 4]
;start fix for MM (4)

View File

@ -188,6 +188,7 @@ main_loop:
;dps "block: "
;dpd eax
;newline
and eax, not 511
mov [fileinfo.first_byte], eax
call draw_progress_bar
jmp main_loop