view level1/cmds/load.a @ 2758:e4a0f58a5f9b

Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded. To fix this the code needed to set the envirornment variable that is in the rules.mak is now in the makefile(s) right before the include for the rules.mak file. This should fix the problem for those who do not have the NITROS9DIR envirornment variable preset.
author drencor-xeen
date Mon, 14 Jan 2013 14:37:46 -0600
parents a51439f6b206
children aaba193af04f
line wrap: on
line source

********************************************************************
* Load - Load a module
*
* $Id$
*
* Edt/Rev  YYYY/MM/DD  Modified by
* Comment
* ------------------------------------------------------------------
*   4      ????/??/??
* From Tandy OS-9 Level One VR 02.00.00.

         nam   Load
         ttl   Load a module

         use   defsfile.d

rev      set   $00
edition  set   4

         psect load_a,Prgrm+Objct,ReEnt+rev,edition,200,start

         vsect dp
u0000    rmb   200
         endsect

start    os9   F$Load   
         bcs   Exit
         lda   ,x
         cmpa  #C$CR
         bne   start
         clrb  
Exit     os9   F$Exit   

         endsect