From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alfonso Subject: writing programs for elks Date: Thu, 6 Feb 2003 00:13:08 +0100 Sender: linux-8086-owner@vger.kernel.org Message-ID: <200302011118.58025.a.martone@retepnet.it> References: <200301301341.h0UDf5Z25323@preshak.recjai.ac.in> Reply-To: a.martone@retepnet.it Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <200301301341.h0UDf5Z25323@preshak.recjai.ac.in> List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-8086@vger.kernel.org Almost any 8086 language compiler can be used to write ELKS programs: nasm, dev86 (bcc or as86), Borland's Turbo C or Turbo Assembler (the TC 2.01 and Tasm 2.0 were made freeware on their site), etc. I am writing a more complete article about this; I will place it here in some days. The only documentation I needed is found in these files: elks/fs/exec.c elks/Documentation/Text/memory.txt elks/Documentation/Text/bin_formats.txt While DOS functions are accessed via INT 21h, the ELKS uses INT 80h (see the sources containing its definitions, e.g. strace.c) Without using any strange tool, one can easily build an ELKS executable with up to 64k of code and up to 64k of data+heap (like the DOS "small" EXE model) just prepending a 32-byte header containing code and data segment sizes and other minimum information (see exec.c). hi from south Italy!! alf