The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IM 2
#36
na_th_an Wrote: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.

You could do it faster yourself. Berksman does this itself. When playing a sound, it goes to IM2, which updates FRAMES and nothing else, as quickly as I could This lets the clock stay in sync in the middle of a sound and doesn't affect the sound too badly. (I can barely hear it)..

Code:
isr: asm ;This is the interrupt Service Routune ; First thing, save those registers. PUSH AF PUSH HL ;Kick the clock forward because we lost at least a frame. LD HL,23672 INC (HL) JR NZ, ISREnd INC HL INC (HL) JR NZ, ISREnd INC HL INC (HL) ISREnd: POP HL POP AF reti end asm
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)