Re: [Freedos-user] Command Line Parsing

2014-05-16 Thread Frantisek Hanzlik
Jack Jackson wrote:
 I've noticed a difference in command line parsing between FreeDOS and
 PC-DOS.
 
 Both FreeDOS and PC-DOS put the command line, starting with the
 character after the executable, in a buffer at offset 0x80 in the PSP.
 
 The behavior difference I see with FreeDOS is if the first non-blank 
 character after the executable is a left parenthesis, then FreeDOS sets
  0x80 in the PSP to zero so the rest of the command line is not
 available.
 
 Examples of what is in PSP 0x80:
 
 Command Line:  SOMEPROG  (aa bb cc FreeDOS:  \0 DOS:   (aa bb cc\0
 
 Command Line:  SOMEPROG abc (cc dd ee FreeDOS and DOS:   abc (cc dd
 ee\0
 
 Does anyone know why FreeDOS behaves differently when the first
 character after the executable is a left parenthesis?

Hi Jack,
I not know how to determine the value PSP 0x80, but when I try this
simple program (compiled/linked with OpenWatcom):

#include stdio.h
#include stdlib.h

void main(int argc, char const *argv[]){
int ii;
for(ii=0; iiargc; ii++){
printf(argv[%d] = %s\r\n, ii, argv[ii]);
}
}

then parameters seems be fine:

E:\pokusydosparm
argv[0] = E:\POKUSY\DOSPARM.COM

E:\pokusydosparm p1 (p2
argv[0] = E:\POKUSY\DOSPARM.COM
argv[1] = p1
argv[2] = (p2

E:\pokusydosparm (p1 (p2
argv[0] = E:\POKUSY\DOSPARM.COM
argv[1] = (p1
argv[2] = (p2

It is tested with FreeDOS 1.1 under DOSEMU, probably no reason why
it would be different in pure FreeDOS.

Franta Hanzlik

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Keyboard issue

2014-05-16 Thread Mateusz Viste
About (de)compressors: have you checked with UPX (it's quite heavily 
used nowadays) and LZEXE (this one was kind of popular in old days...) ?

Maybe could you check with a hex editor for some compressor signature?

As for patching the borland runtime 200 error, TPPATCH always worked 
fine for me..

Mateusz



On 05/16/2014 03:06 PM, Marcos Favero Florence de Barros wrote:
 Hi,

 This is just an update on the keyboard issue, i.e., I'm not
 asking any questions this time.

  From Dale E Sterner sunbeam...@juno.com on 11 May 2014:

 There is a good program avaiable for download from a German
 site. It's a TSR that traps runtime 200 errors and puts your
 computer back on track. Go to Google and search runtime 200
 errors. The name begins with TP.

 I tried TP7P5FIX (v1.01) and also TPPATCH, but neither of them
 worked with my two programs that have the Borland runtime 200
 bug.

 Because the instructions said that the EXE might have to be
 decompressed first, I tried that too, with two EXE decompressors,
 UNP (v4.11) and CUP386 (v3.4). Apparently none of the two
 EXE files was compressed.

 So perhaps we should call off this whole effort. As I said, I can
 easily live without Vision Edit.

 Marcos



 --
 Marcos Fávero Florence de Barros
 Campinas, Brazil



 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Freedos-user mailing list
 Freedos-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freedos-user


--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Keyboard issue

2014-05-16 Thread Bret Johnson
FWIW, the one that works for me is called PROT200.  I only have a couple of 
programs that need it (and they aren't Editors).

Another possibility might be to use my SLOWDOWN program, which will let you 
change the effective CPU speed on the fly with keyboard hot-keys.  The 
Runtime Error 200 fix is only needed when the program is first starting, and 
after that can run at full speed again.  With SLOWDOWN you should be able to do 
that, and with SLOWDOWN and my SCANCODE program you can do it all automatically 
(SCANCODE can type the hot-key for you automatically at the appropriate time).

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] (no subject)

2014-05-16 Thread dmccunney
On Fri, May 16, 2014 at 12:31 AM, TJ Edmister damag...@hyakushiki.net wrote:
 On Thu, 15 May 2014 11:30:22 -0400, dmccunney dennis.mccun...@gmail.com
 wrote:
 On Thu, May 15, 2014 at 11:17 AM, Dale E Sterner sunbeam...@juno.com
 wrote:

 Oh by the way if you want to install XP on FAT32, it will work without
 being activated.

 XP on FAT32?  shudder

 I have always run XP on FAT32 without problems. The only downside in my
 book is the 4GB file limit. NTFS is overly complicated.

What's complicated about it?  If you don't use optional capabilities
like compression or encryption, you mostly don't have to do anything
to use it.
__
Dennis
https://plus.google.com/u/0/105128793974319004519

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Keyboard issue

2014-05-16 Thread Dale E Sterner
I believe the exe is self extracting zip file. Its safer to open with
winzip in case of a bug.
Just run the exe in a directory and it should expand itself.


DS


On Fri, 16 May 2014 10:06:21 -0300 Marcos Favero Florence de Barros
fav...@mpcnet.com.br writes:
 Hi,
 
 This is just an update on the keyboard issue, i.e., I'm not
 asking any questions this time.
 
 From Dale E Sterner sunbeam...@juno.com on 11 May 2014:
 
  There is a good program avaiable for download from a German
  site. It's a TSR that traps runtime 200 errors and puts your
  computer back on track. Go to Google and search runtime 200
  errors. The name begins with TP.
 
 I tried TP7P5FIX (v1.01) and also TPPATCH, but neither of them
 worked with my two programs that have the Borland runtime 200
 bug.
 
 Because the instructions said that the EXE might have to be
 decompressed first, I tried that too, with two EXE decompressors,
 UNP (v4.11) and CUP386 (v3.4). Apparently none of the two
 EXE files was compressed.
 
 So perhaps we should call off this whole effort. As I said, I can
 easily live without Vision Edit.
 
 Marcos
 
 
 
 --
 Marcos Fávero Florence de Barros
 Campinas, Brazil
 
 
 

-
-
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For 
 FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform 
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Freedos-user mailing list
 Freedos-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freedos-user
 
 
 Get Athena Pheromones
 Enjoy more affection! Biologist Winnifred Cutler#39;s unscented 
 formulas.
 http://thirdpartyoffers.juno.com/TGL3165/53762ec1e1d572ec11e99mp03duc


**
From Dale Sterner - MS organic chemistry
http://pubs.acs.org/doi/abs/10.1021/jo00975a052
***


--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] hpa

2014-05-16 Thread mcelhanon
Have you read this information about HPA (host protected area) on Wikipedia?

http://en.wikipedia.org/wiki/Host_protected_area

It might provide some help with removing it.  However, I suspect that
the problem is as you have assumed that it can't be done with an
usb-to-ide adapter because of the way the firmware of the adapter
accesses the hard drive.

There are also very compact sata-to-ide adapters like this:

http://www.amazon.com/PSATA-Ultra-SATA-Converter-Adapter/dp/B003AG5CN6/ref=sr_1_15?ie=UTF8qid=1400254863sr=8-15keywords=sata+to+ide

that might allow you to fit it in your computer. However, I am not
recommending this particular item. I have brought one myself in the
past and it does work with IDE hard drives, but I could not get it to
work with IDE CD-ROMs (as is depicted in the ad). It is a tricky
little piece of hardware to use and you have to be careful with it
(read the comments with the ad). But, if your lucky to get a good one,
it does allow connecting an IDE hard drive in a SATA machine with very
limited space. It requires a 5 volt connector for power like is used
on the old 3.5 inch floppy drives, so you may need an additional power
adapter beyond what comes with the package to use it.





On 5/15/14, kurt godel wb2...@gmail.com wrote:
 I  too have always used xp on fat! As for ide to sata adapter, the sata
 machine is too cramped to fit it. As for wipe, is that a dos app? Are you
 sure it could remove the HPA partition? I have already used a bootable
 cd with active killdisk to wipe the drive, but, ostensibly, regular wipers
 cannot even access the HPA to delete it. I know 'hdparm' can do it at low
 level access. Trust me, the ide machine is kaput!.


--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] (no subject)

2014-05-16 Thread TJ Edmister
On Fri, 16 May 2014 11:29:09 -0400, dmccunney dennis.mccun...@gmail.com  
wrote:

 On Fri, May 16, 2014 at 12:31 AM, TJ Edmister damag...@hyakushiki.net  
 wrote:
 On Thu, 15 May 2014 11:30:22 -0400, dmccunney  
 dennis.mccun...@gmail.com
 wrote:
 On Thu, May 15, 2014 at 11:17 AM, Dale E Sterner sunbeam...@juno.com
 wrote:

 Oh by the way if you want to install XP on FAT32, it will work without
 being activated.

 XP on FAT32?  shudder

 I have always run XP on FAT32 without problems. The only downside in my
 book is the 4GB file limit. NTFS is overly complicated.

 What's complicated about it?  If you don't use optional capabilities
 like compression or encryption, you mostly don't have to do anything
 to use it.

The aforementioned lack of support among different OS (owing to the  
complexity of the low-level implementation), as well as incompatibilities  
between versions of Windows and the filesystem itself (eg. the Win7  
installer would crash without explanation when attempting to install on an  
existing NTFS partition created with an earlier version of Windows)

Links are problematic. I have seen links to a directory inside its own  
directory tree. This results in  a situation where eg. a DIR /S command  
runs indefinitely. And the only way I know to remove such a link is with a  
sector editor.

I never liked the idea of file metadata (or alternate data streams, which  
are possible but not commonly used AFAIK) as they tend to not be preserved  
when copied to another filesystem, archived, or uploaded.

Making a change to file permissions on an NTFS volume involves a  
minutes-long process of updating the attributes for every individual file  
affected (just a base Windows install is tens of thousands of files these  
days)

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] Annual Inform

2014-05-16 Thread Rafael Angel Campos Vargas
Annual Inform:
 
To FreeDOS project:
 
Sorry, I don’t speak English.
 
Thanks a lot for your Operative System, programs and resources.  I’m totally 
convinced your project is very useful for humanity.  To preserve old source is 
sufficient for me, but in this letter I’m thinking in the future.
 
I’m programming LibreN3D for animations in FreeDOS-POVRay. It’s a lot of work.  
Maybe we have satisfactory videos in 2020.  This year I donate to POVRay 
library twenty 3D objects with HTML documentation, only eighteen of them are 
FreeDOS compatible with POVRay 3.1.  You will see in this temporary link 
http://www.filefactory.com/file/4zko0fsusvh9/FreeRay_2013%20y%20CAFE2011.zip 
with older objects and CAFE2011 also.  
 
In 2013, I accelerated 3D display of meshes (picture meshes with transparent 
color inclusive) for games with a lot of assembler 32bit code, and most in pure 
FreePascal.  Soon, I want to donate LGPL code of the general core.  LibreN3D 
will be terminated afterwards 2020, you will need a modeler still.  ¡Not in 
Panic! I recommend Moray3.5, and POVRay3.5 in Windows XP with Virtual Box.  I 
really want to help other 3D programmers, but source is obscure and 
documentation is poor; you can write me of course.  Patience, I’m planning CAFE 
version of core source without graphics, only virtual pages.  You will use, 
some intermediate for display.  But, it can be a bad idea, I don’t know.  
Sorry, I don’t have any competitive 3D free games for now, only commercial 
games for FreeDOS, Windows and MAC:  “Bloques Iniciales” and “Origamis 
Iniciales”.  I’m very interested in Linux, but I had a lot of problems to 
display graphics, text mode is O.K.
 
CAFE2011, my virtual LGPL spreadsheet is essentially the same this year.  I 
detected an ugly bug in older package, I’m terrible pained.  This year I will 
traduce CAFE2011 to Windows, Mac and Linux.
 
¿Why primitive sounds in FreeDOS, and *.mdi, *.flac, *.wav  in MAC and Windows? 
 I read in your letters, exists FreeDOS alternatives now, patience… 
 
Marie and Jesus bless you.
 
Rafael Angel Campos Vargas
RofoelCompos@hotmail.comOffice box. 964-1250
  --
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] FreeDos on 86Duino

2014-05-16 Thread Dinosaur
Hi All

Long time user of FreeDos on CFC in Industrial environment.
Long time user of FreeBasic in the same environment.
Retired and experimenting with a new device.

Have recently purchased an 86Duino in the form of EduCake.
Basically an x86 with breadboard on top.
Fairly new product using a Vortex86Ex processor.
The support is minimal, cause there are still only a few users.
It is being sprouted as Dos. FreeDos, Windows  Linux compatible.
They supply an image for the SD card, which boots as intended.

I am having difficulty running programs in this environment.
Basically:
if I load CWSDPMI and run say Edlin32.exe it works (or appears to)
If I dont load CWSDPMI and run Edlin16.exe it works (or appears to)

Loading CWSDPMI and running a FreeBasic (Dos) compiled two line program it
generates an exception.
Division by Zero.
Print Hello World
End

Compiling this program with PB7 (16 bit Dos) and running it,
doesn't create any exceptions but no message printed.

Now I have dealt with this processor before on Industrial CPU boards, and
have not had this problem.
At this stage I should note that there is no monitor facility on this
device, so the serial port becomes
the monitor with:
MODE com4:9600,N,8,1,P
ctty com4

Autoexec.bat (the relevant bits)
@echo off 
SET dosdir=C:\FDOS
set PATH=%dosdir%\bin
set NLSPATH=%dosdir%\NLS 
set HELPPATH=%dosdir%\HELP
set temp=%dosdir%\temp
set tmp=%dosdir%\temp

SET autofile=C:\autoexec.bat 
alias reboot=fdapm warmboot 
alias halt=fdapm poweroff 

MODE com4:9600,N,8,1,P
ctty com4
C:\FDos\Bin\DosLFN.com
C:\FDos\Bin\cwsdpmi.exe
cd\
rem C:\FDos\Bin\ctmouse
C:\FDos\Bin\LBACache
C:\FDOS\Bin\SHARE.com


FDConfig.sys
device=c:\FDos\Bin\himemx.exe
dos=high,umb
LASTDRIVE=Z
switches=/N
break=off
dos=high,umb
dosdata=umb
files=60
rem stacks=16,256

Bootup detail.
DOSLFN 0.41 (haftmann#software  jmh 12/2011): loaded consuming 11776 bytes.
LBAcache disk read cache for XMS + 386, E. Auer e...@coli.uni-sb.de
2001-2006
License: GPL 2.  Up to 8 harddisks, 2 floppy, LBA / CHS. Version: 07apr2008.
Detecting harddisks:
  disk 0x80 heads=0255 sectors=0063 [done]
 [No floppy cache: no change lines]
XMS allocated:  2.00  MB, driver size with tables and stack: 7427 bytes.
SHARE installed.

C:\
The exception in 32bit protected mode.
C:\test
Exiting due to signal SIGFPE
Division by Zero at eip=401d, x87 status=
eax=0001 ebx=00230880 ecx=0001 edx= esi=000202e0
edi=00230cdc
ebp= esp=00230820 program=C:\TEST.EXE
cs: sel=00a7  base=0040  limit=0023
ds: sel=00af  base=0040  limit=0023
es: sel=00af  base=0040  limit=0023
fs: sel=00bf  base=  limit=0010
gs: sel=00bf  base=  limit=0010
ss: sel=00af  base=0040  limit=0023
App stack: [00230e38..00030e3c]  Exceptn stack: [00030d58..0002ee18]

Can sks give me some direction here please.





-
Regards
Dinosaur
--
View this message in context: 
http://freedos.10956.n7.nabble.com/FreeDos-on-86Duino-tp20567.html
Sent from the FreeDOS - User mailing list archive at Nabble.com.

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user