<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 01 Sep 1980003:01:00-MDT
From   : Frank J. Wancho <FJW@MIT-MC>
Subject: How do you ...

Loading from disk would solve the problem that CP/M wants the program
to start at 0100H.  You will need to reassemble with ORG 0100H and
write a program which relocates itself to high memory and reads the
cassette programs into 0100H and then JMP 0100H.

I also save the CCP SP and end up with a RET as follows:

START  LD      (EXITX),SP
       LD      SP,MYSTACK
,
,
EXIT   LD      SP,0
EXITX  EQU     $-2
       RET

However, I don't save on the click because I may have done some disk
I/O from the time I left, and thus I do a RESET and SELDSK of the
saved default drive.  So, in my case, I could probably cut all that
out and just do a JP 0 to get the same effect, right?

If your disk I/O works then the STAT should also work.  What is your
configuration?  Did you have to do anything special to bring up your
CP/M in the first place?

--Frank
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>