sd:appendix_7_kernal_functions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| sd:appendix_7_kernal_functions [2026/04/21 12:10] – appledog | sd:appendix_7_kernal_functions [2026/04/21 12:12] (current) – appledog | ||
|---|---|---|---|
| Line 289: | Line 289: | ||
| ; | ; | ||
| ; ============================================================================ | ; ============================================================================ | ||
| + | </ | ||
| + | |||
| + | == INT 15h - Filesystem Services | ||
| + | < | ||
| + | ; ============================================================================ | ||
| + | ; INT 15h - FILE SERVICES | ||
| + | ; Stream-oriented file I/O for the SD-8516 / VC-3 | ||
| + | ; ============================================================================ | ||
| + | ; | ||
| + | ; Provides file and directory operations for programs. | ||
| + | ; | ||
| + | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| + | ; NOTE: INT $15 uses a JZ-style calltable. | ||
| + | ; This means you cannot CALL into these functions by name. | ||
| + | ; You must use INT 0x15 to call them (even from the kernal). | ||
| + | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| + | ; | ||
| + | ; Function dispatch: | ||
| + | ; | ||
| + | ; Group A: File Handle Operations ($00–$0F) | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; Group B: Directory Listing ($10–$1F) | ||
| + | ; | ||
| + | ; | ||
| + | ; Group C: Directory Navigation ($20–$2F) | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; ============================================================================ | ||
| + | |||
| + | ; --- File Command Block (FCB) --- | ||
| + | ; A shared memory region used to pass parameters to/from JavaScript. | ||
| + | ; Located in bank 0 scratch space. 16 bytes. | ||
| + | ; | ||
| + | .equ FS_CMD_BLOCK | ||
| + | |||
| + | .equ FS_CMD | ||
| + | .equ FS_HANDLE | ||
| + | .equ FS_MODE | ||
| + | .equ FS_STATUS | ||
| + | ; | ||
| + | .equ FS_COUNT | ||
| + | .equ FS_ADDR | ||
| + | .equ FS_DONE | ||
| + | .equ FS_EXTRA | ||
| + | .equ FS_ADDR2 | ||
| + | |||
| + | ; --- Constants --- | ||
| + | .equ FS_MAX_HANDLES | ||
| + | |||
| + | .equ FS_MODE_READ | ||
| + | .equ FS_MODE_WRITE | ||
| + | |||
| + | .equ FS_OK 0 | ||
| + | .equ FS_ERR | ||
| + | .equ FS_EOF | ||
| </ | </ | ||
sd/appendix_7_kernal_functions.txt · Last modified: by appledog
