Using YAMP

To a large extent the proceding discussion has been a description of the header file virt.h. . The matrix programs consist of two other modules virt.cpp and virtop.cpp. These two files need to be included in your Turbo C++ project definition. You also need to include virt.h in the module containing your main program. You also need to make a global declaration of the dispatch matrix using
MStack *Dispatch = new MStack;

You can start your program after this. See the file test.cpp for my test suite of the YAMP modules. The vitual memory model YAMP programs usually need the medium, large or huge memory models. It will also work in the small and compact model if you strip the code that you do not need in virtop.cpp. You can also turn off the graphics functions to fit the virtual memory model into the small memory model. There is more than 64k in the virtual memory text segment as the system is configured now. The in-ram model will compile into all but the tiny memory model.



Subsections