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
|
|
|
|
;
|
|
|
|
|
2001-07-04 22:08:13 +00:00
|
|
|
.import dio_params, __oserror
|
2001-07-03 20:24:28 +00:00
|
|
|
.export _dio_read
|
2012-01-31 20:49:58 +00:00
|
|
|
.include "geossym.inc"
|
|
|
|
.include "jumptab.inc"
|
2001-07-03 20:24:28 +00:00
|
|
|
|
|
|
|
.proc _dio_read
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.endproc
|