Konami Man wrote:

> In my system (DOS 2 installed on Mega-SCSI), #F34B points ALWAYS to
> the same
> location of #F349. If I change it, the old value is restored after
> going
> BASIC and returning. And if I change #F349, #F34B is automatically
> modified
> for equaling #F349.
>
> So, reducing #F349 and forgetting #F34B is the only method for reserve
> memory, right?

To make program that will run NOT only on your system, you must eitherallocate
memory modifying #F34B (but in this case your TSR will only work
under DOS and will probably crash after you exit from DOS to BASIC.)
or you must change BOTH #F349 and #F34B like this:
ld hl,(0f349h)
ld de,-NBYTES
add hl,de
ld (0f349h),hl
ld (0f34Bh),hl
than reload DOS (BTW, you are right - you can just load MSXDOS at 100h)

> But can I exit BASIC AFTER having executed the previous code and
> filled the
> allocated area with data, or I must do it before? If I disable
> interrupts and
> jump to BASIC by directly jumping #4022 on the disk ROM slot (that is,
> I
> don't exit DOS prompt after allocating and filling area) then I should
> not
> have problems, right?

Right. It is very difficult to understand what are you doing and in what
environment.


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to