forked from KolibriOS/kolibrios
downloader 0.62: downloading by pressing Enter, old code deleted
git-svn-id: svn://kolibrios.org@2738 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c112ab7867
commit
bf10e3ae53
@ -1,10 +1,11 @@
|
|||||||
; version: 0.61
|
; version: 0.6 - 0.62
|
||||||
; last update: 01/06/2012
|
; last update: 04/06/2012
|
||||||
; written by: Lipatov Kirill aka Leency
|
; written by: Lipatov Kirill aka Leency
|
||||||
; changes: removed old code
|
; changes: removed old code
|
||||||
; added edit_box
|
; added edit_box
|
||||||
; using system colors
|
; using system colors
|
||||||
; indicates file saving
|
; indicates file saving
|
||||||
|
; download by pressing Enter
|
||||||
;-----------------------------------------------------------
|
;-----------------------------------------------------------
|
||||||
; version: 0.5
|
; version: 0.5
|
||||||
; date: 07/10/2010
|
; date: 07/10/2010
|
||||||
@ -184,27 +185,20 @@ no_send:
|
|||||||
no_close:
|
no_close:
|
||||||
jmp still
|
jmp still
|
||||||
|
|
||||||
key: ; key
|
key:
|
||||||
mcall 2 ; read key
|
mcall 2 ; read key
|
||||||
|
|
||||||
stdcall [edit_box_key], dword edit1
|
stdcall [edit_box_key], dword edit1
|
||||||
|
|
||||||
shr eax,8
|
shr eax,8
|
||||||
cmp eax,184
|
cmp eax,13
|
||||||
jne no_down
|
je retkey
|
||||||
cmp [display_from],25
|
|
||||||
jb no_down
|
|
||||||
sub [display_from],25
|
|
||||||
|
|
||||||
no_down:
|
|
||||||
cmp eax,183
|
|
||||||
jne no_up
|
|
||||||
add [display_from],25
|
|
||||||
|
|
||||||
no_up:
|
|
||||||
jmp still
|
jmp still
|
||||||
|
|
||||||
button: ; button
|
|
||||||
;dps <"Button pressed",13,10>
|
button:
|
||||||
|
|
||||||
mcall 17 ; get id
|
mcall 17 ; get id
|
||||||
cmp ah,26
|
cmp ah,26
|
||||||
je save
|
je save
|
||||||
@ -249,29 +243,6 @@ noup:
|
|||||||
add [display_from],20
|
add [display_from],20
|
||||||
jmp still
|
jmp still
|
||||||
|
|
||||||
f11:
|
|
||||||
mcall 10
|
|
||||||
cmp eax,2 ; key?
|
|
||||||
jz fbu
|
|
||||||
jmp still
|
|
||||||
|
|
||||||
fbu:
|
|
||||||
mcall 2 ; get key
|
|
||||||
shr eax,8
|
|
||||||
cmp eax,8
|
|
||||||
jnz nobs
|
|
||||||
jmp f11
|
|
||||||
|
|
||||||
nobs:
|
|
||||||
cmp eax,10
|
|
||||||
je retkey
|
|
||||||
cmp eax,13
|
|
||||||
je retkey
|
|
||||||
|
|
||||||
cmp eax,31
|
|
||||||
jbe f11
|
|
||||||
|
|
||||||
jmp still
|
|
||||||
|
|
||||||
retkey:
|
retkey:
|
||||||
mov ah,22 ; start load
|
mov ah,22 ; start load
|
||||||
|
Loading…
Reference in New Issue
Block a user