heed and tftpc use sysfn 70 instead of deleted 33
git-svn-id: svn://kolibrios.org@1017 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f1e4d83cf0
commit
7bfc5040a8
@ -388,13 +388,7 @@ still:
|
|||||||
jmp end_Go
|
jmp end_Go
|
||||||
_savefile:
|
_savefile:
|
||||||
;save file
|
;save file
|
||||||
mov ebx,filename
|
mcall 70,writeinfo
|
||||||
mov ecx,0x10000
|
|
||||||
mov edx,[sizefile]
|
|
||||||
xor esi,esi
|
|
||||||
dec edx
|
|
||||||
mov eax,33
|
|
||||||
mcall
|
|
||||||
end_Go:
|
end_Go:
|
||||||
call CtrlHome
|
call CtrlHome
|
||||||
jmp still
|
jmp still
|
||||||
@ -1240,7 +1234,15 @@ about_window:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
; DATA AREA
|
; DATA AREA
|
||||||
sizefile dd 0
|
writeinfo:
|
||||||
|
dd 2
|
||||||
|
dd 0
|
||||||
|
dd 0
|
||||||
|
sizefile dd 0
|
||||||
|
dd 0x10000
|
||||||
|
db 0
|
||||||
|
dd filename
|
||||||
|
|
||||||
current dd 0 ;current offset relative begin file. Uses as offset for patch.
|
current dd 0 ;current offset relative begin file. Uses as offset for patch.
|
||||||
;Coordinates left hi-level menu buttons
|
;Coordinates left hi-level menu buttons
|
||||||
;Uses into low-level menu output.
|
;Uses into low-level menu output.
|
||||||
|
@ -465,12 +465,19 @@ no_more_data:
|
|||||||
je cfr002
|
je cfr002
|
||||||
|
|
||||||
; Write the file
|
; Write the file
|
||||||
mov eax, 33
|
mov ebx, writeinfo
|
||||||
mov ebx, source
|
lea esi, [ebx + 20]
|
||||||
mov edx, [filesize]
|
@@:
|
||||||
mov ecx, I_END + 512
|
lodsb
|
||||||
mov esi, 0
|
test al, al
|
||||||
mcall
|
jnz @b
|
||||||
|
@@:
|
||||||
|
dec esi
|
||||||
|
cmp byte [esi-1], ' '
|
||||||
|
jnz @b
|
||||||
|
mov byte [esi], 0
|
||||||
|
mcall 70, writeinfo
|
||||||
|
mov byte [esi], ' '
|
||||||
|
|
||||||
jmp cfrexit
|
jmp cfrexit
|
||||||
|
|
||||||
@ -887,8 +894,16 @@ draw_window:
|
|||||||
|
|
||||||
|
|
||||||
; DATA AREA
|
; DATA AREA
|
||||||
|
; file name: source
|
||||||
source db 'KERNEL.ASM '
|
; file data: I_END + 512
|
||||||
|
; file size: [filesize]
|
||||||
|
writeinfo:
|
||||||
|
dd 2
|
||||||
|
dd 0
|
||||||
|
dd 0
|
||||||
|
filesize dd 0 ; The number of bytes written / left to write
|
||||||
|
dd I_END + 512
|
||||||
|
source db 'KERNEL.ASM ',0
|
||||||
destination db '192.168.1.23 '
|
destination db '192.168.1.23 '
|
||||||
|
|
||||||
|
|
||||||
@ -900,7 +915,6 @@ addr dd 0x0
|
|||||||
ya dd 0x0
|
ya dd 0x0
|
||||||
|
|
||||||
fileposition dd 0 ; Points to the current point in the file
|
fileposition dd 0 ; Points to the current point in the file
|
||||||
filesize dd 0 ; The number of bytes written / left to write
|
|
||||||
fileblocksize dw 0 ; The number of bytes to send in this frame
|
fileblocksize dw 0 ; The number of bytes to send in this frame
|
||||||
|
|
||||||
text:
|
text:
|
||||||
|
Loading…
Reference in New Issue
Block a user