Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IM 2
#34
I think we are mixing up things.

The main problem has been solved: several ZX Basic commands and functions need the original 48 BASIC ROM (the one with the BASIC interpreter, which is ROM1) and I wasn't paging it back after I did my paging chores. So when paging, doing whatever you need to do, just ensure that BIT 4 is set. That's all.

My concerns right now are if the BASIC ISR (rst 38) is NEEDED at all for some ZX Basic commands to work so, in case it is, just call rst 38 at the end of my ISR. It hasn't to do with paging at all. It's just that I have my own ISR and I don't know if functions such as INKEY$ need the BASIC ISR. So some testing is due...

And the results are positive. INKEY$ doesn't neeed the BASIC ISR. So, unless I need to use the FRAMES system variable, I can skip calling the BASIC ISR from my own ISR.

Code:
'' BASIC ISR TEST
'' Just to check if the BASIC ISR
'' is needed at all.

Asm
    Di
End Asm

'' Now the BASIC ISR is not running.
'' Does INKEY$ work?

While Inkey$ <> "q"
    If Inkey$ <> "" Then
        Print Code (Inkey$);" ";
    End If
Wend
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)