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
|
||||
_savefile:
|
||||
;save file
|
||||
mov ebx,filename
|
||||
mov ecx,0x10000
|
||||
mov edx,[sizefile]
|
||||
xor esi,esi
|
||||
dec edx
|
||||
mov eax,33
|
||||
mcall
|
||||
mcall 70,writeinfo
|
||||
end_Go:
|
||||
call CtrlHome
|
||||
jmp still
|
||||
@ -1240,7 +1234,15 @@ about_window:
|
||||
ret
|
||||
|
||||
; 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.
|
||||
;Coordinates left hi-level menu buttons
|
||||
;Uses into low-level menu output.
|
||||
|
@ -465,12 +465,19 @@ no_more_data:
|
||||
je cfr002
|
||||
|
||||
; Write the file
|
||||
mov eax, 33
|
||||
mov ebx, source
|
||||
mov edx, [filesize]
|
||||
mov ecx, I_END + 512
|
||||
mov esi, 0
|
||||
mcall
|
||||
mov ebx, writeinfo
|
||||
lea esi, [ebx + 20]
|
||||
@@:
|
||||
lodsb
|
||||
test al, al
|
||||
jnz @b
|
||||
@@:
|
||||
dec esi
|
||||
cmp byte [esi-1], ' '
|
||||
jnz @b
|
||||
mov byte [esi], 0
|
||||
mcall 70, writeinfo
|
||||
mov byte [esi], ' '
|
||||
|
||||
jmp cfrexit
|
||||
|
||||
@ -887,8 +894,16 @@ draw_window:
|
||||
|
||||
|
||||
; DATA AREA
|
||||
|
||||
source db 'KERNEL.ASM '
|
||||
; file name: source
|
||||
; 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 '
|
||||
|
||||
|
||||
@ -900,7 +915,6 @@ addr dd 0x0
|
||||
ya dd 0x0
|
||||
|
||||
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
|
||||
|
||||
text:
|
||||
|
Loading…
Reference in New Issue
Block a user