Difference between revisions of "OSBYTE &9D"

From BeebWiki
Jump to: navigation, search
(use in app note 004 to initiate data transfer)
m (wdg)
 
Line 2: Line 2:
 
OSBYTE &9D (157) - Fast Tube BPUT
 
OSBYTE &9D (157) - Fast Tube BPUT
  
 +
    Write a byte to an open file
 
     X=byte to write Y=file handle
 
     X=byte to write Y=file handle
 
     In OS 1.20 this call simply passes through the normal OSBPUT routine
 
     In OS 1.20 this call simply passes through the normal OSBPUT routine
Line 7: Line 8:
 
;Notes
 
;Notes
 
This call returns immediately when executed on a coprocessor, leaving the
 
This call returns immediately when executed on a coprocessor, leaving the
coprocessor free to continue the application, and the host continuing the call.
+
coprocessor free to continue the application, and the host continuing the
Therefore the call does not return a result from the operation.<ref
+
operation. Therefore the call does not return a result from the operation.<ref
 
name="appnote-004">Acorn Computers (June 1992),
 
name="appnote-004">Acorn Computers (June 1992),
 
''Application note 004: Tube application note'', p.6.</ref>
 
''Application note 004: Tube application note'', p.6.</ref>

Latest revision as of 13:52, 12 November 2020

OSBYTE &9D (157) - Fast Tube BPUT

   Write a byte to an open file
   X=byte to write Y=file handle
   In OS 1.20 this call simply passes through the normal OSBPUT routine
Notes

This call returns immediately when executed on a coprocessor, leaving the coprocessor free to continue the application, and the host continuing the operation. Therefore the call does not return a result from the operation.[1]

Acorn advises that because of this, users who wish to carry out bulk data transfer between the host and the coprocessor should arrange to hook into BYTEV and intercept this call on the I/O processor. To initiate a transfer, the coprocessor should call OSBYTE &9D with parameters in X and Y for the intercepting code on the host.[1] The BPUT functionality of this call would therefore be supplanted, and become available only from OSBPUT.

See Also

References

  1. 1.0 1.1 Acorn Computers (June 1992), Application note 004: Tube application note, p.6.

Jgharston 22:12, 26 May 2009 (UTC)