Difference between revisions of "OSBYTE &16"

From BeebWiki
Jump to: navigation, search
(Added exit conditions.)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
OSBYTE &16 (22) - Increment Polling Semaphore
 
OSBYTE &16 (22) - Increment Polling Semaphore
  
     This call increments a counter, which if non-zero will cause a 100Hz
+
     This call increments a counter, which if non zero will cause 100 service
     service call (type &15) to be sent the paged ROMs. This allows a way
+
     calls (type &15) per second to be sent the paged ROMs. This allows a way  
 
     for ROMs to poll hardware which doesn't offer interrupts.
 
     for ROMs to poll hardware which doesn't offer interrupts.
 
      
 
      
     Implemented on Electron and MOS 3 onwards
+
     On exit:
 +
      X=preserved - Polling semaphore exists
 +
      X=&FF      - Polling semaphore not implemented
  
 
==See Also==
 
==See Also==
* [[OSBYTE &17|OSBYTE &17]] - Decrement ROM polling semaphore
+
* [[OSBYTE &17]] - Decrement Polling Semaphore
* [[OSBYTE &B3|OSBYTE &B3]] - Master ROM polling semaphore location
+
* http://mdfs.net/Docs/Comp/BBC/Osbyte00
* [[OSBYTE &B3|OSBYTE &B9]] - Electron ROM polling semaphore location
 
* [[Paged ROM service calls]]
 
  
 
[[User:Jgharston|Jgharston]] 21:31, 26 May 2009 (UTC)
 
[[User:Jgharston|Jgharston]] 21:31, 26 May 2009 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 02:03, 6 November 2020 (CET)

Latest revision as of 02:03, 6 November 2020

OSBYTE &16 (22) - Increment Polling Semaphore

   This call increments a counter, which if non zero will cause 100 service
   calls (type &15) per second to be sent the paged ROMs. This allows a way 
   for ROMs to poll hardware which doesn't offer interrupts.
   
   On exit:
     X=preserved - Polling semaphore exists
     X=&FF       - Polling semaphore not implemented

See Also

Jgharston 21:31, 26 May 2009 (UTC) Jgharston (talk) 02:03, 6 November 2020 (CET)