Showing posts with label DOS. Show all posts
Showing posts with label DOS. Show all posts

Monday, May 25, 2020

FreeDOS I16GCC vs WATCOM-C

This post, referring to two very different C-compilers, feels a little unfair. However, we are not comparing a commercial product with a hobbyist product eihter.

On my low powered ACER Aspire ONE I compiled the program listed below with both compilers...
No, I am not writing about the result, I want to encourage you to find out yourself which compiler will suite your needs.

Here is the code of my test program:

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
  unsigned long int i,h[20];
  int rnd;
  srand(43558);
  for (i=0;h[i]=0,i<19;i++);
  for (i=0; i<10000000; i++){
    rnd=rand()%20;
    h[rnd]++;
    if(i%10000==0)printf(".");
  }
  printf("\n");
  for(i=0;printf("count of [%02ld] is %ld\n",i,h[i]),i<19;i++);
  return 0;
}

As you see, this is very simple code...
Test the compilers yourself, and you will see which one wins...


Tuesday, May 12, 2020

As-Easy-As spreadsheet legally for free

One of the most popular office tools are certainly spreadsheet calculators.
Lotus 1-2-3 was certainly one of the most popular programs. Some versions of 1-2-3 are apparently available as abandonware, maybe I will some of those later.
There were, however, alternatives programs to Lotus 1-2-3. One of the shareware options was As-Easy-As.

The owner of As-Easy-As, TRIUS Inc., decided to release the DOS version of their spreadsheet by providing the necessary codes.
Here is a link to TRIUS Inc's very own forum post on their forum page, providing downloads for the program and the user manual, as well as license codes for the DOS version of As-Easy-As and the respective documentation for free!

Please note that the codes for the program and the manual are different.


Monday, May 11, 2020

MS WORD for DOS

Having a word processor on your FreeDOS machine is certainly a very important issue. Former DOS users might still have a box of floppies containing once purchased programs.

In case you are not so lucky, or you could not be bothered keeping obsolete stuff, sometimes on get lucky, very lucky indeed.

Searching the internet about ways to legally obtain old DOS programs, here is a gem: MS WORD directly from Microsoft:
http://download.microsoft.com/download/word97win/Wd55_be/97/WIN98/EN-US/Wd55_ben.exe

The file is a PKSFX archive which self-extracts to the active directory. It creates a bunch of EX$, CS$, PR$ and so forth files. Some of the printer driver files appear to have long names, since I am not running DOSLFN.COM, I got a few warnings.

SETUP.EXE lets you install Microsoft Word 5.5A for DOS on your HDD in a directory of your liking. Nothing to report about that process, other than to manually edit the PATH settings in FDAUTO.BAT yourself, since the installer modifies AUTOEXEC.BAT, which is not relevant in FreeDOS.

Text and VGA modes work perfectly fine. Playing with both, I settled on using the graphics mode with 30 lines and 80 columns. 34 lines looked still OK on the screen, so maybe I will switch to that later. 43 lines looks pretty painful and 60 lines, while still working fine, feels pretty squeezed and unnatural.

Concerning printing, I mentioned the problem with the long file names before. I no longer have any of those printers. In order to have something for WORD to think about concerning fonts, I chose the POSTSCRIPT driver.
However, printing is not my main objective using the netbook on FreeDOS. I will create files, e.g. DOC, which will then be transferred to the cloud and used as such. Another option would be to write Postscript files and convert those in PDF.



Sunday, May 10, 2020

Running FreeDOS in QEMU

As indicated before, I also have a Debian 8 latop, which is perfectly fine for my daily tasks, and hence, I do not have the desire to discard the Linux running on it, in particular since everything, including WLAN is running perfectly on this hardware.
This latop, a HP/Compaq nx6110, was also able to run the FreeDOS live-CD.

Anyway, I installed FreeDOS on a virtual drive on this particular computer. Again, the hardware, i.e. keyboard, is just perfect for my regular use under Linux.

When installing the FreeDOS image, I encountered some minor problems getting the networking to up and running. Finally, I ended up with a script as follows:

#!/bin/bash
qemu-system-i386 -m 32M -drive file=drivec.img,media=disk,format=raw -net nic,model=pcnet -net user


With this script, I am able to browse the internet using Lynx. I am pretty sure that I will be able to use other network services too.

Thursday, May 7, 2020

Taking every day computing a step back

Due to the present situation, a lot of my own professional use of computer is vastly reduced. Presently, there is not need and apparently no funds left for my clients to order polished illustrated reports nicely presented in PDF files.
So, that gives me the opportunity to reflect on how I did my personal computing in the eighties and nineties. At that time, computer mice were around, however, nobody really knew what to do with them, even CAD was done with console input. Many of the structures and devices designed that way are still standing and/or in operation.

Back in the day, I used an 8088 with two 5in floppy drives.
Later, I was able to buy a no-name 286/287 based PC with a 20MB hard-drive. OS of the time was MS-DOS, I believe it was version 4.01, not sure about that.
Remember those time? You switched the PC on and seconds later, you could start with your work.

Latest advances in the FreeDOS project got me back to those times. Jim Hall started the project in 1994 and still keeps improving this opensource MS-DOS compatible OS.
Some hardware support of modern hardware is present already.
While FreeDOS can run in a virtual machine, I am personally more interested in running a native DOS PC.

Why DOS, you might ask yourself. One reason I mentioned above already. But, there are additional reasons such as

  • easy administration and programming
  • tons of old freeware and shareware available
  • abandonware
  • some commercial software being turned into freeware, e.g. OpenWatcom and Borland compilers
  • one or the other software one has bought back in the day
In the next post, I will write about my first steps using mondern-ish hardware with FreeDOS.