83Plus:Software:usb8x/Asm Interface/MSD/DOS fileSeek
From WikiTI
Synopsis
Name: DOS_fileSeek
Minimum usb8x version: 0.10
Sets seek pointer for file handle to specified offset.
Inputs
- BC is a pointer to the file handle of an opened file
- DEHL is a 32-bit offset to move the seek pointer to
Outputs
- Seek pointer is modified
Destroys
- AF, BC, DE, HL
Notes
Example code to jump to offset 53:
ld bc,file_handle ld de,0 ld hl,53 U_CALL DOS_fileSeek ;DOS_fileRead/DOS_fileWrite will read/write at offset 53
See Also
- [[../DOS_openFile|DOS_openFile]] - Opens a file for reading/writing by populating a file handle