2001-07-03 20:24:28 +00:00
|
|
|
;
|
2015-08-27 09:10:01 +00:00
|
|
|
; 2001-07-02, Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
; 2015-08-27, Greg King
|
2001-07-03 20:24:28 +00:00
|
|
|
;
|
|
|
|
; this file provides the _dio_read function
|
|
|
|
;
|
2012-10-11 18:22:49 +00:00
|
|
|
; unsigned char __fastcall__ dio_read (dhandle_t handle, unsigned sect_num, void *buffer);
|
2001-07-03 20:24:28 +00:00
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _dio_read
|
|
|
|
.import dio_params, __oserror
|
2001-07-03 20:24:28 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "geossym.inc"
|
|
|
|
.include "jumptab.inc"
|
2001-07-03 20:24:28 +00:00
|
|
|
|
2012-02-07 22:37:13 +00:00
|
|
|
_dio_read:
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr dio_params
|
2015-08-27 09:10:01 +00:00
|
|
|
tay
|
|
|
|
bne err
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr ReadBlock
|
|
|
|
stx __oserror
|
|
|
|
txa
|
2015-08-27 09:10:01 +00:00
|
|
|
err: rts
|