From a7453c4e5b910699b99e34b864c205c0aa2407d9 Mon Sep 17 00:00:00 2001 From: jacekm Date: Sun, 17 Feb 2008 15:56:13 +0000 Subject: [PATCH] scc - output file is in a good format git-svn-id: svn://kolibrios.org@743 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/scc/OSFUNC.ASM | 18 +++++++++--------- programs/develop/scc/README.TXT | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/programs/develop/scc/OSFUNC.ASM b/programs/develop/scc/OSFUNC.ASM index fc6eba83dc..9f68d98f55 100644 --- a/programs/develop/scc/OSFUNC.ASM +++ b/programs/develop/scc/OSFUNC.ASM @@ -11,7 +11,7 @@ include "macros.inc" ;param BAD equ -1 files equ 100 - save_buffer equ 0x20000 ;32 + save_buffer equ 0x20000 ;32 save_buffer_w equ 0x400000 ;32 save_file_name equ 0x20000 @@ -76,8 +76,8 @@ _OS_fopen: mov ecx , [esp+4] ; file mode mov [file_mode],ecx ;B+ Copy file name - - + + mov esi,[esp+8] mov edi,[p_filename] mov ecx,12 @@ -126,8 +126,8 @@ stosb dec ecx jnz .next_copy2 .fill_space2: - mov al,' ' - cld + ;mov al,' ' + ;cld rep stosb .no_wri: @@ -306,7 +306,7 @@ _OS_fclos: ; ebx = number of read bytes = file size ; save loaded file mov [dest_info.bytes],ebx ; file size in bytes - + mov [dest_info.bytes+4], save_buffer_w ;mov eax, [p_filename];[w_file_name] ;mov [destination],eax @@ -661,11 +661,11 @@ dest_info: ; DESTINATION FILEINFO dd 0 .bytes dd ? dd save_buffer - db 0 + db 0 destination: dd save_file_name - ;db "EXAMPLE.ASM",0 - + ;db "EXAMPLE.ASM",0 + w_file_name dd save_file_name diff --git a/programs/develop/scc/README.TXT b/programs/develop/scc/README.TXT index 54743dc188..a8d56fdd97 100644 --- a/programs/develop/scc/README.TXT +++ b/programs/develop/scc/README.TXT @@ -9,6 +9,8 @@ KNOWN BUGS: * only directiory /rd/1/ works HISTORY: + * 0.5.4: + - output file extension is fixed * 0.5.3: - output dir fixed * 0.5.2: