4 ; This function reads count bytes from the place where the address counter is.
5 ; Use lseek to place the address counter where you want to read from.
7 ; The file descriptor is ignored in this implementation. The read operation
8 ; reads bytes from a raw cart and does not understand the concept of files.
9 ; So if you read over the end of file you get data from the next file.
11 ; The count-parameter is positive (Atari style).
13 ; int __fastcall__ read(int fd,void *buf,int count)
15 .importzp _FileDestPtr
17 .import pushax,ldaxysp,ldax0sp,incsp6