Re: Disk variables!

1999-02-10 Thread Egor Voznessenski

F349 points to the area NOT INCLUDING MSX-DOS slot call routinesand interrupt
handling routine. F34B points below them. So, area above F349
must never be changed, but area between F34B and F349 can be changed if
some precautions are taken, and MSXDOS reloaded afterwards.

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?

 2. Can I allocate memory in page 3 with the following method, without
 causing
 the system to be unstable?:

 I used this method before, but exiting BASIC and returning DOS after
 modifying HIGHMEM, for causing MSXDOS2.SYS to be reloaded in the
 appropriate
 address. Is this really necessary?

It IS necessary if you are palnning to run MSXDOS programs afterwards.

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?

/ KONAMI MAN /


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/)




Re: Disk variables!

1999-02-09 Thread Egor Voznessenski



Konami Man wrote:

 Hi people! Konami Man returns again for asking for help (strange
 huh?). This
 time, concerning to the disk ROM work area (again!):

 1. Can someone explain me the difference between variables HIGHMEM
 (#F349)
 and CLEAR (#F34B)?

F349 points to the area NOT INCLUDING MSX-DOS slot call routinesand interrupt
handling routine. F34B points below them. So, area above F349
must never be changed, but area between F34B and F349 can be changed if
some precautions are taken, and MSXDOS reloaded afterwards.

 2. Can I allocate memory in page 3 with the following method, without
 causing
 the system to be unstable?:

 LD HL,(#F349)
 LD BC,-256
 ADD HL,BC
 LD (#F349),HL ;HL to HL+255 = Allocated memory
 RET

 I used this method before, but exiting BASIC and returning DOS after
 modifying HIGHMEM, for causing MSXDOS2.SYS to be reloaded in the
 appropriate
 address. Is this really necessary?

It IS necessary if you are palnning to run MSXDOS programs afterwards.



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/)