Re: [Freedos-kernel] Patch: Borland C support

2004-02-04 Thread Arkady V.Belousov
Hi! 4--2004 12:27 [EMAIL PROTECTED] (Bart Oldeman) wrote to FreeDOS-kernel [EMAIL PROTECTED]: very welcome (plus the 1.3 KB saving from aPack ;-) And Borland C++ 5.2 is still used by Datalight for their ROM-DOS, so albeit inferior to Watcom, it can't be ignored, can it? The more so as I'm

Re: [Freedos-kernel] Patch: EJECT bugfix

2004-02-08 Thread Arkady V.Belousov
Hi! 8--2004 15:12 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to FreeDOS-kernel [EMAIL PROTECTED]: - if ((mode CDS_MODE_CHECK_DEV_PATH) (result IS_DEVICE) - !(result IS_NETWORK) dest[2] != '/' !dir_exists(dest)) + if ((mode CDS_MODE_CHECK_DEV_PATH) + ((result

Re: [Freedos-kernel] Patch: EJECT bugfix

2004-02-08 Thread Arkady V.Belousov
Hi! 8--2004 16:48 [EMAIL PROTECTED] (Bart Oldeman) wrote to FreeDOS-kernel [EMAIL PROTECTED]: As to the other funny printf patch, it's only a temporary solution until I find the reason why Borland 80386 build hangs if any INSTALL= commands were processed, just before kernel() enters... BO try

Re: [Freedos-kernel] Macro patch saves 240 resident bytes

2004-02-13 Thread Arkady V.Belousov
Hi! 13--2004 11:43 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to FreeDOS-kernel [EMAIL PROTECTED]: LG Did you receive or read the following message of mine I sent yesterday LG morning? LG http://sourceforge.net/mailarchive/message.php?msg_id=7191320 LG Do I need to re-send it? Because I can now

Re: [Freedos-kernel] FAT32 boot sectors metaboot incompatible?

2004-02-13 Thread Arkady V.Belousov
Hi! 14--2004 00:11 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA Hi, Arkady reminded me that fat32lba boot sector stores fat_secshift at EA offset 0x68 of the boot sector, thus overwriting CODE !? This would break EA metaboot (generic loader for MetaKern menu entries)

Re: [Freedos-kernel] re: Re: Q: boot

2004-02-16 Thread Arkady V.Belousov
Hi! 16--2004 19:11 [EMAIL PROTECTED] (tom ehlert) wrote to Eric Auer [EMAIL PROTECTED]: EA Hi Tom, I think it is not ridiculous to have FAT32 on 186: EA You can have 33 MB FAT32 partitions. Useful for embedded systems. te a) I can't see where this would be useful (to format 33 MB with FAT32)

[Freedos-kernel] sys.c issues

2004-02-22 Thread Arkady V.Belousov
Hi! BOOL copy(COUNT drive, BYTE * srcPath, BYTE * rootPath, BYTE * file) [...] if (!check_space(drive, filelength(fdin))) { printf(%s: Not enough space to transfer %s\n, pgm, file); close(fdin); exit(1); } [...] if (write(fdout, copybuffer, ret) != ret) {

Re: [Freedos-kernel] sys.c issues

2004-02-23 Thread Arkady V.Belousov
Hi! 23--2004 09:03 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: else if (memicmp(argp, BOTH, 4) == 0 !both) - AIU, there should be stricmp() (or third parameter of memicmp() should be increased to include zero byte)? KJD Could, but its more of, are exact arguments here

Re: [Freedos-kernel] sys.c issues

2004-02-24 Thread Arkady V.Belousov
Hi! BTW, for checking target drive validness I add next code (where `drive' is a drive letter): __O\_/_\_/O__ { static char src [] = :\\, dst [SYS_MAXPATH] /*= */; src [0] = drive; truename (dst, src); if (dst [0] =

[Freedos-kernel] batch files

2004-02-26 Thread Arkady V.Belousov
build.txt Description: Binary data clean.txt Description: Binary data clobber.txt Description: Binary data default.txt Description: Binary data summary.txt Description: Binary data

[Freedos-kernel] INT25

2004-03-01 Thread Arkady V.Belousov
Hi! __O\_/_\_/O__ int absread(int DosDrive, int nsects, int foo, void *diskReadPacket); #pragma aux absread = \ int 0x25 \ sbb ax, ax\ parm [ax] [cx] [dx] [bx] \ modify [si di bp] \ value [ax];

Re: [Freedos-kernel] INT25/INT26

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 10:54 [EMAIL PROTECTED] (Steve Gibson) wrote to [EMAIL PROTECTED]: Is using INT25/CX= always safe for all partitions - including small (32M) and diskettes? SG Yes, on all logical devices, so long as you have a FAT32-capable OS (ver SG 7.0 or later) I.e. using INT25/CX=-1

Re: [Freedos-kernel] INT25/INT26

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 21:15 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB __O\_/_\_/O__ AVB D-25- AVB INT 25 - DOS 1+ - ABSOLUTE DISK READ (except partitions 32M) AVB D-25CX

Re: [Freedos-kernel] re: SYS bug?

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 19:40 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA Hi, about the DOS uses 'int' 0x25/0x26 as CALL FAR, so you have to POPF EA when you call it through INT thread: EA Several compilers TRANSPARENTLY handle this. Of course, they (should) transparently handle this

Re: [Freedos-kernel] INT25

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 20:03 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: #pragma aux absread = \ int 0x25 \ sbb ax, ax\ modify [si di bp] \ Isn't there should be added POPF after INT 25h/26h? I mean, POP (for example, pop ax,ax). BO there

Re: [Freedos-kernel] INT25

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 21:05 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: BO In the current sys it simply happens to work since the int 25/26 is BO followed by mov sp, bp. - BP itself should be preserved somewhere (because modify[]). Where if not on stack? BO that's a question for me

[Freedos-kernel] sys: reset disk

2004-03-01 Thread Arkady V.Belousov
Hi! Why reset_drive() calls INT21/32 (Get DOS DPB for specific drive)? --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now!

Re: [Freedos-kernel] re: ... different absread() on TC - BC!

2004-03-01 Thread Arkady V.Belousov
Hi! 1--2004 23:08 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA Bad news for UNDELETE that Borland C (not Turbo C) seems to have an EA absread() which auto-decides about access style. Using the 32 MB EA style for drives which Borland C detected as 32 MB with int 21.1c EA will

Re: [Freedos-kernel] LOCK/UNLOCK

2004-03-03 Thread Arkady V.Belousov
Hi! 1--2004 18:11 [EMAIL PROTECTED] (Steve Gibson) wrote to [EMAIL PROTECTED]: RBIL says, that INT21/440D/CX=x84A expects BH on input (with some lock level - what is it?). How be with this? Also, is it valid to perform CX=08xA (not 48xA) on FAT32? Also, in current SYS there are no INT13 access;

[Freedos-kernel] INT21/32

2004-03-04 Thread Arkady V.Belousov
Hi! What MSDN says about INT21/32 in FAT32 context? As I understand, FreeDOS for FAT32 returns error (AL=-1). How behaves MS-DOS 7.x? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel

Re: [Freedos-kernel] re: INT21/32

2004-03-05 Thread Arkady V.Belousov
Hi! 5--2004 19:31 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA Hi Arkady, for FAT32 drives, WinDOS returns on int 21.32 (get BPB), EA when you use it as get default BPB, that: EA - root dir size would be 512 entries EA - FAT1x size would be as FAT32 size What if FAT size

[Freedos-kernel] FAT32/DPB

2004-03-05 Thread Arkady V.Belousov
Hi! Anyone with Windows and FAT32, may you perform next debug script? __O\_/_\_/O__ a mov dl,... push ds pop es mov di,400 mov cx,3F mov [di],cx mov ax,7302 stc int 21 int 3 g=100 d 400l3F q

Re: [Freedos-kernel] INT25

2004-03-08 Thread Arkady V.Belousov
Hi! 7--2004 18:23 [EMAIL PROTECTED] (Matthias Paul) wrote to [EMAIL PROTECTED]: MP of DR DOS unless you would special case them. On the other hand, always MP using the new form on any DOS 3.31+ the least does not cause any problems MP under DR DOS, PC DOS or MS-DOS, even if the disk is smaller

Re: [Freedos-kernel] Re: default to unsigned char in TC/BC?

2004-03-08 Thread Arkady V.Belousov
Hi! 8--2004 14:57 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: And this will be another mistake: in C/C++ standard `char' may be signed, and _it is_ (by default) in BC. (But not in OW, BTW). Stupid, but this is so. This (troubles with sign extension) is why I

Re: [Freedos-kernel] re: INT25

2004-03-08 Thread Arkady V.Belousov
! 8--2004 20:46 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA like that, your software should do the right thing both when compiled EA with TC and with BC - use an #ifdef __TURBOC__ ... Wrong. Should be: #if defined (__TURBOC__) __TURBOC__ = ..., where ... is a version of

Re: [Freedos-kernel] BC/TC comment, root dot find bug fix patch

2004-03-08 Thread Arkady V.Belousov
Hi! 8--2004 21:34 [EMAIL PROTECTED] (Michal H. Tyc) wrote to [EMAIL PROTECTED]: #define isalnum(c) (_ctype[(c) + 1] (_IS_DIG | _IS_UPP | _IS_LOW)) BTW, BC anyway defines _ctype only as 128-byte table. :( MHT Really? At least in BC 3.1, it is a 257-byte table (a zero Ops, sorry, really

Re: [Freedos-kernel] Borland C versions

2004-03-09 Thread Arkady V.Belousov
Hi! 9--2004 08:30 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: Wrong. Should be: #if defined (__TURBOC__) __TURBOC__ = ..., LG Borland C has also the manifest constant __BORLANDC__ which is LG 0x200 for 2.0 [...] ...and in BC3.1 value of __BORLANDC__ equal to value

[Freedos-kernel] turboc.cfg

2004-03-09 Thread Arkady V.Belousov
Hi! Bug: turboc.cfg present in KERNEL directory, but neither in SYS, nor in UTILS directories. Also, there is questions about contents of turboc.cfg in KERNEL: - -ff- is dummy, because -f-. - with -w other -w* are not required. - all -I and -D may be joined: -I..\hdr;.

[Freedos-kernel] dosfns.c, DosRWSft()

2004-03-11 Thread Arkady V.Belousov
Hi! __O\_/_\_/O__ /* Test for eof and exit*/ /* immediately if it is */ if (!(s-sft_flags SFT_FEOF) || (s-sft_flags SFT_FNUL)) return 0;

[Freedos-kernel] raw mode

2004-03-11 Thread Arkady V.Belousov
Hi! In cooked mode I may stop redirection (for example, in copy con) by ^Z. How to stop redirection in raw mode (may be set through INT 21/4401)? Also, fix for comments in the chario.c::write_char_stdout(): __O\_/_\_/O__

[Freedos-kernel] SYS issues

2004-03-12 Thread Arkady V.Belousov
Hi! Let me remind some SYS issues (and my progress): __O\_/_\_/O__ - BOTH and BOOTONLY are now options (should be prefixed by slash). - duplicates for options /BOTH and /BOOTONLY now are allowed. - options (except /CONFIG) may now used

[Freedos-kernel] raw mode

2004-03-12 Thread Arkady V.Belousov
Hi! Just tested. This was hard (unlike MS-DOS, which wrongly expands tabs when output to redirected stdout mixed with output to stderr, under FreeDOS tabs was expanded correctly), but I build example when tabs expansion is broken under FreeDOS also:

[Freedos-kernel] ^Z

2004-03-12 Thread Arkady V.Belousov
Hi! Just tested. I prepare new ATTRIB, which uses only low level functions (for ouput or reading list-file); under BC3.1 uncompressed size decreased to 3970 bytes. :) I test this edition under FreeDOS (attrib/@con): pressing ^Z in non-empty line does nothing (except that line end is

Re: [Freedos-kernel] ^Z

2004-03-12 Thread Arkady V.Belousov
Hi! 12--2004 14:13 [EMAIL PROTECTED] (Alain) wrote to [EMAIL PROTECTED]: A Some very ols OS used ^Z do know the end of the stream and thus close A the file. This behaciour can still be found in MS-DOS with the command: A copy con: file A where ^Z terminates the input. Should be copy con

Re: [Freedos-kernel] SYS issues

2004-03-12 Thread Arkady V.Belousov
Hi! 12--2004 19:34 [EMAIL PROTECTED] (Michal H. Tyc) wrote to [EMAIL PROTECTED]: - /Odrive - use fixed drive number (in hex) in boot sector. MHT If this switch is intended for compatibility with DR-DOS, drive number MHT should be given in decimal. Support for hex with '0x' and/or '$' prefix MHT

Re: [Freedos-kernel] SYS issues

2004-03-12 Thread Arkady V.Belousov
Hi! 12--2004 14:34 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: - /Odrive - use fixed drive number (in hex) in boot sector. MHT If this switch is intended for compatibility with DR-DOS, drive number This is rather functional compatablity, not syntaxtical.

Re: [Freedos-kernel] FAT - FAT32 - SYS boot code testing???

2004-03-12 Thread Arkady V.Belousov
Hi! 12--2004 15:24 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED]: JL What needs to be tested in the areas of FAT32 SYS booting code? JL I've found FreeDOS hangs in booting off a ZIP 100 IDE disk formatted JL FAT32, but boots fine off another ZIP disk formatted as FAT. Get

[Freedos-kernel] reducing executable size

2004-03-13 Thread Arkady V.Belousov
Hi! Bart, you know OW better, may be you help. Currently ATTRIB executable size is 3986 bytes for BC and 3970 for OW. I suggest, that executable size for OW may be reduced further (by stubing some RTL modules - like currently stubed malloc/realloc/nmalloc). May you help me with this? If you

Re: [Freedos-kernel] FAT - FAT32 - SYS boot code testing???

2004-03-14 Thread Arkady V.Belousov
Hi! 12--2004 21:08 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED], Arkady V.Belousov: JL I tried the only updating the boot sector using FreeDOS' SYS and got; JL D:\Download\FreeDOSsys X: BOOTONLY JL FreeDOS System Installer v2.9, Sep 24 2003 JL Processing boot sector... JL Reading old

Re: [Freedos-kernel] FAT - FAT32 - SYS boot code testing???

2004-03-14 Thread Arkady V.Belousov
Hi! 12--2004 20:02 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED], Arkady V.Belousov: This is FAT16, so FAT size here should be 190 sectors. JL Hmmm, THAT particular disk should have been FAT32or I got confused. This disk (with such clusters count) can't be FAT32. Under

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 13--2004 15:44 [EMAIL PROTECTED] (Jim Lilly) wrote to ark: JL Attached is [misc.zip] JL File notes from Jim Lilly; JL RSLT_SR6 - ZIP100, FAT, BOOTFIX results Looks valid and workable. JL RSLT_16 - ZIP100, FAT, BOOTFIX results Looks like there is problems: OS says that FAT

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 14:33 Arkady V.Belousov wrote to [EMAIL PROTECTED]: JL Attached is [misc.zip] JL File notes from Jim Lilly; JL RSLT_SR6 - ZIP100, FAT, BOOTFIX results __O\_/_\_/O__ Checking drive C: Reading default BPB... [...] Volume

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 07:55 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED], Arkady V.Belousov: Not needed to CC for me, I subscribed to [EMAIL PROTECTED] Which OS you was use for tests? JL FreeDOS Probably, bug in FreeDOS kernel. I think, Bart may/should clarify this, may

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 20:47 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB Probably, bug in FreeDOS kernel. I think, Bart may/should clarify AVB this, may this is expected behavior. ---^^^ may be AVB Do you mean, that AVB - XP formats to FAT16 and makes bootable: diskette boots AVB

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 20:47 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB Probably, bug in FreeDOS kernel. Ops, sorry, too husty conlusion: BOOTFIX analyzes _default_ BPB, which is _suggestion_ by OS for given media. Boot record should be compared with current BPB, which is used by OS

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 08:32 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED], Luchezar Georgiev: FreeDOS formatting tool is FORMAT currently maintained by Eric Auer. Why don't you try to use FORMAT on your ZIP first? JL I would if I could, but FreeDOS doesn't 'see' the ZIP drive, it only sees

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-14 Thread Arkady V.Belousov
Hi! 14--2004 13:32 [EMAIL PROTECTED] (Jim Lilly) wrote to [EMAIL PROTECTED]: 1. get latest SYS version (comes with kernel, available at freedos.sf.net) JL kernel 2033? Yes. Also, there was some changes in kernel. AFAIK, Luchezar presents precompiled kernels with all up to date patches

[Freedos-kernel] BOOTFIX 1.2

2004-03-14 Thread Arkady V.Belousov
Hi! Next version of BOOTFIX (1.2) placed on site of Michael Devore (ftp://ftp.devoresoftware.com/downloads/bootf12.zip). You may use this utility at least to view drives properties, but it also diagnoses the properties if they are valid. In next versions will be addeded support to

Re: [Freedos-kernel] FAT - FAT32 - SYS boot

2004-03-15 Thread Arkady V.Belousov
Hi! 15--2004 12:23 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: should be reported for those, who prepare ISO images: beta9rc4 is outdated and definitely should be updated. LG There is something wrong here. The latest official kernel (build 2033) LG went out on 31 January.

Re: [Freedos-kernel] redirection BUG

2004-03-16 Thread Arkady V.Belousov
Hi! 16--2004 18:32 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: LG So, when I have time (at the week end probably), I'll try to catch the LG bug. If Bart has time, he may want to overtake me ;-) Probably, this is not the last bug. I wait details from Jim Lilly, but

[Freedos-kernel] bootfix 1.3

2004-03-15 Thread Arkady V.Belousov
Hi! New version of bootfix prepared. Now it checks both default and current BPBs and compares boot record with current, not default BPB. Also, under NT-family, where direct disk access not implemented, bootfix will say error about boot sector reading error. With help of Michael this edition

[Freedos-kernel] Re: bootfix 1.3 results on Vmware install.

2004-03-17 Thread Arkady V.Belousov
Hi! 17--2004 07:04 [EMAIL PROTECTED] (Bernd Blaauw) wrote to Arkady V.Belousov: BB please let me know if the following bootfix results are correct. BB see attachment. BB Perhaps Eric may assist, as he helps to maintain/fix FORMAT a lot. BB (current BPB not equal to bootsector ?) Yes

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel fatfs.c,1.52,1.53

2004-03-21 Thread Arkady V.Belousov
! 21--2004 13:56 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +void FAR * add_far(void FAR * fp, unsigned off) { + unsigned segment, offset; if (FP_SEG(fp) == 0x) +return ((char FAR *) fp) + off; #ifndef I86 if (FP_SEG(fp) == 0) +return ((char FAR *)

Re: [Freedos-kernel] Re: editing command line

2004-03-21 Thread Arkady V.Belousov
Hi! 21--2004 17:06 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: I use both features (F3 and Ins to edit command line) in MS-DOS often. BTW, they are also available in DEBUG. Isn't this mean, that editing features built-in into kernel? LG Yes. They're implemented in

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel task.c,1.39,1.40

2004-03-21 Thread Arkady V.Belousov
Hi! 21--2004 15:31 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: A few suggestions from Arkady. Saves 5 bytes. :) int nBytesRead, toRead = CHUNK; seg sp = start_seg; +while (1) { if (exe_size CHUNK/16) toRead = exe_size*16;

Re: [Freedos-kernel] Re: editing command line

2004-03-21 Thread Arkady V.Belousov
Hi! 21--2004 19:50 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: I again send not finished sentence. :( I mean: AVB 1. In kernel present editing code. te yes. ...then which reason to reimplement this in command.com? AVB 2. If code presented

[Freedos-kernel] Re: editing command line

2004-03-21 Thread Arkady V.Belousov
Hi! 15--2004 21:20 [EMAIL PROTECTED] (FreeCOM) wrote to [EMAIL PROTECTED]: at given position. For example, if (in buffer) was typed C:\DOS, then in MS-DOS - right arrow 3 times shows C:\; - Ins, FD shows C:\FD; - F3 shows C:\FDDOS. F I didn't know this feature. Added to the to-do list.

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel fatdir.c,1.40,1.41 etc

2004-03-22 Thread Arkady V.Belousov
Hi! 22--2004 14:47 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to FreeDOS-kernel [EMAIL PROTECTED]: if (new_diroff == 65535) Borland C++ complains here. Change the constant to 65535UL (see patch below). Hm, don't see letter with these words. LG Although Borland says constant is long,

Re: [Freedos-kernel] Re: kernel/kernel fatfs.c,1.52,1.53 proto.h,1.50,1.51 memmgr.c,1.27,1.28

2004-03-22 Thread Arkady V.Belousov
Hi! 22--2004 14:23 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: BO add_far is only used at a few select places where we want to have the BO offset part as low as possible. Nothing to do with structures but BO everything to do with potentially large file reads, with read chunk, BO

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel fatdir.c,1.41,1.42 fatfs.c,1.54,1.55

2004-03-22 Thread Arkady V.Belousov
Hi! 22--2004 15:43 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: BO + /* can't have more than 65535 directory entries BO + remove lfn entries may call us with new_diroff == -1 BO + for root directories though */ BO + if (!fnp-f_flags.f_droot new_diroff = 65535U) BO +

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel fatdir.c,1.42,1.43 fatfs.c,1.56,1.57

2004-03-22 Thread Arkady V.Belousov
Hi! 22--2004 16:56 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: BO +++ fatfs.c 22 Mar 2004 16:56:33 - 1.57 BO +xfr_cnt = count (ULONG) secsize - boff ? BO +(UWORD) count : secsize - boff; I not check this, but, probably, better if there will no cast to

[Freedos-kernel] bootfix 1.4

2004-03-22 Thread Arkady V.Belousov
Hi! With help of Michael Devore, on his site placed version 1.4 of BOOTFIX. This version is now compilable both by Borland C and OpenWatcom. It shows slightly more information (to ease using logs even without dumps), before reading BPB added reseting disk (look like this is sometime required

[Freedos-kernel] BUGS

2004-03-24 Thread Arkady V.Belousov
Hi! __O\_/_\_/O__ inthndlr.c/int2F_12_handler: - bug: INT2F/4A01: instead available size in BX always returned 0. - bug: INT2F/1213 should return AL, not AX. - bug: blockio.c/AllocateHMASpace(): wrongly freed extra buffer because

[Freedos-kernel] patch: config.c

2004-03-24 Thread Arkady V.Belousov
config.pat Description: Binary data

Re: [Freedos-kernel] patches

2004-03-26 Thread Arkady V.Belousov
Hi! 26--2004 11:24 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: Bart, what wrong wit my latest patches for batch files and for sources? They are small and they are tested - which reason to silently reject them? BO not rejected, just haven't got around to look at them

Re: [Freedos-kernel] patches

2004-03-26 Thread Arkady V.Belousov
: BO BO Date: Mon, 2 Feb 2004 21:03:52 +0300 (MSK) BO From: Arkady V.Belousov BO 2--2004 10:58 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to BO [EMAIL PROTECTED]: if ((lr.DL 0xef) 0x2) First, losted AL check (for AX=6C00) - should be if (lr.AL || ((lr.DL. LG You probably forgot about

Re: [Freedos-kernel] patches

2004-03-26 Thread Arkady V.Belousov
Hi! 26--2004 21:24 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to [EMAIL PROTECTED]: [...] bugs, which you don't fix yet: first one is in INT 21/6C (lost check for nonzero AL) LG I already wrote you: This is NOT a bug - What you wrote to me was: You probably forgot about that. Check for

Re: [Freedos-kernel] VDISK header

2004-03-26 Thread Arkady V.Belousov
Hi! 26--2004 23:54 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: AVB ; the HMA area is filled with 1eh+3(=sizeof VDISK) = 33 byte dummy data, AVB ; so nothing will ever be below 0x:0031 AVB begin_hma: AVB times 10h db 0 ; filler [:0..:10] AVB

[Freedos-kernel] Re: [Freedos-cvs] kernel default.bat,NONE,1.1 build.bat,1.12,1.13 buildall.bat,1.2,1.3 clean.bat,1.8,1.9 clobber.bat,1.9,1.10 filelist,1.7,1.8 getmake.bat,1.4,NONE

2004-03-27 Thread Arkady V.Belousov
Hi! 27--2004 01:42 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: Index: clean.bat === RCS file: /cvsroot/freedos/kernel/clean.bat,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 -rem

[Freedos-kernel] Re: [Freedos-cvs] kernel buildall.bat,1.3,1.4

2004-03-27 Thread Arkady V.Belousov
Hi! 27--2004 02:36 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: It doesn't work with two * two % (at least in FreeCOM) +++ buildall.bat 27 Mar 2004 02:36:50 - 1.4 -set onerror=if not %%XERROR%% == goto daswarwohlnix +set onerror=if not %XERROR% == goto

Re: [Freedos-kernel] new conv mem highs.

2004-03-27 Thread Arkady V.Belousov
Hi! 27--2004 12:18 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: LG Bad news: the new build batch files don't do anything in 4DOS, probably BO it's picky about BO call config BO instead of BO call config.bat And? [BTW, just check under freecom - also all works.] PS: I not

[Freedos-kernel] Re: [Freedos-cvs] kernel build.bat,1.13,1.14 buildall.bat,1.4,1.5 clean.bat,1.9,1.10 clobber.bat,1.10,1.11

2004-03-27 Thread Arkady V.Belousov
Hi! 27--2004 12:13 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: explicitly use .bat for call, etc., otherwise 4DOS doesn't like us... -call config -call default +call config.bat +call default.bat Do you mean, that 4DOS' `call' is broken? Just tested:

Re: [Freedos-kernel] new conv mem highs.

2004-03-27 Thread Arkady V.Belousov
Hi! 27--2004 21:10 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: Becuase I show in skipped part you, that this doesn't (always) works. BO that (not accepting call default.bat) is a bug in 4dos 6.02 then that call cls.com calls internal command both in NDOS and

[Freedos-kernel] patch: batch and make files

2004-04-03 Thread Arkady V.Belousov
Hi! [Looks like SF sometime eats my letters, so I repost diff file and comments again, now in different letters. Also, there added two changes, which I forget in previous letter, about TURBOC.CFG and KERNEL.CFG.] I test batch and make files both under OW12 and BC31 and have new

[Freedos-kernel] patch: batch and make files (diff file, 1/2)

2004-04-04 Thread Arkady V.Belousov
---BeginMessage--- diff -ruNp 0old/build.bat 0new/build.bat --- 0old/build.bat 2004-03-27 01:42:32.0 + +++ 0new/build.bat 2004-04-03 10:16:14.0 + @@ -3,18 +3,22 @@ :- batch file to build everything :- $Id$

[Freedos-kernel] patch: batch and make files

2004-04-05 Thread Arkady V.Belousov
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present

[Freedos-kernel] patch: batch and make files (diff file)

2004-04-05 Thread Arkady V.Belousov
---BeginMessage--- diff -ruNp 0old/build.bat 0new/build.bat --- 0old/build.bat 2004-03-27 01:42:32.0 + +++ 0new/build.bat 2004-04-03 10:16:14.0 + @@ -3,18 +3,22 @@ :- batch file to build everything :- $Id$

[Freedos-kernel] patch: batch and make files (description)

2004-04-05 Thread Arkady V.Belousov
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present

[Freedos-kernel] patch: batch and make files

2004-04-05 Thread Arkady V.Belousov
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel asmsupt.asm,1.19,1.20 init-mod.h,1.39,1.40 proto.h,1.54,1.55

2004-04-07 Thread Arkady V.Belousov
Hi! 6--2004 16:29 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ asmsupt.asm 6 Apr 2004 16:29:27 - 1.20 +lds di, [bp]; return address in es, saved bp in di ^^-^^

[Freedos-kernel] patch: batch and make files (description)

2004-04-07 Thread Arkady V.Belousov
Hi! [Don't know what happen, but SF silently ignores/losts my letters. B-E Second day: one was saturday, second was today. Not funny. Below _repost_ of my letter with new patch from today, monday.] New updates for my patches. Because I already remove intermediate files, there present

Re: [Freedos-kernel] patch: batch and make files (description)

2004-04-08 Thread Arkady V.Belousov
Hi! 8--2004 09:11 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: AVB PS4: repeat for my previous question: why to duplicate clean and AVB clobber? Another one: who make files status.me, *.cod, *.las? te *.cod are generated by MSC, if compiled with 'generate assembly

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel makefile,1.16,1.17

2004-04-12 Thread Arkady V.Belousov
Hi! 12--2004 00:22 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: Forged to remove old INITHEADERS. Also, what bad in $(HDR)*.h, why enumerating .h files is better? BO It's not better as such, but I'm not sure if * works for all the different BO make tools we are using. It's

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel inithma.c,1.23,1.24 kernel.asm,1.47,1.48 main.c,1.69,1.70 segs.inc,1.16,1.17

2004-04-12 Thread Arkady V.Belousov
Hi! 12--2004 00:30 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: in kernel.asm. Use std for the memory move: helps if there's overlap (PCs with a very low amount of RAM). +fmemcpy(HMADest, HMASource, len); _Standard_ memcpy() _doesn't_ handles memory overlapping.

[Freedos-kernel] patch: generic.mak

2004-04-12 Thread Arkady V.Belousov
Hi! I test TC MAKE. Not funny image: TC MAKE doesn't support !ifndef, WMAKED doesn't support $d(). Anyway, I make workaround, so may updates for make files now work for TC2 MAKE, BC3 MAKER and WMAKE: ---BeginMessage--- diff -ruNp old/mkfiles/generic.mak new/mkfiles/generic.mak ---

Re: [Freedos-kernel] patch: generic.mak

2004-04-12 Thread Arkady V.Belousov
Hi! 13--2004 02:06 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB I test TC MAKE. Not funny image: TC MAKE doesn't support !ifndef, AVB WMAKED doesn't support $d(). BTW, just for information: TC compiles kernel (from scratch) in 3-4 minutes, BC - 8-9 minutes, OW - 17-25 minutes

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel kernel.asm,1.49,1.50

2004-04-13 Thread Arkady V.Belousov
Hi! 13--2004 10:58 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: (From Arkady) Avoid shr cx,4 (it doesn't work on the 8088) +++ kernel.asm13 Apr 2004 10:58:06 - 1.50 %ifdef WATCOM - shr cx,4 + mov cl,4 + shr

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41

2004-04-13 Thread Arkady V.Belousov
Hi! 13--2004 11:54 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ task.c13 Apr 2004 11:54:09 - 1.41 + fstrcpy(Shell + strlen(Shell), MK_FP(FP_SEG(Config), Config-cfgInitTail)); endp = Shell + strlen(Shell); fstrcpy(endp = Shell + strlen(Shell),

[Freedos-kernel] NASM 8086

2004-04-13 Thread Arkady V.Belousov
Hi! Let me remind that NASM have CPU directive, which limits the available instruction set. So, instead: !if $(XCPU) == 386 NASMFLAGS=$(NASMFLAGS) -DI386 !endif in generic.mak you may add: NASMFLAGS=$(NASMFLAGS) -DXCPU=$(XCPU) and then in .asm files: %if XCPU = 386 CPU 386 %elif XCPU =

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41

2004-04-13 Thread Arkady V.Belousov
Hi! 13--2004 19:58 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: AVB Why? To make code more portable between assemblers. te ROTFL ? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41

2004-04-13 Thread Arkady V.Belousov
Hi! 13--2004 20:30 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: AVB Why? To make code more portable between assemblers. te ROTFL te Rolling On The Floor Laughing te you really can't keep things untouched? See the difference: keep untouched or do so or so

Re: [Freedos-kernel] kernel 2034rc for testing

2004-04-14 Thread Arkady V.Belousov
Hi! 14--2004 17:16 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: BO http://freedos.sourceforge.net/kernel/kernel.sys (45k) BO The daily tarball is at the usual place (same directory, kernel.tgz, 334k) BO pat34rc.zip in the same directory has a source diff (79k). What is

Re: [Freedos-kernel] kernel 2034rc for testing

2004-04-14 Thread Arkady V.Belousov
Hi! 15--2004 01:16 [EMAIL PROTECTED] (Bernd Blaauw) wrote to [EMAIL PROTECTED]: page, previous time I don't found it (if it was present). Also, when planned 2034 release? May be I wait this release and download it completely (instead patch), if it will be soon? BB the idea is to test *before*

Re: [Freedos-kernel] kernel 2034rc for testing

2004-04-16 Thread Arkady V.Belousov
Hi! 16--2004 20:30 [EMAIL PROTECTED] (tom ehlert) wrote to Bart Oldeman [EMAIL PROTECTED]: te into assembly, and I will never like #pragma aux, even if that saves a te few byte. Let me disagree with you. This is most valid and effective way to control compiler - in given case describe

Re: [Freedos-kernel] Microsoft beginning to assert FAT Patent

2004-04-20 Thread Arkady V.Belousov
Hi! 20--2004 11:23 [EMAIL PROTECTED] (Steve Gibson) wrote to [EMAIL PROTECTED]: SG The Public Patent Foundation has submitted a request to the United States SG Patent and Trademark Office (USPTO) to reexamine patent 5,579,517, awarded Is my post in freedos-devel with the same news not

[Freedos-kernel] [Freedos-devel] Re: [Freedos-cvs] kernel/kernel blockio.c,1.30,1.31 dosfns.c,1.61,1.62 int2f.asm,1.27,1.28 proto.h,1.61,1.62 task.c,1.41,1.42

2004-04-20 Thread Arkady V.Belousov
Hi! 20--2004 18:43 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ int2f.asm 20 Apr 2004 18:43:03 - 1.28 +global NETWORK_REDIRECTOR +NETWORK_REDIRECTOR: +pushbp +mov bp, sp +mov al,

Re: [Freedos-kernel] Q: release files

2004-04-20 Thread Arkady V.Belousov
Hi! 20--2004 15:46 [EMAIL PROTECTED] (Alain) wrote to [EMAIL PROTECTED]: at the 80686 and newer. No idea about transportation costs though.). A The bigger problem could be Russian Custums... A Arkady, what are the rules there? Never deal with it (directly), though, I successfully receive

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel dosfns.c,1.65,1.66 int2f.asm,1.31,1.32 proto.h,1.65,1.66

2004-04-21 Thread Arkady V.Belousov
Hi! 21--2004 11:04 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ int2f.asm 21 Apr 2004 11:04:04 - 1.32 +qremote_fn: mov ax,0x jc no_neg_ax sbb ax,ax jc no_neg_ax

[Freedos-kernel] config.c: bug?

2004-04-22 Thread Arkady V.Belousov
Hi! __O\_/_\_/O__ struct config Config = { 0, NUMBUFF, NFILES, 0, NFCBS, 0, command.com, /P /E:256\r\n, [...] STATIC struct table commands[] = { {COMMAND, 1, InitPgm}, {SHELL, 1, InitPgm}, [...] STATIC VOID InitPgm(BYTE

[Freedos-kernel] proto.h

2004-04-22 Thread Arkady V.Belousov
Hi! __O\_/_\_/O__ int ASMPASCAL allocmem(UWORD size, seg * segp); #ifdef __WATCOMC__ #pragma aux (pascal) allocmem modify exact [ax bx dx] _ O/~\

  1   2   3   4   5   >