Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
to backup interrupts registers
#1
we know that when an interrupt it's used we put the values into AX, BX, etcetera, and then we make the interrupt.

i want find the way of reading those values before making the interrupt, to backup the registers values into another variables, so when the interrupt it's finished to return those default values to the previous status of the system.

is there a way of reading the registers values before doing the interrupt?
Reply
#2
Not without assembly, I fear.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
i think that must exist a way also using the Interrupts.
i do want to do this because accidently i found how to Lock Alt+Enter but i can not show the trick to anybody if i do not know how to Unlock.
Reply
#4
I believe that the interrupt routines in qb.qlb already do that. I'm curious why you would need to do this? Are you having problems calling an interrupt?
Reply
#5
Quote:I'm curious why you would need to do this? Are you having problems calling an interrupt?
when i call an interrupt to lock Alt+Enter then the editor of the Basic can still work but the keys Alt+Enter stay locked.
so i would like to know how to unlock the Alt+Enter.
Reply
#6
Which interrupt service are you using? That is which interrupt number and subfunctions are you using, and what platform/program is providing the service (DOS/WINOLDAP)?

If you are unsure, post a short code example of how you implement the locking of alt+enter. You most likely need to issue another interrupt to unlock the key combination. Simply restoring the general purpose registers won't solve your problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)