Difference between revisions of "OSBPUT"
m (1 revision) |
(see also OSBYTE &9D) |
||
Line 11: | Line 11: | ||
|} | |} | ||
− | An error is generated | + | An error is generated if the object is a directory or doesn't have write access. The EOF-error-flag is cleared. |
==Calling from BBC BASIC== | ==Calling from BBC BASIC== | ||
Line 31: | Line 31: | ||
==Implementations== | ==Implementations== | ||
OSBPUT is implemented by all filing systems that allow writing. | OSBPUT is implemented by all filing systems that allow writing. | ||
+ | |||
+ | ==See also== | ||
+ | * [[OSBYTE &9D]] | ||
[[User:Jgharston|Jgharston]] 16:57, 6 November 2009 (UTC) | [[User:Jgharston|Jgharston]] 16:57, 6 November 2009 (UTC) |
Revision as of 12:44, 12 November 2020
Write (put) a byte
Contents
Specification
6502 | Z80 | 6809 | PDP11 | 80x86 | 32016 | ARM | On entry: | On exit: |
A | A | A | R0 | AL | R1 | R0 | = byte to write | preserved |
Y | H | Y | R1 | BX | R2 | R1 | = handle | preserved |
An error is generated if the object is a directory or doesn't have write access. The EOF-error-flag is cleared.
Calling from BBC BASIC
-
BPUT#ch%,b%</code
> calls OSBPUT.
Special handles
Some systems allow <code>BPUT#0 to write to the character output stream via OSWRCH.
Entry points
- BBC BASIC Entry Address: &FFD4
- 6502 Entry Address: &FFD4, vectors via &0218
- Z80 Entry Address: &FFD4, vectors via &FFD5
- 6809 Entry Address: &FFD4, vectors via &FFD5
- 80x86 Entry Address: INT &42, vectors via 0000:0108
- 32000 Entry Address: SVC &0E
- PDP-11 Entry Address: EMT 10, vector &0A
- ARM Entry Address: SWI &0B "OS_BPut", vector &0B
Implementations
OSBPUT is implemented by all filing systems that allow writing.
See also
Jgharston 16:57, 6 November 2009 (UTC)