Difference between revisions of "OSCLI"
(Created page with "Category:MOS_API Category:OSCLI OSCLI passes a command to the MOS, ROMs and filing system to execute. ==Specification== {| cellpadding="0" cellspacing="0" border="1"...") |
m (Added command terminator.) |
||
Line 9: | Line 9: | ||
| A || A || A || R0 || AL || R1 || R0 || A0 || align="left" | || align="left" | undefined, but some return an exit value. | | A || A || A || R0 || AL || R1 || R0 || A0 || align="left" | || align="left" | undefined, but some return an exit value. | ||
|- align="center" valign="top" | |- align="center" valign="top" | ||
− | | YX || HL || X || R1 || BX || R2 || R1 || A1 || align="left" | => command string | + | | YX || HL || X || R1 || BX || R2 || R1 || A1 || align="left" | => command string, terminated with CR || align="left" | undefined |
|} | |} | ||
Revision as of 19:34, 10 September 2023
OSCLI passes a command to the MOS, ROMs and filing system to execute.
Specification
6502 | Z80 | 6809 | PDP11 | 80x86 | 32016 | ARM | RISC-V | On entry: | On exit: |
A | A | A | R0 | AL | R1 | R0 | A0 | undefined, but some return an exit value. | |
YX | HL | X | R1 | BX | R2 | R1 | A1 | => command string, terminated with CR | undefined |
Calling from BBC BASIC
- OSCLI and inline *commands call OSCLI
Entry points
- BBC BASIC Entry Address: &FFF7
- 6502 Entry Address: &FFF7, vectors via &0208
- Z80 Entry Address: &FFF7, vectors via &FFF8
- 6809 Entry Address: &FFF7, vectors via &FFF8
- 80x86 Entry Address: INT &4c, vectors via 0000:0130
- 32000 Entry Address: SVC &08
- PDP11 Entry Address: EMT 1
- ARM Entry Address: SWI &06 "OS_CLI", vector &05
- RISC-V Entry Address: ECALL &AC0001