Hi people... problems again... this time, when changing stack. In a new
update of NestorAcentos I'm developing, I put the following piece of code
attached to the timer interrupt hook. The code is placed in a reserved zone
on page 3:
ld (SAVESP),sp
ld sp,NEWSP+100
push all
.
. (changes slot and segment on page 2, do stuff and restores old status)
.
pop all
ld sp,(SAVESP)
jp old interrupt hook
SAVESP: dw 0
NEWSP: ds 100
Well, a program executing such code causes the system to crash when any
other program is executed. Someone knows where is the problem?
Thanx!
************ 15th MSX users meeting in Barcelona: May 1th, 1999 ************
----------------------------------------------------------------------------
Konami Man - AKA Nestor Soriano (^ ^)v - Itsumo MSX user
New address!! http://konamiman.msx.tni.nl
[EMAIL PROTECTED] ICQ#: 18281450
Metal Gear for MSX - (C) Konami 1987 (Nothing new under the sun...)
----------------------------------------------------------------------------
****
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/)
****