This is a drastically revised version of the menu program that I
uploaded in January.
The program must always be invoked from the batch file, AUTO.BAT.
This allows the menu to restart after an application has
To start the menu, the following files need to be in the default
The menu selections are read from a file named ADAMENU.MDF. This
file can be viewed and modified in a text editor. The example
definition file found in his archive should be in the default
directory when you run the program.
The entries in the definition file are marked with a symbol in
the first column :
%This is the menu title at the top of the screen
*This is the selection title
?This is the help message at the bottom of the screen
+cd c:\ --\
+dir | These are the batch lines to execute
+cd \adamenu |
The password feature, which is a line starting with '^', does not
Compiling the program :
The program and all of the supporting packages were compiled under
the Janus/Ada C-Pak version 2.0.1. The main program is in the
source file, AM2.MDF.
The packages bodies of Video and Msdos need to be compiled using
the compatability option because of the ASM statments.
The link to .exe linker option will also be needed. You will
also need to use the trim unused code option at least on the main
program. The code segment size seems to be coming close to the
memory model 0 limit. Nevertheless, the code in this archive
will most definetely compile under 2.0.1
Let me know if you have any ideas for improvment.