| rax | 19 | Move the filepointer | 8 bit |
| rbx | fd | a file descriptor | 16 bit |
| rcx | offset | offset for use | 32/64 bit (off_t) |
| rdx | wehnce | what to do with the offset | 2 bit |
| 0 | SEEK_SET : the offset given is set. | ||
| 1 | SEEK_CUR : the offset is added to the curent position. | ||
| 2 | SEEK_END : the offset is set in relation to the end of the file. |
| On return | rax |
| new position /errorcode |
| Errorcode | c++ name | Description |
| 9 | EBADF | Bad file number |
| 22 | EINVAL | Invalid argument |
| 29 | ESPIPE | Illegal seek |