INT 21 - DOS 2+ - "LSEEK" - SET CURRENT FILE POSITION
AH=42h
AL=origin of move
00h - start of file
01h - current file position
02h - end of file
BX=file handle
CX : DX = (signed) offset from origin of new file position
return: CF clear if successful
DX:AX =new file position in bytes from start of file
CF set on error
AX=error code
To get to the 8th byte of the file:
mov ah, 0x42
mov bx, [fhandle]
sub cx, cx
mov dx, 0x7 ; CX:DX=+7
mov al, 0x0 ; from beginning
int 0x21
A signed offset of +7 is used to access the 8th
byte, because file position start at zero.