2001-07-03 20:24:28 +00:00
|
|
|
;
|
|
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
; 2.7.2001
|
|
|
|
;
|
|
|
|
; this file provides the _dio_read function
|
|
|
|
;
|
|
|
|
; unsigned char __fastcall__ dio_read(dhandle_t handle,sectnum_t sect_num,void *buffer);
|
|
|
|
; dhandle_t - 16bit (ptr)
|
|
|
|
; sectnum_t - 16bit
|
|
|
|
;
|
|
|
|
|
2012-02-07 22:37:13 +00:00
|
|
|
.import dio_params, __oserror
|
|
|
|
.export _dio_read
|
2001-07-03 20:24:28 +00:00
|
|
|
|
2012-02-07 22:37:13 +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:
|
2001-07-03 20:24:28 +00:00
|
|
|
jsr dio_params
|
|
|
|
jsr ReadBlock
|
2001-07-04 22:08:13 +00:00
|
|
|
stx __oserror
|
2001-07-03 20:24:28 +00:00
|
|
|
txa
|
|
|
|
rts
|